taz321 Posted March 24, 2008 Share Posted March 24, 2008 Hi Was wondering if i could get a quick hand in this, i have an email facility in my program which automatically send emails. Now i am spending too much time getting the look of the email right and am not getting anywhere, i am trying to get bold texts around the main headings in the email by putting the <b>, </b> but they just appear on the actual message. Does anyone have a idea on the code for bold text and aligning texts. Many Thanks This is my code $to = "[email protected]"; $subject = "Technical Query Progress"; $body = "Dear Client\n There has been an amendment made in your submitted Query \n \n Enquiry Number ".$formID."\n Issue Title ".$issuetitle."\n System Affected ".$systemaffected."\n\n Issue Details by the Client\n ".$issuedetails."\n Analyst Support Comments\n ".$supportcomments."\n\n Priority Level ".$prioritylevel."\n\n Status of Query ".$status."\n Thank You Jupiter Development Support Analyst ... This is an automated message, PLEASE DO NOT REPLY Link to comment https://forums.phpfreaks.com/topic/97671-aligning-and-bold-text-in-email-message/ Share on other sites More sharing options...
Betard Posted March 24, 2008 Share Posted March 24, 2008 if I am understanding you correctly you want the recipient of the email to have a better formatted email(with bold titles and better alignment)? IF that is the case then you simply need to send the email in HTML format and then you can use any/all email formatting tags to do what you need. you'll have to do some reading on the structure of text/html emails $body = "Dear Client<br /> There has been an amendment made in your submitted Query <br /> <strong>Inquiry Number: </strong>".$formID.".... and so on.... hope this helps to at least get you going in the right direction. Link to comment https://forums.phpfreaks.com/topic/97671-aligning-and-bold-text-in-email-message/#findComment-499770 Share on other sites More sharing options...
rhodesa Posted March 24, 2008 Share Posted March 24, 2008 Yeah, and you need to send extra headers specifying that the email is an HTML email. If you just want to make aligning easier, try using a \t, as that is a tab character Link to comment https://forums.phpfreaks.com/topic/97671-aligning-and-bold-text-in-email-message/#findComment-499772 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.