Posted: Mon 16. Feb 2004, 10:16
I don't know why, but not it IS working ! 
The phpwcms support forum will help to find answers to your questions. The small but strong community is here since more than 10 years.
https://forum.phpwcms.org/
Code: Select all
if(!ini_get('safe_mode')) {
mail($recipient, $subject_encoded, $body, $from);
} else {
mail($recipient, $subject_encoded, $body, $from);
}
Code: Select all
if(isset($send_copy_to)) {
$from = "From: ".$send_copy_to."\r\n";
if(!ini_get('safe_mode')) {
mail($send_copy_to, $subject_encoded, $body, "From: ".$recipient."\r\n".$content_type."\r\n");
} else {
mail($send_copy_to, $subject_encoded, $body, "From: ".$recipient."\r\n".$content_type."\r\n");
}
} else {
$from = "From: ".$recipient."\r\n";
}
if(!ini_get('safe_mode')) {
mail($recipient, $subject_encoded, $body, $from.$content_type."\r\n");
} else {
mail($recipient, $subject_encoded, $body, $from.$content_type."\r\n");
}Oliver Georgi wrote:Maybe additional headers are the problem or the "\n" has to be "\r\n" or "\n\r" on your system. Sometimes it is.
You can try this:
Code: Select all
if(isset($send_copy_to)) { $from = "From: ".$send_copy_to."\r\n"; if(!ini_get('safe_mode')) { mail($send_copy_to, $subject_encoded, $body, "From: ".$recipient."\r\n".$content_type."\r\n"); } else { mail($send_copy_to, $subject_encoded, $body, "From: ".$recipient."\r\n".$content_type."\r\n"); } } else { $from = "From: ".$recipient."\r\n"; } if(!ini_get('safe_mode')) { mail($recipient, $subject_encoded, $body, $from.$content_type."\r\n"); } else { mail($recipient, $subject_encoded, $body, $from.$content_type."\r\n"); }
i changed these files and the email form worked. but some areas of the backend stoped working properly, specifically the article features.I have checked and worked out this one. I think this works best for everybody:
http://www.phpwcms.de/support/act_formmailer.zip
You will need the most current general.inc.php.
That thread is ~almost~ 4 month's old and phpWCMS has progressed beyond any use of that, I believe.kngrnr wrote:i changed these files and the email form worked. but some areas of the backend stoped working properly, specifically the article features.I have checked and worked out this one. I think this works best for everybody:
http://www.phpwcms.de/support/act_formmailer.zip
You will need the most current general.inc.php.