Page 2 of 2

Posted: Mon 16. Feb 2004, 10:16
by mdgroot
I don't know why, but not it IS working ! :lol:

Posted: Mon 16. Feb 2004, 10:35
by Oliver Georgi
based on the change of my last post? Please tell what you have changed.

Oliver

Posted: Mon 16. Feb 2004, 10:41
by mdgroot
Yep. I changed line 217 to (according to your last post);

Code: Select all

if(!ini_get('safe_mode')) { 
      mail($recipient, $subject_encoded, $body, $from); 
   } else { 
      mail($recipient, $subject_encoded, $body, $from); 
   }

Posted: Mon 16. Feb 2004, 12:13
by mdgroot
Any idea of what the problem was/is ?

Posted: Mon 16. Feb 2004, 12:37
by Oliver Georgi
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"); 
   }

Posted: Tue 17. Feb 2004, 23:06
by mdgroot
Oliver,

What is;
"-f".$from

doing ?
If I only remove (I'm still a little bit experimenting:-) ) this bit then the form is working.

Posted: Tue 17. Feb 2004, 23:21
by Oliver Georgi
additional attribut for sendmail

Mail Problem

Posted: Thu 26. Feb 2004, 21:36
by jack
For your information, this code sorted the problem for me.
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"); 
   }

Posted: Thu 26. Feb 2004, 22:36
by Oliver Georgi
Hi,

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.

Oliver

EMAIL FORM

Posted: Thu 17. Jun 2004, 03:40
by kngrnr
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.
i changed these files and the email form worked. but some areas of the backend stoped working properly, specifically the article features.

Re: EMAIL FORM

Posted: Thu 17. Jun 2004, 03:50
by DeXXus
kngrnr wrote:
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.
i changed these files and the email form worked. but some areas of the backend stoped working properly, specifically the article features.
That thread is ~almost~ 4 month's old and phpWCMS has progressed beyond any use of that, I believe. :roll: