Important alert: (current site time 7/15/2013 10:03:25 AM EDT)
 

winzip icon

A ( part1 ) Powerful php code to send HTML Format Emails

Email
Submitted on: 11/22/2002 6:32:27 AM
By: James Smith K  
Level: Beginner
User Rating: By 13 Users
Compatibility: PHP 3.0, PHP 4.0
Views: 51457
(About the author)
 
     Help you send mail in HTML format , Here you can change the variables as required to suit your needs , please make it sure that the code is on live server (Server Connected to Internet) which can be accessed by http protocal

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 4 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

6/26/2003 9:32:42 AM

The following warning is given while executing your code
**Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()**
in my php.ini file it is set
SMTP = localhost
I am behind a firewall, so tell me if
it is OK to receive such messege and if not give me some help.

(If this comment was disrespectful, please report it.)

 
8/31/2003 4:16:05 PMDound

set your outgoing port to 24 and it should get around the trouble
(If this comment was disrespectful, please report it.)

 
7/20/2004 2:49:19 AM

i've tried other coding with the same function (sending email), but both appeared to result almost the same error, that is

"Warning: mail(): SMTP server response: 501 5.5.4 Invalid Address in C:\Apache\Apache2\htdocs\htmlmail.php on line 35 Mail Dead"

i believe this occured because some problem with my localhost. can u please give me some ideas for solution..tq
(If this comment was disrespectful, please report it.)

 
6/27/2005 3:33:07 AMSPY-3

Well it works fine for me i give you 5 globes!
(If this comment was disrespectful, please report it.)

 
9/9/2005 6:07:08 AMCal

the interview didnt go 2 well. but thanks for the nice email
(If this comment was disrespectful, please report it.)

 
2/14/2006 5:13:54 AMRashid

im a beggers of PHP, plz can u tell me how i install it thax
(If this comment was disrespectful, please report it.)

 
2/14/2006 5:21:46 AMRashid

i am beggers plz can u help me how i install it thax m_rashid_m@hotmail.com
(If this comment was disrespectful, please report it.)

 
1/23/2007 4:54:14 AMJames

how can i change my localhost to 24?? can i find it in the php.ini?
(If this comment was disrespectful, please report it.)

 
1/29/2008 12:38:15 PMRichar Swarn

Is there a limit to the size of the msg that is emailed? Htmlmail fails (doesn't send) when I seem to get to a certain number of lines.
(If this comment was disrespectful, please report it.)

 
1/30/2008 9:03:43 AMJames Smith K

Richar the code does not have any max limit specified on the mail sent. check ur config files such as php.ini / httpd.conf if there are any upload limitations
(If this comment was disrespectful, please report it.)

 
4/10/2008 11:10:40 PMChris

This zip file only has htmlmail.php in it, its useless.
(If this comment was disrespectful, please report it.)

 
6/2/2008 10:04:36 AMAscent Computer Technology

this is amazing, and very usefull.
(If this comment was disrespectful, please report it.)

 
1/7/2009 2:20:15 AMjames

thanks for the sourcecode.
(If this comment was disrespectful, please report it.)

 
7/20/2009 11:51:58 PMaamir

It is really a nice email script.Excellent job
(If this comment was disrespectful, please report it.)

 
7/4/2012 2:52:12 AMWong_Yet_Man

thnx for sharing
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.