简体   繁体   中英

how to send email from php application to a local email

I have a local network in the company with a mail server, how can i make php application built locally on the server to send and email to a local email address?

thanks in advance

Just send it with the mail function. It's up to the system administrator to configure the MTA properly. In your example the MTA on the server would be configured to deliver mail for certain addresses locally instead of sending them out to the Internet.

configure an smtp for the local server, and send using PEAR.

Example

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