Jump to content


Photo

Advance Mail - Mail with attach & HTML Mail


  • Please log in to reply
1 reply to this topic

#1 adyre

adyre
  • Members
  • Pip
  • Newbie
  • 8 posts

Posted 10 June 2006 - 09:15 PM

How can I send a mail with an atachment and with HTML...

For HTMl I tried Content Type and it doesen't work to send to yahoo...

Don't wan't phpmailer... just a simple cod...

Anticipated 10x...

#2 poirot

poirot
  • Members
  • PipPipPip
  • Advanced Member
  • 646 posts
  • LocationAustin, TX

Posted 10 June 2006 - 09:19 PM

It's all about the headers. For HTML mail:

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

As for attachments, you might want to look at this:
[a href=\"http://www.finalwebsites.com/snippets.php?id=36\" target=\"_blank\"]http://www.finalwebsites.com/snippets.php?id=36[/a]
~ D Kuang




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users