PHP Email – A Beginners Guide
Saw a nicely done introduction tutorial to sending email with PHP:
PHP has a very simple mail function which is used very often for basic text mail messages. What if you need to attach files or if you need to send your e-mail messages via SMTP? Than it’s time to use a more advanced script. This is because the standard mail function has only limited standard capabilities. There are many reasons to use SMTP transport for sending e-mail messages from your web application …
You can also check out:
- mail – the basic PHP function for sending email
- PHP mail() Function
2 Comments to PHP Email – A Beginners Guide
One of the simplest ways to use the PHP mail function in actual web application are as follows:
You need to define the required variables first and then use the mail function to finally send your mail.
I have done this with a lot of application and really works well, provided all required variables are validated first. Just my two cents.
June 9, 2010
The code is not shown above, by the way it is here:
$to = “whereyourliketosend@domain.com”;
$subject = “Your email subject here.”;
$message = “Your short message here”;
$from = “yourmail@domain.com”;
$headers = “From: $from”;
mail($to,$subject,$message,$headers);
Leave a comment
Please share, it makes me happy:
Subscribe to Email Alerts
Make a Donation
Popular Posts
Follow Me
Recent Posts
Archives
Tags
Blogroll
- 456 Berea St
- ActionScript 3 Design Patterns
- adactio – home of Jeremy Keith
- ajaxian
- Boxes and Arrows
- Chris Brogan
- CSS Globe
- InsideRIA
- Jarrod Michael Studios
- Johan Brook: Designer and Developer
- Mad Vertices
- NETTUTS
- Portsmouth Community Calendar
- Roomware Blog
- Signal vs. Noise
- Six Revisions
- Snook
- Style Grind
- Tiago’s Weblog
- Viget Extend
- Vitamin
- Whats the latest
- Woork
- zupko.info

June 9, 2010