Re: A dumb question regarding sending email

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

 



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

-- 
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