1. Home
  2. Computing & Technology
  3. PHP / MySQL
photo of Angela Bradley
Angela's PHP / MySQL Blog

By Angela Bradley, About.com Guide to PHP / MySQL

The Mail () Function

Friday August 4, 2006
Sending an e-mail from PHP is a relatively simple process compared to some other languages. In fact, it's all taken care of in a single function: Mail (). This one function allows us to specify the recipient, subject, body, and headers (including from) all in one line.
Comments
August 9, 2006 at 8:45 pm
(1) Tom says:

great page, jsuty great! real informative

http://php.about.com/od/advancedphp/ss/mail_3.htm

March 7, 2007 at 3:45 pm
(2) teet says:

64

December 31, 2007 at 9:10 pm
(3) Troz says:

How do you send html email msgs?

January 28, 2008 at 10:33 am
(4) Scott says:

As a site admin for a free hosting service, we are now running into a serious issue with the PhP mail() function.

With so many users trying to send group e-mails to essentially hundreds of visitors to their site, the mail() function keeps timing out. Or, may send a few of the e-mails sometimes and not other times.

I have modified the PhP to allow for a longer “time out” period to no avail.

I am sure it is a combination of just hundreds of websites having hundreds of visitors in conjunction with the mailing function of notes to visitors of those sites.

But how can we address it?

Better server, updated PhP/MySQL/Apache software? Increased band width? What?

Thank You,
Scott

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Discuss
Community Forum
Explore PHP / MySQL
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. PHP / MySQL

©2009 About.com, a part of The New York Times Company.

All rights reserved.