zoonose Posted November 20, 2008 Share Posted November 20, 2008 Hi, I have a quick question about the php mail() function. When I am sending emails via the mail function, it inserts a 'fullstop' after a line break at the end of the email. is there something i am doing wrong or is this normal? is it removable ? Link to comment https://forums.phpfreaks.com/topic/133557-mail-question-about-a-stop/ Share on other sites More sharing options...
trq Posted November 20, 2008 Share Posted November 20, 2008 is there something i am doing wrong or is this normal? is it removable ? No, its not normal. Post the relevent code. Link to comment https://forums.phpfreaks.com/topic/133557-mail-question-about-a-stop/#findComment-694697 Share on other sites More sharing options...
zoonose Posted November 20, 2008 Author Share Posted November 20, 2008 Hi as requested: here is my code... function first <?php function email ($to, $subject, $body, $html = 0, $debug = 0) { global $config; $body = str_replace("\r",'', stripslashes ($body)); if ($html) $content_type = 'text/html'; else $content_type = 'text/plain'; $headers = "From: [email protected]\r\n"; $headers .= "Reply-To: [email protected]\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-type: $content_type; charset=iso-8859-1\r\n"; $headers .= "X-Priority: 3\r\n"; $headers .= "X-MSMail-Priority: \r\n"; $headers .= "X-Mailer: PHP-mailer\r\n"; if ($debug) { mail ('[email protected]',$subject,$body,$headers); } else { mail ($to, $subject, $body, $headers); } } $subject = 'Please verify your email address.'; $body = 'please click this link to verify your email address: http://www.oursomerset.com.au/register/verify/'.$membernumber.$emailverified; email($to,$subject,$body,0,1); ?> and here is the email body: please click this link to verify your email address: http://www.oursomerset.com.au/register/verify/290 . Link to comment https://forums.phpfreaks.com/topic/133557-mail-question-about-a-stop/#findComment-694711 Share on other sites More sharing options...
trq Posted November 20, 2008 Share Posted November 20, 2008 What are the values of $membernumber & $emailverified ? Link to comment https://forums.phpfreaks.com/topic/133557-mail-question-about-a-stop/#findComment-694712 Share on other sites More sharing options...
zoonose Posted November 20, 2008 Author Share Posted November 20, 2008 integers, 29 & 0 - they come thru ok Link to comment https://forums.phpfreaks.com/topic/133557-mail-question-about-a-stop/#findComment-694713 Share on other sites More sharing options...
trq Posted November 20, 2008 Share Posted November 20, 2008 Well, I can't see anything in the script that would casue that. Maybe its something with you mail server itself. Do you have shell access and if so have you tried sending an email via xmail? Link to comment https://forums.phpfreaks.com/topic/133557-mail-question-about-a-stop/#findComment-694718 Share on other sites More sharing options...
zoonose Posted November 20, 2008 Author Share Posted November 20, 2008 no i don't have shell.... i have had this problem before and have no idea why. thanks for trying anyhow!! Link to comment https://forums.phpfreaks.com/topic/133557-mail-question-about-a-stop/#findComment-694721 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.