| | |
Mails aS spam in Yahoo and junk in hotmail
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Mar 2008
Posts: 217
Reputation:
Solved Threads: 4
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.
Any suggestion on how to Overcome this will be Appreciated
but in yahoo they are saved in the Spam folder also hotmail in junk folder.
php Syntax (Toggle Plain Text)
$from="From:mysite@mysite.com\r\n"; $to="$email"; $subject="$user left you a Profile Comment on mysite.Com "; $content="$user left you a profile comment on mysite.Com to view the Comment click http://www.mysite.com"; if($content){ mail($to, $subject, $content,$from);
A classic example of spam classification. I would suggest try using the following code. 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.
php Syntax (Toggle Plain Text)
$from="From:mysite@mysite.com\r\n"; $to=$email; $subject="$user left you a Profile Comment"; $content=" $user has given you a new comment on your profile at mysite.Com to view the comment click http://www.mysite.com"; if($content){ mail($to, $subject, $content,$from);
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
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
They must have really tightened their filters so I'm guessing the following might work:
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.
php Syntax (Toggle Plain Text)
$from="From:mysite@mysite.com\r\n"; $to=$email; //do not put .com or any other tld after sitename as it is just the name. $subject="Profile comment on Sitename"; $content="User replied: $user A user has given you a new comment on your profile. To view the comment go to the below url. http://www.mysite.com"; if($content){ mail($to, $subject, $content,$from);
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
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
•
•
Join Date: May 2008
Posts: 232
Reputation:
Solved Threads: 19
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
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 =)
2x Macbook Pro's, 1x Mac Pro, 1x iMac, 2x Macbook's running Fedora linux - In conclusion, I hate windows =)
•
•
Join Date: Mar 2008
Posts: 217
Reputation:
Solved Threads: 4
@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???
@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.
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
- Benjamin Franklin
•
•
Join Date: May 2008
Posts: 232
Reputation:
Solved Threads: 19
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 =)
2x Macbook Pro's, 1x Mac Pro, 1x iMac, 2x Macbook's running Fedora linux - In conclusion, I hate windows =)
![]() |
Similar Threads
- Internal Mail being sent to SPAM folder (Windows Servers and IIS)
- phpMailer mail goes into junk folder (PHP)
- How can someone hack your AOL account? (Geeks' Lounge)
- Hotmail Access Trouble (Web Browsers)
- Page cannot be displayed when login to Hotmail (Web Browsers)
- Customize those e-mails! (Growing an Online Community)
- yahoo mail and others ok but not hotmail or msn page not found dns error (Viruses, Spyware and other Nasties)
Other Threads in the PHP Forum
- Previous Thread: Delete Row
- Next Thread: it display all the details.. need help!!
| Thread Tools | Search this Thread |
301 apache api array autosuggest beginner binary broken cakephp checkbox class cms code compression cron curl data database date display dropdownlist dynamic echo email eregi error execution file files folder form forms function functions google href htaccess html httppost if...loop image include insert ip javascript joomla jquery key library limit link links login mail md5 menu mlm multiple mysql mysql_real_escape_string oop paypal pdf pdfdownload php phpvotingscript problem query radio random recursion remote screen script search searchbox server session sessions sms sorting source space sql syntax system table tutorial update upload url validator variable video volume votedown web website youtube zend






