I can't understand why you don't just use:
$address = "[EMAIL PROTECTED]";
$subject = "This is an HTML message";
$headers = "Content-Type: text/html\n";
$message = "<html><body>\n";
$message .= "<h1>This should use H1</h1>\n";
$message .= "<h2>This should use H2</h2>\n";
$message .= "<p>This should use P</p>\n";
$message .= "<a href=\"http://127.0.0.1/\">This should be a
link</a>\n";
$message .= "</body></html>\n";
mail ($addr, $subject, $message, $headers);
Did I miss something?
I've just run this as a function called from a do...while loop that reads
addresses from a MySQL database, and it did 500 emails in 72 seconds on a
crufty old P2. Not the most efficient bulk mailer, but adequate for a small
list.
Cheers
Jon
-----Original Message-----
From: Alex Black [mailto:[EMAIL PROTECTED]]
Sent: 23 January 2001 21:12
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Sending a mail in HTML format
that html mail class is fantastical :)
_alex
--
Alex Black, Head Monkey
[EMAIL PROTECTED]
The Turing Studio, Inc.
http://www.turingstudio.com
vox+510.666.0074
fax+510.666.0093
Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522
> From: [EMAIL PROTECTED] ("Jade Ohlhauser")
> Newsgroups: php.general
> Date: 23 Jan 2001 12:51:45 -0800
> Subject: Re: [PHP] Sending a mail in HTML format
>
> 1.that won't always display properly
> 2.that doesn't allow for inline images
>
> To do it properly use MIME. Richard Heyes has already done all the hard
work
> for you:
> http://www.zend.com/codex.php?id=103&single=1
>
> ............. Jade Ohlhauser
> [website architect]........... http://bandwidthplace.com
>
>
> ----- Original Message -----
> From: "Kristi Russell" <[EMAIL PROTECTED]>
> To: "Pascal Clerin" <[EMAIL PROTECTED]>
> Cc: "php" <[EMAIL PROTECTED]>
> Sent: Saturday, January 20, 2001 11:31 PM
> Subject: Re: [PHP] Sending a mail in HTML format
>
>
>> Nothing special, just add <html> at the beginning of what you're trying
to
>> send as HTML. Always worked for me?
>>
>> Kristi
>>
>> ----- Original Message -----
>> From: "Pascal Clerin" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Saturday, January 20, 2001 8:46 PM
>> Subject: [PHP] Sending a mail in HTML format
>>
>>
>>> Hello,
>>>
>>> I want to send a mail in HTML format with the mail() function.
>>> I have tried to send html stuff in the message parameter, but when I
> read
>> it
>>> in my hotmail account, I just see the html code and not what the html is
>>> supposed to show.
>>> I suppose that it is necessary to send some additional headers to
> specify
>> that
>>> the mail is in html format.
>>> Thanks for your help.
>>>
>>> Pascal
>>>
>>> ____________________________________________________________________
>>> Get free email and a permanent address at http://www.netaddress.com/?N=1
>>>
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>>>
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]