Re: A dumb question regarding sending email
| From: | Ross McKay | Date: | Wed, 13 Aug 2008 02:20:32 +0000 |
| Subject: | Re: A dumb question regarding sending email | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-278015@lists.php.net to get a copy of this message | ||
On Tue, 12 Aug 2008 22:07:41 -0400, tedd sperling wrote:
>I have a herdoc that I send out as an email -- no problems there.
>
>However, how do I include a link within it?
>
>If I use http://example.com, it's just a string but not an
>actual link.
>
>So, how do you format a link in a heredoc?
a) most email programs will detect that plain-text URL and turn it into
a link when displaying the email, so... maybe you don't want to bother!
b) send the email with an HTML body (either instead of or in addition to
the plain-text body), and use the standard
<a href='http://example.com/'>http://example.com/</a>
in the HTML body. You'll need to catch the heredoc as a string, and
replace any URLs with the anchored URL as above.
--
Ross McKay, Toronto, NSW Australia
"Before enlightenment: chop wood, carry water;
After enlightenment: chop wood, carry water" - Wu Li