Re: a link in php generated mail

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

 



> I have an link in a php generated email that does not work. I tried adding
> http:// but with no result. It says the link is blocked. I created the mail
> with html formatting.
> I use pear email. Is there anything I have to consider to make this work?

Set the content type of the email to text/html. You can then treat the
body as a simple HTML document. The exact header would be:

Content-Type: text/html

My advice would be however, to leave it as plain text and use simple
URLs in the body. Many email readers (GMail for example) will make
them clickable automatically.

-- 
Richard Heyes

HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.phpguru.org/RGraph

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