Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 492 Bytes

File metadata and controls

9 lines (7 loc) · 492 Bytes

How to add SMTP relay to php mail function on PEAR

This is an example, that how can you add SMTP relay in your php mail() function. There are some points you have note:

  1. You have you use your own website webmail email id in "from".
  2. You need add your your webmail email id username, password and host. You can use localhost as well in example.
  3. $headers should be an array
  4. You have install Mail throw PEAR in your CPanel.
  5. Include Mail.php file and php folder path as example.