943,547 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 812
  • PHP RSS
Jul 19th, 2009
0

Mails aS spam in Yahoo and junk in hotmail

Expand Post »
the code below i`m using to send emails to members in my site.
but in yahoo they are saved in the Spam folder also hotmail in junk folder.
php Syntax (Toggle Plain Text)
  1.  
  2. $from="From:mysite@mysite.com\r\n";
  3. $to="$email";
  4. $subject="$user left you a Profile Comment on mysite.Com ";
  5. $content="$user left you a profile comment on mysite.Com
  6. to view the Comment click http://www.mysite.com";
  7.  
  8. if($content){
  9. mail($to, $subject, $content,$from);
Any suggestion on how to Overcome this will be Appreciated
Similar Threads
Reputation Points: 17
Solved Threads: 8
Posting Whiz in Training
mrcniceguy is offline Offline
278 posts
since Mar 2008
Jul 19th, 2009
0

Re: Mails aS spam in Yahoo and junk in hotmail

A classic example of spam classification. I would suggest try using the following code.
php Syntax (Toggle Plain Text)
  1. $from="From:mysite@mysite.com\r\n";
  2. $to=$email;
  3. $subject="$user left you a Profile Comment";
  4. $content=" $user has given you a new comment on your profile at mysite.Com
  5. to view the comment click http://www.mysite.com";
  6.  
  7. if($content){
  8. mail($to, $subject, $content,$from);
Why is it classified as spam? Well from what I can tell having a website in the subject would bump up the ranking and possibly making the content almost identical to the title. Also make sure the email from header is not from hotmail or yahoo as that will for sure bump up the ranking if sending to hotmail from hotmail for example. Hope that helps.
Sponsor
Featured Poster
Reputation Points: 410
Solved Threads: 258
Occupation: Genius
cwarn23 is offline Offline
3,004 posts
since Sep 2007
Jul 19th, 2009
0

Re: Mails aS spam in Yahoo and junk in hotmail

@cwarn23 I tried as u suggested but still the same thing=))
i hope u Give some more Suggestions
Reputation Points: 17
Solved Threads: 8
Posting Whiz in Training
mrcniceguy is offline Offline
278 posts
since Mar 2008
Jul 20th, 2009
0

Re: Mails aS spam in Yahoo and junk in hotmail

They must have really tightened their filters so I'm guessing the following might work:
php Syntax (Toggle Plain Text)
  1. $from="From:mysite@mysite.com\r\n";
  2. $to=$email;
  3. //do not put .com or any other tld after sitename as it is just the name.
  4. $subject="Profile comment on Sitename";
  5. $content="User replied: $user
  6. A user has given you a new comment on your profile.
  7. To view the comment go to the below url.
  8. http://www.mysite.com";
  9.  
  10. if($content){
  11. mail($to, $subject, $content,$from);
Other than that the only thing I can think of is wording it so it has a fake unsubscribe link for the email bots to read.
Sponsor
Featured Poster
Reputation Points: 410
Solved Threads: 258
Occupation: Genius
cwarn23 is offline Offline
3,004 posts
since Sep 2007
Jul 20th, 2009
0

Re: Mails aS spam in Yahoo and junk in hotmail

Clasic examples of rules in spam filters are
If your site is younger that about a year
Your message is in plain text
The email address you are sending from doesn't actualy exist (The server can't send a message back to it)
The SMTP server you are using to send is known for spamming or is on a dynamic IP or an unsecure connection
Hope that helps,
Sam
Reputation Points: 26
Solved Threads: 31
Posting Whiz
samarudge is offline Offline
354 posts
since May 2008
Jul 21st, 2009
0

Re: Mails aS spam in Yahoo and junk in hotmail

@cwarn23 i did as you wrote,and strange thing happened because sometimes when i send they received in Inbox and sometimes they go to spam again!!!!
@Samarudge EŃ…plain in details please!what is plain text
Are u also trying to suggest i should change the server???
Last edited by mrcniceguy; Jul 21st, 2009 at 6:11 pm.
Reputation Points: 17
Solved Threads: 8
Posting Whiz in Training
mrcniceguy is offline Offline
278 posts
since Mar 2008
Jul 21st, 2009
0

Re: Mails aS spam in Yahoo and junk in hotmail

The php mail function works great for a contact page on your site that will send the email to your sites MX. However, when sending to other mail servers such as yahoo, gmail, hotmail... it's not reliable enough to trust. Why? Because the mail function doesn't have SMTP authentication. Use one of php's prebuilt libraries, such as class.phpmailer.php. I use it for a mailing list and have tested through Yahoo, Gmail, Hotmail, and several others. It also provides a way to send both a plain text and html version of the message.
Reputation Points: 232
Solved Threads: 137
Practically a Master Poster
buddylee17 is offline Offline
665 posts
since Nov 2007
Jul 22nd, 2009
0

Re: Mails aS spam in Yahoo and junk in hotmail

Yes PHP Mailer or some other class or PEAR extension to supply SMTP support
Reputation Points: 26
Solved Threads: 31
Posting Whiz
samarudge is offline Offline
354 posts
since May 2008
Jul 22nd, 2009
0

Re: Mails aS spam in Yahoo and junk in hotmail

thankx Guys for your suggestions))
i`m working on it.
Reputation Points: 17
Solved Threads: 8
Posting Whiz in Training
mrcniceguy is offline Offline
278 posts
since Mar 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Delete Row
Next Thread in PHP Forum Timeline: it display all the details.. need help!!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC