Re: How do you send stylized email?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tedd wrote:

> Hi gang:
> 
> I want to send a styled email via heredoc, can that be done?

Yes.

> $message = <<<EOT
> Title: This is a title of the Event.
> Time: This the time of the Event.
> 
> Please show up on time.
> EOT
> 
> mail('example@xxxxxxxxxxx' , 'An Event' , $message);
> 
> If so, how do you style it?

With the normal elements - for text emails, whitespace, line breaks and
line spacing.  For HTML emails, you style it as you would any webpage
with HTML and CSS.


/Per Jessen, Zürich

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux