MIME (sending HTML so that it formats correctly in hotmail).

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ricnut
Forum Newbie
Posts: 10
Joined: Tue Nov 21, 2006 12:44 am

MIME (sending HTML so that it formats correctly in hotmail).

Post by ricnut »

JayBird | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Code: Select all

$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$today = date ("l, F jS Y");

$strMessagebody = "$message_body\n";
$mailheaders = "x-mailer:nUTy";
$subject = "url submission";
$mymail =  "ricnut@blabla.com";

{mail($mymail,$subject,$strMessagebody,$mailheaders,$headers);}
It does send the message, and the html code is in the body, but it's not proccesing it as html code. If I forward the message from LYcos mail account to hotmail, it looks proper. I've tried a dozen MIME handler scripts and none of them work for me, mostly because I have no idea what I'm doing. :?


JayBird | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

Take a look at SwiftMailer - http://www.swiftmailer.org
ricnut
Forum Newbie
Posts: 10
Joined: Tue Nov 21, 2006 12:44 am

Swift mailer

Post by ricnut »

Awsome this program works great! Thanks. What's a good book for learning PHP? Should I start with Javascript or jump right in to PHP?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Swift mailer

Post by Chris Corbyn »

ricnut wrote:Awsome this program works great! Thanks. What's a good book for learning PHP? Should I start with Javascript or jump right in to PHP?
PHP is easier to learn than JS IMO. JS can get a bit hairy at times :)
Post Reply