Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4

Thread: sending html

  1. #1
    Senior Member iphong's Avatar
    Join Date
    Mar 2003
    Location
    Arlington, VA
    Posts
    751
    Member #
    916
    How do i sent an email with HTML code that the mail software can unserstand with PHP mail function?

    Thanks
    Vu Tuan Phong
    iPhongDesign

    http://iphong.com
    http://adstudio1.com

  2.  

  3. #2
    Senior Member ajaspers's Avatar
    Join Date
    Apr 2003
    Posts
    149
    Member #
    1150
    PHP Code:
    mail('email@address.com''subject''message',
      
    "From: [email]other@address.com[/email] <blah blah>\n" .
      
    "Content-Type: text/html;\n" .
      
    "\tcharset=\"iso-8859-1\""); 
    Untested, but it should work.

  4. #3
    Member Black Vivi's Avatar
    Join Date
    Apr 2003
    Location
    UK
    Posts
    75
    Member #
    1072
    use this, before u use the mail() function:
    PHP Code:
    $headers "MIME-Version: 1.0\r\n";
    $headers.= "Content-type: text/html;";
    $headers.= "charset=iso-8859-1\r\n";
    $headers.= "From: YOURE EMAIL ADDRESS"
    and then, use this for the mail function:
    PHP Code:
    mail("TO EMAIL ADRESS""EMAIL SUBJECT"" EMAIL MESSAGE"$headers); 
    obviously u gotta change some stuff
    Download Firebird now!

  5. #4
    Senior Member iphong's Avatar
    Join Date
    Mar 2003
    Location
    Arlington, VA
    Posts
    751
    Member #
    916
    Ok i got it, thankx for all your helps guys!!! !
    Vu Tuan Phong
    iPhongDesign

    http://iphong.com
    http://adstudio1.com


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:36 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com