How to use PHP to send emails?

You may use PHP mail () function to send emails from website. For example,

   mail($to, $subject, $message, $headers);

 

Also, please visit http://php.net/manual/en/function.mail.php to get more information about PHP mail ().

 

Besides, any Cloud UNIX Business Plan or above can use SMTP to send emails. SMTP login information is as follows:


          Username: your full email address, e.g., [email protected]

  Password: your email account password

          SMTP Server: smtp.yourdomain.com, e.g., smtp.wcpdemo.com 

 

 

 

 

 

 

 

Desktop version