Jump to content

Aligning and bold text in email message


taz321

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.