Ask a Question related to PHP Development, Design and Development.
-
Jim Lucas #1
Re: [PHP] HTML email with Outlook
I would take a look at the headers of an email that does render html
correctly in outlook and see what you are missing.
Trial and error.
Jim Lucas
----- Original Message -----
From: "Tim Thorburn" <immortal@nwconx.net>
To: <php-general@lists.php.net>
Sent: Tuesday, July 15, 2003 3:48 PM
Subject: [PHP] HTML email with Outlook
servers> Hi,
>
> I've made a PHP script that sends out an automatic email through myactual> cron system, it works well, but I thought I'd try to do some HTML email to
> get things to line up a little better.
>
> To do so, I added the following line in my mail() command: -Type:
> text/html; charset=iso-8859-1
>
> When I check the messages sent out with Eudora, the HTML email comes in
> perfectly. However, when I check with Outlook Express 6 - I get the> HTML code rather than the nicely formatted email that I had created.
>
> Should I be using another line in my mail() command? I've recieved HTML
> email before with Outlook Express on my machine without changing any
> settings at all. Also, I had sent an email from my script to hotmail and
> the HTML email worked fine there too.
>
> Any thoughts?
>
> Thanks
> -Tim
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>Jim Lucas Guest
-
Can coldfusion access Outlook email contacts?
Hey can someone tell me how or if coldfusion can access outlook email contacts, i think it can be done using the COM objects but I am not sure, any... -
Converting Outlook Email to PDFs
How do I covert Outlook email into searchable PDFs? I would like to use this conversion function on both individual emails and my email folders. I... -
how to open an email from outlook without opening a browser???
Hi all, I have been using GotoNetPage for launching an email message from outlook but this opens a browser as well with a no load page.... how... -
Outlook sends my email
Hey I have created a form that allows the user to submit the form via email. But when I hit the submit, it wants to use my outlook to send the... -
Formatting an email to arrive as an appointment in Outlook
I need/want to be able to send an email from a website running IIS and CDONTS for mail (or ASPMAIL) that comes into the inbox as an appointment to... -
Johnny Martinez #2
RE: [PHP] HTML email with Outlook
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
Does this help?
Johnny
-----Original Message-----
From: Tim Thorburn [mailto:immortal@nwconx.net]
Sent: Tuesday, July 15, 2003 3:48 PM
To: [email]php-general@lists.php.net[/email]
Subject: [PHP] HTML email with Outlook
Hi,
I've made a PHP script that sends out an automatic email through my servers
cron system, it works well, but I thought I'd try to do some HTML email to
get things to line up a little better.
To do so, I added the following line in my mail() command: -Type:
text/html; charset=iso-8859-1
When I check the messages sent out with Eudora, the HTML email comes in
perfectly. However, when I check with Outlook Express 6 - I get the actual
HTML code rather than the nicely formatted email that I had created.
Should I be using another line in my mail() command? I've recieved HTML
email before with Outlook Express on my machine without changing any
settings at all. Also, I had sent an email from my script to hotmail and
the HTML email worked fine there too.
Any thoughts?
Thanks
-Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Johnny Martinez Guest
-
Curt Zirzow #3
Re: [PHP] HTML email with Outlook
Tim Thorburn <immortal@nwconx.net> wrote:
there are different ways to send html in an email and also very wrong> Hi,
>
> I've made a PHP script that sends out an automatic email through my servers
> cron system, it works well, but I thought I'd try to do some HTML email to
> get things to line up a little better.
>
> To do so, I added the following line in my mail() command: -Type:
> text/html; charset=iso-8859-1
> When I check the messages sent out with Eudora, the HTML email comes in
> perfectly. However, when I check with Outlook Express 6 - I get the actual
> HTML code rather than the nicely formatted email that I had created.
>
> Should I be using another line in my mail() command? I've recieved HTML
> email before with Outlook Express on my machine without changing any
> settings at all. Also, I had sent an email from my script to hotmail and
> the HTML email worked fine there too.
ways to send html in an email; very debatable topic from what I've seen.
I think your best bet is to use something like:
[url]http://phpmailer.sourceforge.net/[/url]
You can send both plain/text and html. Remember not all email clients
support email. And a lot of people dont like it at all.
Of course if this is only for you to see I guess you can ignore all that
i said :)
Curt
--
Curt Zirzow Guest
-
Johnny Martinez #4
RE: [PHP] HTML email with Outlook
"Remember not all email clients support email."
Did I read that right or is it a typo?
J
-----Original Message-----
From: Curt Zirzow [mailto:curt@zirzow.dyndns.org]
Sent: Tuesday, July 15, 2003 4:17 PM
To: [email]php-general@lists.php.net[/email]
Subject: Re: [PHP] HTML email with Outlook
Tim Thorburn <immortal@nwconx.net> wrote:servers> Hi,
>
> I've made a PHP script that sends out an automatic email through my> cron system, it works well, but I thought I'd try to do some HTML email toactual> get things to line up a little better.
>
> To do so, I added the following line in my mail() command: -Type:
> text/html; charset=iso-8859-1
> When I check the messages sent out with Eudora, the HTML email comes in
> perfectly. However, when I check with Outlook Express 6 - I get thethere are different ways to send html in an email and also very wrong> HTML code rather than the nicely formatted email that I had created.
>
> Should I be using another line in my mail() command? I've recieved HTML
> email before with Outlook Express on my machine without changing any
> settings at all. Also, I had sent an email from my script to hotmail and
> the HTML email worked fine there too.
ways to send html in an email; very debatable topic from what I've seen.
I think your best bet is to use something like:
http://phpmailer.sourceforge.net/
You can send both plain/text and html. Remember not all email clients
support email. And a lot of people dont like it at all.
Of course if this is only for you to see I guess you can ignore all that
i said :)
Curt
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Johnny Martinez Guest
-
Mike Brum #5
RE: [PHP] HTML email with Outlook
By the context, I'm sure it should read "...not all email clients
support HTML."
(I got a laugh out of it though ;)
-----Original Message-----
From: Johnny Martinez [mailto:jmartinez@citrusglobal.com]
Sent: Tuesday, July 15, 2003 7:21 PM
To: 'Curt Zirzow'; [email]php-general@lists.php.net[/email]
Subject: RE: [PHP] HTML email with Outlook
"Remember not all email clients support email."
Did I read that right or is it a typo?
J
-----Original Message-----
From: Curt Zirzow [mailto:curt@zirzow.dyndns.org]
Sent: Tuesday, July 15, 2003 4:17 PM
To: php-general@lists.php.net
Subject: Re: [PHP] HTML email with Outlook
Tim Thorburn <immortal@nwconx.net> wrote:servers> Hi,
>
> I've made a PHP script that sends out an automatic email through my> cron system, it works well, but I thought I'd try to do some HTML
> email toin> get things to line up a little better.
>
> To do so, I added the following line in my mail() command: -Type:
> text/html; charset=iso-8859-1
> When I check the messages sent out with Eudora, the HTML email comesactual> perfectly. However, when I check with Outlook Express 6 - I get theand> HTML code rather than the nicely formatted email that I had created.
>
> Should I be using another line in my mail() command? I've recieved
> HTML
> email before with Outlook Express on my machine without changing any
> settings at all. Also, I had sent an email from my script to hotmailthere are different ways to send html in an email and also very wrong> the HTML email worked fine there too.
ways to send html in an email; very debatable topic from what I've seen.
I think your best bet is to use something like:
http://phpmailer.sourceforge.net/
You can send both plain/text and html. Remember not all email clients
support email. And a lot of people dont like it at all.
Of course if this is only for you to see I guess you can ignore all that
i said :)
Curt
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Mike Brum Guest
-
Manuel Lemos #6
Re: [PHP] HTML email with Outlook
Hello,
On 07/15/2003 07:48 PM, Tim Thorburn wrote:That looks like one of the bugs of the mail() function that never got> I've made a PHP script that sends out an automatic email through my
> servers cron system, it works well, but I thought I'd try to do some
> HTML email to get things to line up a little better.
>
> To do so, I added the following line in my mail() command: -Type:
> text/html; charset=iso-8859-1
>
> When I check the messages sent out with Eudora, the HTML email comes in
> perfectly. However, when I check with Outlook Express 6 - I get the
> actual HTML code rather than the nicely formatted email that I had created.
>
> Should I be using another line in my mail() command? I've recieved HTML
> email before with Outlook Express on my machine without changing any
> settings at all. Also, I had sent an email from my script to hotmail
> and the HTML email worked fine there too.
fixed. In that case you may want to try this class that has built-in
workarounds for some of the mail() function bugs.
[url]http://www.phpclasses.org/mimemessage[/url]
--
Regards,
Manuel Lemos
Free ready to use OOP components written in PHP
[url]http://www.phpclasses.org/[/url]
Manuel Lemos Guest
-
Tim Thorburn #7
Re: [PHP] HTML email with Outlook
Thanks to all those who responded, as always, spelling is key. Where I had
-Type: text/html ... it should have read Content-Type : text/html ...
So it works for now, and hopefully will continue to. I know that there are
a number of email programs out there that do not support HTML mail, as well
I know there are a great many of individuals who do not enjoy it
either. We're just running a trial base here to see what works, if it
turns out that the majority of our customers do not enjoy it, then we'll
switch to plain text (actually built the plain-text one first, this is just
an add-on)
Tim Thorburn Guest



Reply With Quote

