| Junior Member with 4 posts. THREAD STARTER | | Join Date: May 2009 Experience: Advanced | |
Very strange PHP e-mail error we have some php code running on a linux machine. (sgi based).
php is V5.0 accessing a mysql database. this web code has worked for years on an irix based machine.
problem: e-mail (using sendmail) is only working in certain circumstances.
all code calls the same code as follows:
$mailer = popen("/usr/sbin/sendmail -t -i","wb");
fwrite($mailer, "From:$email_from_name<$email_from_mail>\n");
fwrite($mailer, "To: $email_to\n");
fwrite($mailer, "Cc: $email_cc\n");
fwrite($mailer, "Subject: $email_subject\n");
fwrite($mailer, "X-Mailer: PHP/" . phpversion(). "\n");
fwrite($mailer, "X-Sender-IP: $REMOTE_ADDR\n");
fwrite($mailer, "Content-Type: text/html");
fwrite($mailer, "\n".$emailbody."\n");
pclose($mailer);
here is the problem: the code if executed in the main window, will cause IE V6.0 to ask you to close the browser. you can select no, and the e-mail will be sent. we also have a javascript generated secondary window that this code will work through without asking to close the browser.
any direction would be greatly appreciated. |