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 = "gds@googlemail.com"; $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 Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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.