decorating outgoing email messages

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Yourchild
Forum Newbie
Posts: 16
Joined: Mon Jul 30, 2007 3:04 pm

decorating outgoing email messages

Post 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.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Post your code...

Sounds like you're missing the Content-type header.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Yep, sounds like Content-type.
Post Reply