Re: HTML emails with attachments
- From: Manuel Lemos <mlemos@xxxxxxx>
- Date: Tue, 27 May 2008 23:16:16 -0300
Hello,
on 05/27/2008 10:12 PM Brian said the following:
Last week I spent hours trying to get a form script to work as it wouldn't
format correctly, I thought I had working OK. It's a standard form that gets
submitted, this data gets turned into HTML content and a file attachment, it's
works fine for me using Outlook 2003, but the person this script is for that
also uses outlook 2003 is getting it as an unformatted email see below,
below this I have put my code, have ai missed something?
Maybe the mail server that is receiving the message is converting it to
text for security reasons.
The matter is that regular mail programs do not send HTML messages like
you did. Usually there is a plain text message part also included in the
message as alternative to the HTML part for mail programs that do not
support HTML mail. The absence of the alternative text part may be
understood as possible spam.
Therefore I recommend to compose HTML messages properly with alternative
text parts.
If you are not sure how to do that, you may want to take a look at the
MIME message composing and sending class. Take a look at the
test_html_mail_message.php example script.
http://www.phpclasses.org/mimemessage
--
Regards,
Manuel Lemos
PHP professionals looking for PHP jobs
http://www.phpclasses.org/professionals/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
.
- References:
- HTML emails with attachments
- From: Brian
- HTML emails with attachments
- Prev by Date: HTML emails with attachments
- Next by Date: Free PHP Scripts
- Previous by thread: HTML emails with attachments
- Next by thread: Free PHP Scripts
- Index(es):
Relevant Pages
|