jasonc Posted June 22, 2008 Share Posted June 22, 2008 The following code works to the point that 'most' members get it, but some like hotmail accounts not get them, i have got them to check their spam folders too! I have looked around and think maybe it is something to do with the email headers part as this caused me a lot of problems in the start. Any ideas? thanks $email_headers = "Content-Type: text/html; charset=ISO-8859-1\r\nFrom: ".$from_private_sys_email."\r\n"; $unsubscribe_email_footer = '<p><font size="2">To unsubscribe from future emails from ' . $sitename . ' please click <a href="http://'.$siteurl.'/?ac=u">HERE</a></font></p>'; $nosale_email_footer = '<p><font size="2"> Privacy Notice: We will never rent, sell or trade your contact information to anyone for any reason. We respect your privacy and hate spam as much as you do!</font></p>'; $novirusdisclaimer_email_footer = '<p><font size="2">Although ' . $sitename . ' operates anti-virus programmes, it does not accept any responsibility for any damage whatsoever that is caused by viruses being passed. You are advised to scan all incoming emails for potential viruses.</font></p>'; $emailtext = '<table width="100%" height="100%" align="center" bgcolor="#507BCD"><tr><td height="351" valign="top"><div align="center"><strong><em>Thank you for completing your registration with</em></strong><br><img src="http://' . $siteurl . '/images/defaultheader.png" height="110"><br><br>Your username is: ' . $username . '<br><br>Your password is: ' . $yourpasswordtologin . '<br>(please note that your password is letters only, it is also CaSe SeNitiVe)<br><br>Term and conditions apply.<br>Please see our web site for more information.<br><a href="http://' . $siteurl . '">' . $siteurl . '</a><br><br>' . $email_footer . $nosale_email_footer . $unsubscribe_email_footer . $novirusdisclaimer_email_footer . '</div></td></tr></table>'; $mymail = mail($email,"Registration completed", $emailtext, $email_headers); Link to comment https://forums.phpfreaks.com/topic/111321-sending-email-via-mail-but-some-members-are-not-getting-them-for-some-reason/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.