简体   繁体   中英

Sending email via mail function in php on Linux server

Is there a way I can send emails from PHP using smtp auth? It appears my host doesn't allow you to send email without auth using the mail function in php.

I can't use pear because i don't think they support it.

Use Swiftmailer or PHPMailer instead. They're far more robust, and easier to use than PHP's mail() function, particularly if you want to do HTML mail and/or attachments.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM