i have a perl script i wrote that does this exact
function...you would also need a mysql database to
store the email addresses in.
for example, when a user subscribes, they check which
list(s) they want to receive, and specify 'text' or
'html' versions - this is then stored in the db (you
should leave the format up to the user, as they are
more apt to be aware of which format they can handle.
you can send multipart-alternative emails, where if
they want 'html' it sends both an html version, and a
text version, then depending on what their email
client is set to receive it will show either the html
or plain text version (for those who want plain text
only, it simply sends the plain text version).
here's an example of an html/plain text
mutlipart-alternative email ($time is a unique
boundary for the mime compliant email, based on the
system time - this can be anything, a random string):
#begin html msg
$msg = qq(Content-type:
multipart/alternative; boundary="$time"
Mime-version: 1.0
--$time
Content-type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7-bit
$msg_text
--$time
Content-type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: 7-bit
$msg_html
--$time--
);
#end html msg
here's a link to more info on Mime:
http://www.faqs.org/rfcs/rfc1521.html
--Anthony
--- byron wise <[EMAIL PROTECTED]> wrote:
> I have the need to send out HTML email. However, I
> know that many people
> arn't able to read it properly by choice or
> otherwise. Is there a way I
> can determine what type of email to send if I only
> have an email address?
> Also, this idea of sending out HTML email is new to
> me along with Mime
> types. Is there a resource out there that will
> explain a bit how this
> works?
>
> Any help or advice would greatly be appreaciated.
>
> many thanks,
> byron wise
>
>
>
> "When you sell a man a book, you don't sell him 12
> ounces of paper and ink
> and glue - you sell him a whole new life." -
> Christopher Morley
>
> "Thanks O'REILLY." - Me
>
>
>
>
>
>
_______________________________________________________
> Send a cool gift with your E-Card
> http://www.bluemountain.com/giftcenter/
>
>
> _______________________________________________
> Perl-Unix-Users mailing list. To unsubscribe go to
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users
=====
--
Anthony E.
AP Web Design
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users