Sending Email From PHP Script

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.

========================================

Leave a Reply

You must be logged in to post a comment.


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.