How does PHP mail work?

Discuss about shared web hosting and web hosting in general.
Jansi Jain
Posts: 23
Joined: Tue Jul 05, 2016 9:37 am

How does PHP mail work?

Postby Jansi Jain » Fri Nov 04, 2016 9:51 am

please explain this.

Site Admin
Posts: 85
Joined: Sat Jun 18, 2016 7:35 am
Location: India

Re: How does PHP mail work?

Postby admin » Mon Nov 07, 2016 10:33 am

The operation of the mail function depends on the OS you're using. If you're running on Windows then you need to configure an SMTP relay in your php.ini file. If your OS is some variant of Unix or Linux your php.ini will specify the path to the Send mail executable, or an executable that can respond in the same way as send mail. In an IT context, globally you call the mail () function, provide the function with the sender and receiver email address, the actual content you want, and some optional SMTP headers. The function will then look up the address of the mail server indicated in the php.ini configuration file, and open a network connection to that server.
Contact Number : 1800-212-2022

Links To Our Service Pages:

Cloud Hosting India | Dedicated Server Hosting

Return to “General Web Hosting Discussions”

Who is online

Users browsing this forum: No registered users and 1 guest