user1400
user1400

Reputation: 1409

why my emails with wp_mail function is known as spam

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

Upvotes: 1

Views: 5424

Answers (1)

James
James

Reputation: 3275

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.

Upvotes: 2

Related Questions