Page 1 of 1

decorating outgoing email messages

Posted: Tue Aug 21, 2007 12:33 pm
by Yourchild
Hi I am trying to 'decorate' my outgoing mails. I am sending emails from my server to my clients using php. In my out going emails, the message should look like something similar to the below. So if the user opens their email, they will see this:


-------------------------------------------------------
Dear Friend,


Thank you for signing up with our site. We gladly invite you to join us in our next contest. Please click here for details.


Sincerely Your's

myCompany@mycompany.com
--------------------------------------------------------




The part in my message that says 'click here' is a link to my website. When I insert the <a href="http://www.mysite.com">click here</a> into the $body variable, the entire <a href="http://www.mysite.com">click here</a> gets printed to the screen.


So my outgoing message actually looks like this:

-------------------------------------------------------------------
Dear Friend,


Thank you for signing up with our site. We gladly invite you to join us in our next contest. Please <a href="http://www.mysite.com">click here</a> for details.


Sincerely Your's

myCompany@mycompany.com
-------------------------------------------------------------------


Am I missing something here? Is this a quotation issue because I'm pretty sure thats how you insert a link into your outgoing messages.

Any help will be gladly appreciated. Thank you.

Posted: Tue Aug 21, 2007 12:36 pm
by Chris Corbyn
Post your code...

Sounds like you're missing the Content-type header.

Posted: Tue Aug 21, 2007 12:37 pm
by feyd
Yep, sounds like Content-type.