|
Posted by Nicholas on 09/29/97 11:29
>>>How do i send a HTML email using PHP.
>>
>> Don't. All html email is spam.
>
> so what do you suggest instead, I need to be able to format the document
> on the server and then send.
Don't listen to the trolls.
http://us3.php.net/manual/en/function.mail.php
Look at #4. You need to create a body with HTML tags, of course (please be
WC3 compliant) and then don't forget to send a header when you specify that
your content-type is indeed html:
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
If you are to send HTML emails about your products & services, or a
newsletter, have an opt-in / opt-out strategy and also follow the rules in
the CAN-SPAM Act of 2003:
http://www.ftc.gov/bcp/conline/pubs/buspubs/canspam.htm
I include the following in all my newsletters:
------------
This email is compliant with the CAN-SPAM Act of 2003 (linked to the text of
the Act)
It is an advertisement for (description of services/product).
If you wish not to receive this newsletter in the future, please click here
(linked to a Web-based removal tool with embedded unique ID).
------------
I also include the full address of my business in the footer.
Since I do that, I do not receive any more insult, threat or angry "stop
sending me your junk!" email. People calmly read the text of the law, see I
am in compliance and follow the 1-2-3 link to opt-out.
Make sure your newsletter or email is also worth receiving. Don't send junk.
Navigation:
[Reply to this message]
|