Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

Search: 

  Tutorial: PHP Mailing List Management The PHP mail() Function Tutorial

Learn abouth the mail() function in PHP, and how to specialize the parameters. The mail() function enables you to send an email from a browser

Tutorial Details:

The PHP mail() Function

This tutorial will teach you how to send an email from php using the built in mail() function. It will also show you some other parameter values you can input to personalize the email.

1. The proper syntax of the mail() function is as followings.

mail ( to , subject , message , headers );

to - This is where the email of the person who will recieve the email goes. So I might put in fred@domain.com.

subject - This is where the subject of the email goes. So I might put "Affiliate Request for Domain.com".

message - This is where the message that we are sending will go. So I might put "Hello Fred, I would like to affiliate with your site. My website www.domain2.com has similar content to yours and recieves 2000 Unique a day.".

headers - Here we would put headers for the email, this parameter is optional and is not required to send an email. This is usally used to add extra headers (CC, From, and Bcc) but can also be used to declare the content-type (so we can make it send an HTML email). An example of what I might put could be "From: Affiliation ".


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
PHP Mailing List Management The PHP mail() Function Tutorial

View Tutorial:
PHP Mailing List Management The PHP mail() Function Tutorial

Related Tutorials:

Displaying 1 - 0 of about 0 Related Tutorials.

Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.