Re: How do you send stylized email?
| From: | tedd | Date: | Tue, 26 Feb 2008 15:02:00 +0000 |
| Subject: | Re: How do you send stylized email? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-270160@lists.php.net to get a copy of this message | ||
At 9:52 AM -0500 2/26/08, Daniel Brown wrote:
On Tue, Feb 26, 2008 at 9:28 AM, tedd <tedd@sperling.com> wrote:Yeah, but that was just a first draft. I never write anything that runs the first time. :-) It keeps me sharp, or dull, as the case may be. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.comHi gang: I want to send a styled email via heredoc, can that be done? $message = <<<EOT Title: This is a title of the Event. Time: This the time of the Event. Please show up on time. EOTWithout beating the subject to death, since you've already gottentwo good answers, I'll add in that your HEREDOC (aside from being prone to a parse error due to the missing semicolon after the closing EOT) will end immediately afterplease show up on time.Even though you started EOT on it's own line as is required, thelast carriage return/newline will not be included in $message. If you want an ending newline (which I consider a Good Idea[tm]), then change the above to: $message =<<<EOT Title: This is the title of the Event. Time: This is the time of the Event. Please show up on time. EOT;