CrazeD Posted October 24, 2007 Share Posted October 24, 2007 I made a register script on my site and the Email always goes to spam, or at least for me and my friend it does (we both use Gmail). Is it part of my code that's doing this? How can I prevent it? The Email is not for spam, but rather to give the user an activation key and his login details. Here is the code for sending my Email: $email_body = "Thank you for signing up on the {ForsaKen} Clan website! ---------- Your login details: Username: ".$username." Password: ".$password." ---------- In order to login to the website, you must first activate your account. You can activate your account by clicking the link below: http://forsakenwarfare.com/register.php?act=activate&key=".$actkey." If the above link doesn't work, you may copy and paste the key at the link below: Key: ".$actkey." http://forsakenwarfare.com/register.php?act=activate If neither methods work, please contact the webmaster at the link below: http://forsakenwarfare.com/contact.php THIS IS AN AUTOMATED EMAIL, DO NOT REPLY ---------------- {ForsaKen} Clan"; mail ($email, 'ForsaKen Website Account Activation', $email_body, 'From: Forsaken Warfare'); Any help would be great, thanks. Quote Link to comment https://forums.phpfreaks.com/topic/74564-email-keeps-going-to-spam/ Share on other sites More sharing options...
CrazeD Posted October 24, 2007 Author Share Posted October 24, 2007 bump Quote Link to comment https://forums.phpfreaks.com/topic/74564-email-keeps-going-to-spam/#findComment-377265 Share on other sites More sharing options...
steve448 Posted October 24, 2007 Share Posted October 24, 2007 Make sure that you put an email address in the From field which relates to your server. Other than that there is not much you can do, if there was an easy way to stop it going in the spam bin then people who send spam would do it. I always make a very clear notice after a member has registered telling them to check their junk mail if they do not get the welcome email and to add my company email address to their safe list. Quote Link to comment https://forums.phpfreaks.com/topic/74564-email-keeps-going-to-spam/#findComment-377331 Share on other sites More sharing options...
sKunKbad Posted October 24, 2007 Share Posted October 24, 2007 smashingmagazine.com had a nice article last week about sending html email. In the article was a service that writes a whitelist html page for you, so that your customers know to whitelist you on their ISP. I learned alot about sending email from the article, and I think there are issues that relate to your emails because they include links which are HTML. Quote Link to comment https://forums.phpfreaks.com/topic/74564-email-keeps-going-to-spam/#findComment-377333 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.