How to send mail in php - Phptpoint

PHP Mail Function

/ins>

Sending Email using Php (Text/HTML/Attachments)

Most Popular Intern-ate service Now a days is Email. Thousands of Emails send and received each day.The PHP Sending Email Tutorial goal’s is to demonstrate how to send email.

Sometimes Sending Email by you contains Only Text message, sometimes it contains Some HTML Scripts and sometimes You want to send your mail some message with some attachments.

Sending a Simple Text Email

At First, lets start with Sending a Simple Text Email. The Php mail( ) function is used to send Emails in PHP. Inside mail( ) function you can pass three Basic and one optional Parameters.

Three Basic Parameters : The email address to send(Receiver email), Subject of mail, Content/message of the mail.

Optional Parameters: additional headers you want to include(headers and sender mail)

PHP Script

HTML Form(enter your personal information which info u want to send)

In above example , a mail is sent to info@gmail.com which is receiver address and mail is sent by phptpoint. subject,messages and headers are also given.