Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how you send and html formatted mail? 2

Status
Not open for further replies.

sandravega

Programmer
Feb 10, 2004
43
0
0
AR
Well, that's what I want to do:
send an email with images and a css link to format it

I'm constructing de headers part of the mail like this:

Code:
$mailHeaders = "From: reserve@selfcatering.com.ar\r\n";
$mailHeaders .= "MIME-Version: 1.0\r\n"; 
$mailHeaders .= "Content-Type: text/html; charset=ISO-8859-1\r\n"     
$mailHeaders .= "Content-Transfer-Encoding: base64\r\n\r\n";

I use $mailHeaders as the headers parameter of the mail function....
but then I get a mail full of trash characters... no matter how a simple html string the body of the mail is. I don`t have a clue of what's happening... So I wish you can help me.

Thank you all, anyway.

Sandra
 
Sleip-

I've been here less than a month, and I've seen you reference the PHPMailer class on at least 5 occasions. Is it worth an FAQ?

Maybe it's not, since if any searches were done in the first place, these questions would not need to be asked.

*cLFlaVA
----------------------------
A polar bear walks into a bar and says, "Can I have a ... beer?"
The bartender asks, "What's with the big pause?
 
touché.

*cLFlaVA
----------------------------
A polar bear walks into a bar and says, "Can I have a ... beer?"
The bartender asks, "What's with the big pause?
 
As I'm not an English speaker, many times I can't find the answers... but I keep searching.
Besides, not everybody writes good subjects for their questions...
And maybe a faq as simple as "how you send... " and the answer "use de phpmailer class" would work.

Sorry for bothering Mr clFlaVA.

Thanks anyway

Sandra
 
Hi Sandra,

Have a look at this faq434-2681 .... maybe this will help you?!

Regards


Jakob
 
Thank you Mr. Jakob.
I forgot searching at FAQs, sorry.

Thank you all, the faq and the phpmailer class were really good stuff

Sandra
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top