tags:

views:

38

answers:

2

hi all i use wp_mail function in wordpress to send mail but my email is know as spam in yahoo,..

i use same following code

$headers = 'From: myname <[email protected]>' . "\r\n\\"; 

 wp_mail('[email protected]', 'The subject', 'The message',$headers);

please give a Suggestion ?

thanks

+2  A: 

This is probably nothing to do with wordpress and everything to do with spam protection methods ... are you allowed to send email for that domain? Trying to send from [email protected] will definitely get you marked as spam - google SPF records for why, then make sure you have one. Make sure your email comes from a reputable domain that's installed properly on your server.

James
A: 

Just a guess, are you using EC2 or something similar?

outgoing mail from these server suffer from being marked as spam.

kenzaraque