dmccabe Posted June 5, 2008 Share Posted June 5, 2008 I am using the following code to send an email to our helpdesk system when a user fills in a form I have made: $email = "darren.mccabe@xyz.com"; $message = "Username: $fist_name <br /> Surname: $surname"; mail("helpdesk@xyz.com","New User Request: $first_name $surname", $message, "From: $email"); the problem is our helpdesk system does not parse html in emails, so the <br /> doesnt work, how can I break the line up without using BR ? Link to comment https://forums.phpfreaks.com/topic/108831-sending-emails-with-line-breaks/ Share on other sites More sharing options...
haku Posted June 5, 2008 Share Posted June 5, 2008 Depending on the system, you want one of the following three choices: \n \r \r\n Try all three and see which one works for you. Link to comment https://forums.phpfreaks.com/topic/108831-sending-emails-with-line-breaks/#findComment-558229 Share on other sites More sharing options...
dmccabe Posted June 5, 2008 Author Share Posted June 5, 2008 Thanks Haku, will get back to on whether this worked or not however at the moment I have another issue which is stopping me checking it. Link to comment https://forums.phpfreaks.com/topic/108831-sending-emails-with-line-breaks/#findComment-558260 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.