Mails aS spam in Yahoo and junk in hotmail

Reply

Join Date: Mar 2008
Posts: 217
Reputation: mrcniceguy is an unknown quantity at this point 
Solved Threads: 4
mrcniceguy mrcniceguy is offline Offline
Posting Whiz in Training

Mails aS spam in Yahoo and junk in hotmail

 
0
  #1
Jul 19th, 2009
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.
  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
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,439
Reputation: cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about 
Solved Threads: 134
cwarn23's Avatar
cwarn23 cwarn23 is offline Offline
Nearly a Posting Virtuoso

Re: Mails aS spam in Yahoo and junk in hotmail

 
0
  #2
Jul 19th, 2009
A classic example of spam classification. I would suggest try using the following code.
  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.
Try not to bump 10 year old threads as it can be really annoying.
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 217
Reputation: mrcniceguy is an unknown quantity at this point 
Solved Threads: 4
mrcniceguy mrcniceguy is offline Offline
Posting Whiz in Training

Re: Mails aS spam in Yahoo and junk in hotmail

 
0
  #3
Jul 19th, 2009
@cwarn23 I tried as u suggested but still the same thing=))
i hope u Give some more Suggestions
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,439
Reputation: cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about 
Solved Threads: 134
cwarn23's Avatar
cwarn23 cwarn23 is offline Offline
Nearly a Posting Virtuoso

Re: Mails aS spam in Yahoo and junk in hotmail

 
0
  #4
Jul 20th, 2009
They must have really tightened their filters so I'm guessing the following might work:
  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.
Try not to bump 10 year old threads as it can be really annoying.
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 231
Reputation: samarudge is an unknown quantity at this point 
Solved Threads: 19
samarudge samarudge is offline Offline
Posting Whiz in Training

Re: Mails aS spam in Yahoo and junk in hotmail

 
0
  #5
Jul 20th, 2009
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
My Blog, Life and everything that matters to me - SamRudge.co.uk

2x Macbook Pro's, 1x Mac Pro, 1x iMac, 2x Macbook's running Fedora linux - In conclusion, I hate windows =)
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 217
Reputation: mrcniceguy is an unknown quantity at this point 
Solved Threads: 4
mrcniceguy mrcniceguy is offline Offline
Posting Whiz in Training

Re: Mails aS spam in Yahoo and junk in hotmail

 
0
  #6
Jul 21st, 2009
@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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 596
Reputation: buddylee17 has a spectacular aura about buddylee17 has a spectacular aura about 
Solved Threads: 125
buddylee17's Avatar
buddylee17 buddylee17 is offline Offline
Posting Pro

Re: Mails aS spam in Yahoo and junk in hotmail

 
0
  #7
Jul 21st, 2009
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.
Lost time is never found again.
- Benjamin Franklin
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 231
Reputation: samarudge is an unknown quantity at this point 
Solved Threads: 19
samarudge samarudge is offline Offline
Posting Whiz in Training

Re: Mails aS spam in Yahoo and junk in hotmail

 
0
  #8
Jul 22nd, 2009
Yes PHP Mailer or some other class or PEAR extension to supply SMTP support
My Blog, Life and everything that matters to me - SamRudge.co.uk

2x Macbook Pro's, 1x Mac Pro, 1x iMac, 2x Macbook's running Fedora linux - In conclusion, I hate windows =)
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 217
Reputation: mrcniceguy is an unknown quantity at this point 
Solved Threads: 4
mrcniceguy mrcniceguy is offline Offline
Posting Whiz in Training

Re: Mails aS spam in Yahoo and junk in hotmail

 
0
  #9
Jul 22nd, 2009
thankx Guys for your suggestions))
i`m working on it.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC