Onderteken mee!
Een groeiende groep supporters ondersteunt deze oproep. Ook ondertekenen?
JA, ik steun deze oproep en geef toestemming om in dit kader mijn naam te vermelden op de website van Federatie Ruimtelijke Kwaliteit.
function send_mail($from, $to, $subject, $message, $headers) {
$from = str_replace( "\n", "", $from );
$to = str_replace( "\n", "", $to );
$subject = str_replace( "\n", "", $subject );
$mailheaders = "From: $from\r\n";
$mailheaders .= "Reply-To: $from\r\n";
$mailheaders .= $headers;
return mail($to, $subject, $message, $mailheaders);
}
/**
* @author: Reinier Vis (ReinierVis@xs4all.nl)
*
* Functie die een tekst mail verstuurt via het
* mail programma dat in PHP aanwezig is.
*
* (C) Copyright Reinier Vis 30-07-2002
*/
function send_text_mail($from, $to, $subject, $message) {
return send_mail ($from, $to, $subject, $message, "");
}
/**
* @author: Reinier Vis (ReinierVis@xs4all.nl)
*
* Functie die een html-opgemaakte mail verstuurt via het
* mail programma dat in PHP aanwezig is.
*
* (C) Copyright Reinier Vis 30-07-2002
*/
function send_html_mail($from, $to, $subject, $htmlmessage, $mailheaders) {
$mailheaders .= "Content-type: text/html; charset=ISO-8859-1\n";
$mailheaders .= "Content-transfer-encoding: 7bit\n";
$mailheaders .= "Content-description: Html message body\r\n";
$message = $htmlmessage;
return send_mail ($from, $to, $subject, $message, $mailheaders);
}
/**
* @author: Reinier Vis (ReinierVis@xs4all.nl)
*
* Functie die een multipart mail verstuurt via het
* mail programma dat in PHP aanwezig is.
* Heeft de ontvanger een html-ondersteunende client, dan
* wordt de mail in html opmaak getoond. Zo niet, dan
* wordt de mail als plaintext getoond.
*
* (C) Copyright Reinier Vis 30-07-2002
*/
function send_multi_mail($from, $to, $subject, $htmlmessage, $textmessage) {
$mailheaders .= "MIME-version: 1.0\n";
$mailheaders .= "Content-type: multipart/alternative; ";
$mailheaders .= "boundary=\"MessageBoundary\"\r\n";
$plain_top = "\r\n--MessageBoundary\n";
$plain_top .= "Content-type: text/plain; charset=ISO-8859-1\n";
$plain_top .= "Content-transfer-encoding: 7bit\n";
$plain_top .= "Content-description: Text message body\n\n";
$html_top = "\r\n--MessageBoundary\n";
$html_top .= "Content-type: text/html; charset=ISO-8859-1\n";
$html_top .= "Content-transfer-encoding: 7bit\n";
$html_top .= "Content-description: Html message body\n\n";
$msg_bottom .= "\r\n";
$msg_bottom .= "--MessageBoundary--\n";
$message = $plain_top .$textmessage .$html_top .$htmlmessage .$msg_bottom;
send_mail ($from, $to, $subject, $message, $mailheaders);
}
/**
* @author: Reinier Vis (ReinierVis@xs4all.nl)
*
* Functie die een multipart mail verstuurt via het
* mail programma dat in PHP aanwezig is en een attachment.
* meestuurt met de mail
* Heeft de ontvanger een html-ondersteunende client, dan
* wordt de mail in html opmaak getoond. Zo niet, dan
* wordt de mail als plaintext getoond.
*
* Deze functie ondersteunt 0, 1 of * attachments
* Bij 1 attachment is url voldoende, bij * attachments url-array
*
* (C) Copyright Reinier Vis 29-09-2002
*/
function send_multi_attach_mail($from, $to, $subject, $htmlmessage, $textmessage, $files) {
// Lees alle informatie over de file(s) uit
if (count($files) == 1) {
$fp = fopen($files, "r");
$contents = fread($fp,filesize($files));
$file_name[0] = get_filename_from_URL($files);
$ContentType[0] = get_content_type($file_name[0]);
$ContentAr = explode ("/", $ContentType[0]);
$appType = $ContentAr[0];
if ($appType == 'text') {
$TransferEnc[0] = '7bit';
$encoded_attach[0] = $contents;
} else {
$TransferEnc[0] = 'base64';
$encoded_attach[0] = base64_encode($contents);
}
fclose($fp);
}
else {
for ($i=0; $ihost = $options['Host'];//$_SERVER['SERVER_NAME'];
$embedder->base = $options['Basedir'];//$_SERVER['DOCUMENT_ROOT'];
//$embedder->charset = $charset;
$mail =& $embedder->getMailer($html);
$mail->From = $from;
if (!empty($options['FromName']))
$mail->FromName = $options['FromName'];
$mail->Subject = $subject;
$mail->AddAddress($to);
if (!empty($options['Bcc']))
$mail->AddBCC($options['Bcc']);
//$mail->CharSet = $charset;
if (!empty($options['Attachments'])) {
foreach ($options['Attachments'] as $file) {
$mime = get_content_type($file);
$mail->AddAttachment($file, '', 'base64', $mime);
}
}
return $mail->Send();
}
?>
Support Fiks Nederland!
Al 379 supporters ondersteunen deze oproep. Ook ondertekenen? Meld je hier aan.