[thelist] Email Problem

Chrome admin at chrome.me.uk
Sat Apr 22 12:24:39 CDT 2006


Hi

First thing to try is to replace the \r\n linebreaks with just \n which is
against the RFC but apparently some Unix agents may add the \r (CR) causing
\r\r\n (there is a note about this here
http://php.net/manual/en/function.mail.php)

If that doesn't work try this:

<code>
if (!mail($toemail, $thesubject, $themessage, $normals))	die ('Mail
is not being sent!);
</code>

This will at least tell you if the mail is leaving the server

HTH

Dan

-- 
http://chrome.me.uk
 
-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Justin Zachan
Sent: 22 April 2006 12:05
To: thelist at lists.evolt.org
Subject: [thelist] Email Problem

Hi there. I have a contact form that sends an email via PHP mail().

It all works well, but for some reason it is not going to a few email
addresses (different domains)... And the domains are all on the same
server... But the trick is that some other domains on the same server
work...

This very email address does not receive the email message.

Can anyone rush an eye over this code and tell me if I am missing something
simple??? Thanks in advance...

 <?php 

		  if(isset($_POST["feedback_submit"])) {		

		  	//change this here Justin...

			$toemail = "justin at jazzmanagement.com.au" ;  

			//				

			$thesubject = "Contact Made" ;

			$normals = "From: ".$_POST[fname]."
".$_POST[sname]." <".$_POST[email].">";

			$normals .="\r\n";

			$normals .= "Reply-To: ".$_POST[email];

			$headers .= "\r\n";

			$headers .= "X-Mailer: PHP/" . phpversion();



			$themessage = "

Name: $_POST[fname] $_POST[sname] 

Email: $_POST[email] 

Phone: $_POST[phone] 

-------

$_POST[message]

-------



";

		 mail($toemail, $thesubject, $themessage, $normals); ?>

        <p>Thanks <?php echo $_POST[fname];?>, your feedback has been sent
and we will contact you shortly.</p>

        <?php }
 

Cheers

Justin



-- 

* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 

__________ NOD32 1.1502 (20060422) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com





More information about the thelist mailing list