Sending Email From PHP Script
Sending Email From PHP Script
========================
It is easy to send email directly from our PHP Script.
Syntax:
======
bool mail ( string to, string subject, string message [, string additional_headers [, string additional_parameters]])
- This function automatically mails the message specified in message to the receiver specified in to.
- Multiple recipients are also given here, by using seperated by commas between each email address.
- Email with attachments and special types of content can be sent using this function.
Example:
=======
mail(”receiver@mail.com”,”samplesubject”,”sample message”);
- here, the mail will automatically sent to the receiver. in the name of sending server address.
But there is an other option to given sender’s mail address in this function.
mail(”receiver@mail.com”,”samplesubject”,”sample message”,”From : sender@mail.com“);
- by using this fourth parameter, we denote the sender’s address.
========================================
