the_oliver Posted June 2, 2007 Share Posted June 2, 2007 mail($EmailTo, $Subject, $Body, $mail_header, "From: <$from>"); Hello im trying to set the from address in an email, but when i do it with the above it doesnt work! Instead it stops the header being set to HTML and shows that code. Can any one tell me where im going wrong? Also how can i send attatchments with an email? Thanks! Link to comment https://forums.phpfreaks.com/topic/54044-email-from-address-and-attachments/ Share on other sites More sharing options...
zell11 Posted June 2, 2007 Share Posted June 2, 2007 Post you headers so we can see if they are getting set-up ok. Link to comment https://forums.phpfreaks.com/topic/54044-email-from-address-and-attachments/#findComment-267190 Share on other sites More sharing options...
the_oliver Posted June 3, 2007 Author Share Posted June 3, 2007 $mail_header = "MIME-Version: 1.0" . "\r\n"; $mail_header .= "Content-type: text/html; charset=iso-8859-1" . "\r\n"; Thanks! (works fine without the From: bit) Link to comment https://forums.phpfreaks.com/topic/54044-email-from-address-and-attachments/#findComment-267200 Share on other sites More sharing options...
tail Posted June 3, 2007 Share Posted June 3, 2007 http://www.phpfreaks.com/tutorials/130/0.php Link to comment https://forums.phpfreaks.com/topic/54044-email-from-address-and-attachments/#findComment-267290 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.