邮件没有使用php mail()函数发送到其中一个服务器[重复]

This question already has an answer here:

I am using php mail function for sending mails.It works in several server.but not working in particular server.May be its server issue.How can i resolve it and sending mail in that server or how to redirect to one server to another and perform php mail function.Anyone please help me...

</div>

i had an issue like this on a shared server from hostpapa and had to add this line to my code.

ini_set("SMTP", smtp.yourmailserver.com);

also make sure you specify the mail headers

It could be a lot of possibilites actually. Often, you will send an e-mail with php mail function and you will get no errors but your e-mail will be blocked. Plus, if you want a HTML-based email it's pretty hard to do this with mail(), so please please, use something better like PHPMailer and then try SMTP like mailchimp or even mandrillapp.

Use phpmailer to send mail or check configuration in php.ini is enabled SMPTP/SSL extension file

Please check particular server port is open?

If use send mail using in gmail(Please check 587 or 465 ).

Another site check SMTP/TCP/openssl extension in enabled in this server?

I would suggest you to use send mail using perl

Please visit this link more info

Send email using the GMail SMTP server from a PHP page


php.ini & SMTP= - how do you pass username & password