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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mail Function

Status
Not open for further replies.

Rhyan

Programmer
Jul 4, 2000
33
US
Hi, How can I format the Text in this function. For example, I'd like to have the Text Wrap, or at least know how to separate the text on different lines for longer emails. Any other email tips and suggestions would be greatly appreciated. I checked out the php.net site and didn't find it much use.

mail ($email,'Welcome To BAA','Thank you for joining the first and Best Backgammon Club on the Zone',
'From: pip@baaclub.com'); [sig][/sig]
 
Hi Rhyan,

do this :

$subject = "Welcome To BAA";

$message = "
Dear Blaa,
Thank you for blaa blaa ..

more blaas.

";

mail ($email,$subject,$message);


now your message will be formatted.

Cheers [sig]<p>Ken<br><a href=mailto:admin@mysqlwebring.com>admin@mysqlwebring.com</a><br><a href= Webring</a><br>[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top