Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email Font

Status
Not open for further replies.

ZOR

Technical User
Jan 30, 2002
2,963
GB
Is there any way to control the font that gets used in emails from PHP or is it down to the mailserver. I am having lots of problems trying to align columns in emails. Thanks
 
You can control it in the HTML portion of the email. If there's a text part, that will be controlled by the email client.
 
Many thanks, its in the body of the email I am filling. I am putting in text from session arrays. I have spent ages going into where gets into the varaiable putting in white space to try and line up as best as I can. I need to look at how people
get submission forms back in one piece, although they might not be concerned with column alignment. Regards
 
Why deliver your emails with such complex layout? I would suggest something as simple to implement as:

<form_field_name_1>:
<form_field_value_1>

<form_field_name_2>:
<form_field_value_2>

As so on.

Cheers,
Jeff



[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]
 
Many thanks. Re PHPmailer, I do not have PHP on my PC, and cannot get access to the webhost server to do:-

Copy class.phpmailer.php into your php.ini include_path.


Does that rule me out of being able to install/use? I have seen you refer lots of people to the product and would like to give it a go.

Thanks Jeff, it was going through my mind to layout in sequential order, I might go down that road if I cannot find a quick formatting solution. Reason for not jumping to it is it might end up lengthy emails. There again the postage is free. I'll see and let you know. Regards
 
I am building a site, using PHP, on a hosted site.
 
cannot get access to the webhost server to do:-
Copy class.phpmailer.php into your php.ini include_path."

For your own use, just copy the phpmailer file to your own directory. Putting it in the include_path just allows all PHP scripts to include it without specifying the path.
 
Thankyou Igarner, I will persue that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top