Use PHP mail to send via smtp

前端 未结 5 1254
情话喂你
情话喂你 2021-01-20 11:41

Does anybody know if you can configure php\'s mail() command so it will only use an SMTP server rather than the local sendmail? We are having trouble with emails being marke

5条回答
  •  失恋的感觉
    2021-01-20 12:10

    Check these links:

    • Link One

    • Link Two

    • Link Three

    Example:

    Update: You can use this then, but it opens and closes the SMTP socket on each mail() function called.

    
    

提交回复
热议问题