Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: Sending HTML type mail


Message #1 by "petrol" <pbarta@k...> on Mon, 12 Mar 2001 10:24:55
I'm not sure how you would do it, but I think you need to set the content
type = text/html

----- Original Message -----
From: "petrol" <pbarta@k...>
To: "professional php" <pro_php@p...>
Sent: Monday, March 12, 2001 10:24 AM
Subject: [pro_php] Sending HTML type mail


> Hi all,
>
> I wrote a small programm which sends a HTML file as the body of an e-mail.
> The addresses come from a mysql table. My problem is that most of the e-
> mail clients show only the mail source.
> Is it possible to set somehow the type of the mail for displaying it in
> HTML format?
>
> The source is:
> while (list($id,$emil) = mysql_fetch_row($query))
>  {
>   mail( $emil,$subject,$body,"from:$from");
>  }
> $body is the HTML file.
>
> I know that, there must be some more parameters also for setting the type!
>
>
> Thanks: Peter Barta

  Return to Index