PHP Mail

Discussion in 'PHP' started by CPAPubMichael, Feb 3, 2011.

  1. #1
    Hello,

    I need some help with the PHP Mail function. Well i am trying to get an email template coded within the email so it shows an email within a template etc etc.

    Well anyway, if someone would be kind enough to show me i would be very grateful.

    Thanks in advance,

    Michael.
     
    CPAPubMichael, Feb 3, 2011 IP
  2. TimK

    TimK Peon

    Messages:
    51
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Why can't you just put the HTML template in the message variable?

    Also, use the correct headers:

    $headers = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

    ^Borrowed from: PHP.net.
     
    TimK, Feb 3, 2011 IP
  3. CPAPubMichael

    CPAPubMichael Peon

    Messages:
    231
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That is what i am asking, to put it in the message.

    Thanks,

    Michael
     
    CPAPubMichael, Feb 4, 2011 IP