Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

aftabdev12/How-to-add-SMTP-relay-to-php-mail-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

5 Commits

Repository files navigation

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.

About

There is an example how can you add smtp relay to your php mail() function to send mail with smtp protocol.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /