Jump to content

Recommended Posts

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.

 

Link to comment
https://forums.phpfreaks.com/topic/74564-email-keeps-going-to-spam/
Share on other sites

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.

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.