For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > May 2004 > Re: php question









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: php question
..\\Dutch./..

2004-05-14, 11:30 am

Hi.

Indeed i am new and was not aware that this was 'not to do' so please
forgive this newbie.

Thanks for your answer Erwin


"Erwin Moller"
< since_humans_read_this_I_am_spammed_too_
much@spamyourself.com> schreef in
bericht news:40a4d30b$0$61616$e4fe514c@news.xs4all.nl...
> ..\Dutch./.. wrote:
>
to[color=darkred]
wanted.[color=darkred]
>
> Hi,
>
> 2 things:
>
> <Dutch>
> Eerst geef ik je even op je flikker omdat je iets heel erg fout doet.
> Verderop geef ik je antwoord.
> OK?
> </Dutch>
>
> 1) DO NOT POST TO MANY NEWSGROUPS!
> That is considered rude (=onbeschoft)
> For example: You are sending your question to:
> alt.php.sql do you think your question has anything to do with sql??
>
> and php.install
> Does your question have anything to do with installing PHP?
> No.
> So don't send there.
> In general: always send to 1 newsgroup unless you have some very good

reason
> not to.
>
> Please understand MANY people don't answer your question if you post to

many
> newsgroups at the same time because they consider you an @^%^!!X!!
> I guess you are new, so please check a FAQ on nettiquette.
> (google for it)
>
> 2) Why does your HTML not show up?
> Read this:
> http://nl3.php.net/manual/en/function.mail.php
>
> It is all there.
> And remember that your emailclient must be able to receive HTML-formatted
> messages. Not all clients have that! So you might reconsider sending the
> email in HTML.
>
> Good luck/succes,
> Erwin Moller



Joost

2004-05-14, 11:30 am

...\Dutch./.. wrote:

> Hi all
>
> I created a webshop and thats working great
> But i have a small problem which i cant get solved.
>
> When a customer checks out he sees a confirmation page
> which he can print. That same page sends also a autoresponder that shows the
> customer what he just buyed.
>
> The auto responder is plain text and looks like shit so i had the idea to
> make that part html formatted.
>
> I added all codes for that into the script but when i receive
> the email i just see also the code and not the nice tables that i wanted.
>
> Anyone here who can tell me what is the correct way to create this?
>
> Thanks and sorry for my bad english.
>
>


Suppose you're coding php?

In addition to the comments made by Erwin, please be more specific and
SHOW CODE. That will sharply increase the chance someone is gonna help.

Change

$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\r\n";

to

$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

<dutch class=gr>moi,</dutch>
Joost


Justin Koivisto

2004-05-14, 1:30 pm

...\Dutch./.. wrote:

> The auto responder is plain text and looks like shit so i had the idea to
> make that part html formatted.


Don't. Use plain text. If you want to create pretty tables, look into
the printf and sprintf functions.

--
Justin Koivisto - spam@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com