Activation Email sent to Junk Folder

tillabong

New Member
Messages
60
Reaction score
0
Points
0
Hi, my website requires users to activate their account through an activation link found in the email sent to them after they register. The email always get caught up in the junk folder for hotmail, yahoo and gmail. Is there any tips or tricks i can do to prevent this?

Thank you very much.
 

zapzack

New Member
Messages
606
Reaction score
19
Points
0
Make sure the from address is mailed from an account hosted at the server.. If the domain is your-domain.com and your forum email you it should come from admin@your-domain.com. Make sure you also either have a mail account for that user setup or that the mail account is forwarding to another email address. This can be done in cPanel.
 

tillabong

New Member
Messages
60
Reaction score
0
Points
0
Thank you for your quick reply. Yes i have an email account admin@my-site.com but the email just keeps getting caught in the junk folder. is there any other way around this?
 

tillabong

New Member
Messages
60
Reaction score
0
Points
0
Heres a sample of the php code i used.

PHP:
$to      = $email;
									
$subject = " Activation Email for My-Site";
									
$letter = "Thank you for registering. Please complete your registration by clicking the activation link below.
\r\r
www.my-site.com/activationlink.php
\r\r
If you are having problems activating your account please email us at contact@my-site.com.
\r\r
Regards,
\r
My-Site.com";
									
$headers = 'From: admin@my-site.com';
									
mail($to, $subject, $letter, $headers);

Thanks
 

mvnhen66

New Member
Messages
2
Reaction score
0
Points
0
Do you have any indication what triggers the spam filter? (GMX marks it with a letter whether it's because of the Subject, the Server it came from, or a global senders list etc.)

Maybe make the subject a little bit more elaborate could help too.
 

zapzack

New Member
Messages
606
Reaction score
19
Points
0
What I'm trying to say is that you need to make the From: header be from an email residing at the server. This is because the mail client checks the server to see if the email is valid. If it is not, it goes to junk.

Code:
$headers = 'From:admin@my-site.com';

should work, as it did for another user on the forums.
 
Last edited:

tillabong

New Member
Messages
60
Reaction score
0
Points
0
Thanks for the reply. i have added the headers and everything. but it still gets filtered as junk.
 

bhupendra2895

New Member
Messages
554
Reaction score
20
Points
0
I think it is due to the bad reputation of IP, because people abuses mail services.The yahoo, rediff, hotmail and gmail all tells this is spam.
 

bhupendra2895

New Member
Messages
554
Reaction score
20
Points
0
Try using SMTP it may not get into spam folder and if it go then it would be confirmed there is problem in your program and we can diagnose it.
Recently I installed Phpbb on my account, interestingly when I registered 4 test accounts with email addresses of yahoo, gmail, rediff and hotmail and sent activation email using Php mail() of Phpbb and none of them caught into spam folder.For this I created a email account in cpanel from which 4 emails were sent in from header.Which is contradictory to my last post, where I said it could be due to bad reputation of IP.
 

tillabong

New Member
Messages
60
Reaction score
0
Points
0
Yes i tried the phpbb and the email didnt get caught in the junk. i've looked at the source code and added the relevant headers but it still ends up in the junk mail. may i know what exactly did you add to your headers? heres mine.

PHP:
$headers  = 'From: <admin@mysite.com>' . "\r\n";
$headers .= '<admin@mysite.com>' . "\r\n";
$headers .= 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-Type: text/plain; charset=UTF-8' . "\r\n";
$headers .= 'Content-Transfer-Encoding: 8bit' . "\r\n";
 

bhupendra2895

New Member
Messages
554
Reaction score
20
Points
0
Yes i tried the phpbb and the email didnt get caught in the junk. i've looked at the source code and added the relevant headers but it still ends up in the junk mail. may i know what exactly did you add to your headers? heres mine.
You can compare the recieved headers of Phpbb and your application on the yahoo mail(open mail and select view full headers) or any other mail provider's site.This can help you.Currently I don't have access to PC so I can't check.

---------- Post added at 02:18 PM ---------- Previous post was at 02:15 PM ----------

I didn't added any headers.Currently I am using Phpbb only.As soon as I get my pc repaired I will check it by creating a program of send mail().
 
Top