You are here: Re: PHP create HTML email inserts '!'s « PHP Programming Language « IT news, forums, messages
Re: PHP create HTML email inserts '!'s

Posted by Manuel Lemos on 03/07/07 20:27

Hello,

on 03/07/2007 01:20 PM geek7 said the following:
>>> I have been struggling with this for a while now.. I did change the
>>> errors like Toby said, and it did fix another problem I had, but I
>>> still cannot figure out how to properly use the mimemessage class.
>>> Does anyone have an example of this class encoding with quoted
>>> printable? I'm sure the answer is in the documentation staring me in
>>> the face, but I'm fairly new toPHPand can't get it. Thanks ahead of
>>> time!
>> Take a look at the test_simple_html_mail_message.phpscript that uses
>> the MIME message class to compose and send quoted-printableHTML
>> messages that avoid the ! problem.
>>
>> http://www.phpclasses.org/mimemessage

>
> This helps a ton! I got the email to format correctly, but I have just
> one more issue if you could help I would greatly appreciate it. I am
> trying to add multiple addresses to the email I wrote. Looking in the
> documentation, it says I can use:
>
> $message_object->SetMultipleEncodedEmailHeader('Bcc', array(
> 'peter@gabriel.org' => 'Peter Gabriel',
> 'paul@simon.net' => 'Paul Simon',
> 'mary@chain.com' => 'Mary Chain'
> );
>
> but When I do this, no one gets the email..same if I change 'Bcc' to
> 'To'. Do I need to change all my SetEncodedEmailHeader functions to
> SetMultipleEncodedEmailHeader? Or is there an easy way to do multiple
> addresses...(other than putting one in the to, cc, and bcc...) thanks!

Not getting messages when you set all to Bcc is normal. Many mail
filters do not like that. As for To: it should work . If it doesn't,
there may be some other problem.

You can also try set the To header with the SetHeader function, only
with e-mail addresses separated with commas , .

--

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация