RatataDK Posted January 28, 2009 Share Posted January 28, 2009 Hey all. This is my first post here I want to send a mime multipart email with mail(); function but can't get it to work. Header and message. << output off mail contens. I used str_replace(); to deal with linebreaks, but mail(); get the linebreaks like \n I can send email in plain text/html with no problem I think the problem may be my email header?? Or it might be mail(); function that can't handle mime multipart?? I would love it if mail() function had an error handler Hope some of your masterminds can crack this one... Quote Link to comment https://forums.phpfreaks.com/topic/142714-sending-multipart-email-with-mail-help/ Share on other sites More sharing options...
premiso Posted January 28, 2009 Share Posted January 28, 2009 Post some code and maybe we will be able to help. I would suggest googling phpMailer and using that script for complex emails like you want. Quote Link to comment https://forums.phpfreaks.com/topic/142714-sending-multipart-email-with-mail-help/#findComment-748090 Share on other sites More sharing options...
RatataDK Posted January 28, 2009 Author Share Posted January 28, 2009 Post some code and maybe we will be able to help. I would suggest googling phpMailer and using that script for complex emails like you want. You are to fast m8... you will find the code if you follow the link I have phpMailer but want to use my own code...learn by trail and error Quote Link to comment https://forums.phpfreaks.com/topic/142714-sending-multipart-email-with-mail-help/#findComment-748096 Share on other sites More sharing options...
premiso Posted January 28, 2009 Share Posted January 28, 2009 Post some code and maybe we will be able to help. I would suggest googling phpMailer and using that script for complex emails like you want. You are to fast mate... you will find the code if you follow the link I have phpMailer but want to use my own code...learn by trail and error Use phps extension for that page to display properly with syntax highlights, right now it is just garbled text. Quote Link to comment https://forums.phpfreaks.com/topic/142714-sending-multipart-email-with-mail-help/#findComment-748097 Share on other sites More sharing options...
RatataDK Posted January 28, 2009 Author Share Posted January 28, 2009 Nice... i discoverd the function for highliting code.. Like i said..learn by trail and error Quote Link to comment https://forums.phpfreaks.com/topic/142714-sending-multipart-email-with-mail-help/#findComment-748118 Share on other sites More sharing options...
RatataDK Posted January 28, 2009 Author Share Posted January 28, 2009 Problem solved i use sendmail i have tested phpMailer using mail() and it fails too, it delivers the mail but in plain text :-\ and when attaching a file it fails sending the mail??? Problem solved by using sendmail Quote Link to comment https://forums.phpfreaks.com/topic/142714-sending-multipart-email-with-mail-help/#findComment-748270 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.