Re: HTML in E-mail

2002-06-04 Thread John Brooking

--- David T-G [EMAIL PROTECTED]
wrote:
 Scot, et al --
 
 ...and then Scot Robnett said...
 % 
 % I don't personally share the 'HTML e-mail is evil'
 philosophy. And even if
 
 ... snip ...
 
 (if, in fact, he hasn't solved this already;
 Camilo's email
 intimated that he had, which means we're pursuing
 the ultimate beating of
 a dead horse here :-)

  If I may be allowed to beat the poor dead horse a
little more, and at the risk of reviving this thread,
but playing devil's advocate because, after all, this
*is* a beginners' list:

  Why is HTML mail evil? (If you believe it is.)

  Because it can be so easily hacked? That's a big
reason, but are there others I don't know about?

  I can imagine average Joe User saying But of
*course* I want to be able to format my email with 10
different font faces, sizes, and colors. Plain text is
for geeks.

  Is maybe Rich Text Format the real answer?

- John


=
Now it's over, I'm dead, and I haven't done anything that I want; or, I'm still 
alive, and there's nothing I want to do. - They Might Be Giants, http://www.tmbg.com

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: HTML in E-mail

2002-06-04 Thread David T-G

John, et al --

...and then John Brooking said...
% 
% --- David T-G [EMAIL PROTECTED]
%  
%  ...and then Scot Robnett said...
%  % 
%  % I don't personally share the 'HTML e-mail is evil'
...
%  intimated that he had, which means we're pursuing
%  the ultimate beating of
%  a dead horse here :-)
% 
%   If I may be allowed to beat the poor dead horse a

*grin*


% little more, and at the risk of reviving this thread,

Uh oh; that certainly could happen.


% but playing devil's advocate because, after all, this
% *is* a beginners' list:
% 
%   Why is HTML mail evil? (If you believe it is.)
% 
%   Because it can be so easily hacked? That's a big
% reason, but are there others I don't know about?

First, I should say that in a different world, it probably wouldn't be so
bad.  If everyone had robust and secure MUAs (gee, mutt comes to mind,
though you can still manage to screw up even with it sometimes) then we
wouldn't have to worry about embedded javascript or VBS or whatnot
tearing open security holes because, regardless of whether or not such
holes existed, the MUA would keep the garbage in its own sandbox instead
of letting it run all over the system or send packages back to its
master.

So then we come to why someone does HTML mail in the first place...  It's
probably for just the font stuff you mention, but then people add
stationery images and buttons and email envelope icons and whatnot and
suddenly you have a very, very, very large message that says Come to my
house on Thursday.  It's an incredible waste of space and resources.
And before you say oh, heck, bandwidth is cheap, remember that not
everyone in the US has broadband access and much of the world outside the
US not only doesn't have fast access but also has to pay by the minute
for even local phone calls.  Imagine how happy you'd be to download
someone else's idea of stationery for an extra two and a half minutes
while dialing long distance (and, no, not the cheap LD we have here in
the States, either, but like it was in 1978 at $.25/min).

Finally, then, we come back around to another security hole: profiling
and tracking.  Even if it isn't displayed, an HTML message can embed an
img tag that goes off to a tracking site and and pips the IP address, at
the very least, of who just read the message.  What a great way to see
how far and wide your spam (or virus) is traveling and fine-tune your
marketing.

That's by no means an exhaustive overview, but I think it covers the
basics.  I would *love* to discuss this more and hear from others on the
topic, but I fear that we would quickly go far, far, off-topic and wear
thin the patience of many (most?) on the list.


% 
%   I can imagine average Joe User saying But of
% *course* I want to be able to format my email with 10
% different font faces, sizes, and colors. Plain text is
% for geeks.

Heh.  Little does the average Joe know, too :-)  Plain text rules!

Your pseudo-quote reminds me of the Mac Font Wheel spoof of years back :-)


% 
%   Is maybe Rich Text Format the real answer?

It's certainly a better answer than HTML with its embedded images and
javascript and the like.


% 
% - John


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg05129/pgp0.pgp
Description: PGP signature


RE: HTML in E-mail

2002-06-04 Thread Nikola Janceski

To new perlmongers:

I hope that whoever started this thread isn't the one who is send out the
ugliest spam (HTML attached as a txt file) to mine and others accounts. I
don't get much spam, but the only reason I do is because people on lists,
such as this one, take the e-mails and spam them. I fore warn all spammers
that taking e-mails from this and other lists and sending mail to them is
unsolicited and *I* will report you to your ISP, as I have already done in
the past. I also know that many others also do the same and report their
spam.

I know it's not perl related, but it is related to this list and others.

Nikola Janceski

If at first you don't succeed, try, try again. Then give up. no use being a
damned fool about it.
-- W.C. Fields 


 -Original Message-
 From: David T-G [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 04, 2002 9:56 AM
 To: perl beginners cgi
 Cc: John Brooking
 Subject: Re: HTML in E-mail
 
 
 John, et al --
 
 ...and then John Brooking said...
 % 
 % --- David T-G [EMAIL PROTECTED]
 %  
 %  ...and then Scot Robnett said...
 %  % 
 %  % I don't personally share the 'HTML e-mail is evil'
 ...
 %  intimated that he had, which means we're pursuing
 %  the ultimate beating of
 %  a dead horse here :-)
 % 
 %   If I may be allowed to beat the poor dead horse a
 
 *grin*
 
 
 % little more, and at the risk of reviving this thread,
 
 Uh oh; that certainly could happen.
 
 
 % but playing devil's advocate because, after all, this
 % *is* a beginners' list:
 % 
 %   Why is HTML mail evil? (If you believe it is.)
 % 
 %   Because it can be so easily hacked? That's a big
 % reason, but are there others I don't know about?
 
 First, I should say that in a different world, it probably 
 wouldn't be so
 bad.  If everyone had robust and secure MUAs (gee, mutt comes to mind,
 though you can still manage to screw up even with it 
 sometimes) then we
 wouldn't have to worry about embedded javascript or VBS or whatnot
 tearing open security holes because, regardless of whether or not such
 holes existed, the MUA would keep the garbage in its own 
 sandbox instead
 of letting it run all over the system or send packages back to its
 master.
 
 So then we come to why someone does HTML mail in the first 
 place...  It's
 probably for just the font stuff you mention, but then people add
 stationery images and buttons and email envelope icons and whatnot and
 suddenly you have a very, very, very large message that says 
 Come to my
 house on Thursday.  It's an incredible waste of space and resources.
 And before you say oh, heck, bandwidth is cheap, remember that not
 everyone in the US has broadband access and much of the world 
 outside the
 US not only doesn't have fast access but also has to pay by the minute
 for even local phone calls.  Imagine how happy you'd be to download
 someone else's idea of stationery for an extra two and a half minutes
 while dialing long distance (and, no, not the cheap LD we have here in
 the States, either, but like it was in 1978 at $.25/min).
 
 Finally, then, we come back around to another security hole: profiling
 and tracking.  Even if it isn't displayed, an HTML message 
 can embed an
 img tag that goes off to a tracking site and and pips the IP 
 address, at
 the very least, of who just read the message.  What a great way to see
 how far and wide your spam (or virus) is traveling and fine-tune your
 marketing.
 
 That's by no means an exhaustive overview, but I think it covers the
 basics.  I would *love* to discuss this more and hear from 
 others on the
 topic, but I fear that we would quickly go far, far, 
 off-topic and wear
 thin the patience of many (most?) on the list.
 
 
 % 
 %   I can imagine average Joe User saying But of
 % *course* I want to be able to format my email with 10
 % different font faces, sizes, and colors. Plain text is
 % for geeks.
 
 Heh.  Little does the average Joe know, too :-)  Plain text rules!
 
 Your pseudo-quote reminds me of the Mac Font Wheel spoof of 
 years back :-)
 
 
 % 
 %   Is maybe Rich Text Format the real answer?
 
 It's certainly a better answer than HTML with its embedded images and
 javascript and the like.
 
 
 % 
 % - John
 
 
 HTH  HAND
 
 :-D
 -- 
 David T-G  * It's easier to fight for 
 one's principles
 (play) [EMAIL PROTECTED] * than to live up to them. -- 
 fortune cookie
 (work) [EMAIL PROTECTED]
 http://www.justpickone.org/davidtg/Shpx gur 
 Pbzzhavpngvbaf Qrprapl Npg!
 
 



The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: HTML in E-mail

2002-06-04 Thread Christopher G Tantalo

Nikola Janceski wrote:

 To new perlmongers:

 I hope that whoever started this thread isn't the one who is send out the
 ugliest spam (HTML attached as a txt file) to mine and others accounts. I
 don't get much spam, but the only reason I do is because people on lists,
 such as this one, take the e-mails and spam them. I fore warn all spammers
 that taking e-mails from this and other lists and sending mail to them is
 unsolicited and *I* will report you to your ISP, as I have already done in
 the past. I also know that many others also do the same and report their
 spam.

 I know it's not perl related, but it is related to this list and others.

 Nikola Janceski

just out of curiousity, how can you tell the difference of new spam with all the
regular stuff going around? I dont care how many times I get a new email
account, spam pops in after a week :)

--
---
Just Your Friendly Neighborhood
_SPIDEY_




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: HTML in E-mail

2002-06-04 Thread David T-G

Nikola --

...and then Nikola Janceski said...
% 
% To new perlmongers:
% 
% I hope that whoever started this thread isn't the one who is send out the
% ugliest spam (HTML attached as a txt file) to mine and others accounts. I

I just have to ask, because I'm a bit lost...  Do you mean when you get
spam in general, or did this thread include some spam to which you refer?


% don't get much spam, but the only reason I do is because people on lists,
% such as this one, take the e-mails and spam them. I fore warn all spammers

If you're talking about getting spam in general, I hate to have to be the
one to tell you that you're not quite right.  This, just like many, many
other lists, is archived.  A quick trip to google to put in the search
query 

  [EMAIL PROTECTED] archive [EMAIL PROTECTED] 

turned up

  http:[EMAIL PROTECTED]/msg24627.html

as the first of 316 results.  Clearly you're out there already, and it
doesn't take anything as bothersome as subscribing to a list to grab your
address.

If you aren't using SpamAssassin already (hey, we're back on topic, since
it's written in perl!), you should check it out.  You might also look
into TMDA (even if it is written in Python ;-) to generate controllable
return mail addresses if you can get away from LookOut! for your mail.


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg05133/pgp0.pgp
Description: PGP signature


RE: HTML in E-mail

2002-06-04 Thread Nikola Janceski

Even thought my e-mail is out on the web. It is not posted as an account to
freely send advertising e-mails to. Spam is unsolicited e-mail so if I
didn't sign up on website that EXPLICITLY states by disclosing your e-mail
you agree to the Terms of our conditions, which the Terms would state some
garble of being sent regular e-mails from them or other companies, etc. etc.
I don't recall seeing that in the e-mail for this and other perl lists.
(most of this only applies for the U.S.)

But I don't use this account for that. I use this account for work and
perllists, and my other accounts for signups. Too bad I can't use
SpamAssassin since I am not admin and I am forced to use M$ LOOKout. I
cannot filter my e-mails other than using the crappy rules wizard in Outlook
(212 rules and counting). (no they don't allow POP3 access or any other
way... try as I might the sysadmins say too bad sucka)

Poor me stuck with SH1Tty mail programs at work.


 -Original Message-
 From: David T-G [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 04, 2002 10:15 AM
 To: perl beginners cgi
 Cc: Nikola Janceski
 Subject: Re: HTML in E-mail
 
 
 Nikola --
 
 ...and then Nikola Janceski said...
 % 
 % To new perlmongers:
 % 
 % I hope that whoever started this thread isn't the one who 
 is send out the
 % ugliest spam (HTML attached as a txt file) to mine and 
 others accounts. I
 
 I just have to ask, because I'm a bit lost...  Do you mean 
 when you get
 spam in general, or did this thread include some spam to 
 which you refer?
 
 
 % don't get much spam, but the only reason I do is because 
 people on lists,
 % such as this one, take the e-mails and spam them. I fore 
 warn all spammers
 
 If you're talking about getting spam in general, I hate to 
 have to be the
 one to tell you that you're not quite right.  This, just like 
 many, many
 other lists, is archived.  A quick trip to google to put in the search
 query 
 
   [EMAIL PROTECTED] archive [EMAIL PROTECTED] 
 
 turned up
 
   http:[EMAIL PROTECTED]/msg24627.html
 
 as the first of 316 results.  Clearly you're out there already, and it
 doesn't take anything as bothersome as subscribing to a list 
 to grab your
 address.
 
 If you aren't using SpamAssassin already (hey, we're back on 
 topic, since
 it's written in perl!), you should check it out.  You might also look
 into TMDA (even if it is written in Python ;-) to generate 
 controllable
 return mail addresses if you can get away from LookOut! for your mail.
 
 
 HTH  HAND
 
 :-D
 -- 
 David T-G  * It's easier to fight for 
 one's principles
 (play) [EMAIL PROTECTED] * than to live up to them. -- 
 fortune cookie
 (work) [EMAIL PROTECTED]
 http://www.justpickone.org/davidtg/Shpx gur 
 Pbzzhavpngvbaf Qrprapl Npg!
 
 



The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: HTML in E-mail

2002-06-04 Thread David T-G

Nikola, et al --

...and then Nikola Janceski said...
% 
% Even thought my e-mail is out on the web. It is not posted as an account to
% freely send advertising e-mails to. Spam is unsolicited e-mail so if I

True, and unfair, but not the fault of the list.  I thought I understood
you to say that nasty spammers sign up on lists to gather addresses, when
that certainly isn't necessary.


% didn't sign up on website that EXPLICITLY states by disclosing your e-mail
% you agree to the Terms of our conditions, which the Terms would state some
% garble of being sent regular e-mails from them or other companies, etc. etc.
% I don't recall seeing that in the e-mail for this and other perl lists.
% (most of this only applies for the U.S.)

And, in fact, I'm willing to bet a Twinkie that the perl lists haven't
shared your email info.  The various archive sites might have, though,
by putting the posts up for all to search.  Such is the price, you might
say, of having such a resource available.  [Admittedly, it would be
nice if *all* archives out there, as well as the various list servers
that offer back copies, did some sort of address mutilation to defeat
spammers, but the problem is that it will always have to be not only
formulaic but in fact translatable by a person, and so there will always
be a programmatic way to unwrap the mess and get a valid address out,
so it's hardly worth the effort -- and, undoubtedly, why they don't.]


% 
% But I don't use this account for that. I use this account for work and
% perllists, and my other accounts for signups. Too bad I can't use

Fair enough.  You might try talking them into giving you a special
address to use for lists; have your rules wizard bounce posts from the
lists to you over to your real account and just let the aging function
autotrash whatever else lands in there.  Hmmm...  Perhaps you should make
your current account the published box and have a new, clean mailbox set
up to catch the good stuff :-)

The amazing thing is that your IT department happily accepts all of this
spam, thus accepting the load on their servers and the drain on your
time.  It would serve *them* well to implement SA at a system-wide level,
and you'd get benefits as a side effect!


% SpamAssassin since I am not admin and I am forced to use M$ LOOKout. I
% cannot filter my e-mails other than using the crappy rules wizard in Outlook
% (212 rules and counting). (no they don't allow POP3 access or any other
% way... try as I might the sysadmins say too bad sucka)

No IMAP, either?  I haven't seen anyone turn that off yet, though I'm
sure it can be done.

Hey, if your company wants to pay you to sit and sort through spam, have
fun with it; visit all the porn sites and then blame it on Outhouse.
Meanwhile, save all of the spam you get to a PST stored on the server
(or, better yet, in a folder under your INBOX if they don't have
autoaging enforced across the system).


% 
% Poor me stuck with SH1Tty mail programs at work.

Start a revolution! :-)


I should probably be quiet now; we've definitely strayed, unless you
plan to bring up writing a perl MAPI module to talk to your mail and
get rid of the spam...

HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg05136/pgp0.pgp
Description: PGP signature


Re: HTML in E-mail

2002-06-04 Thread fliptop

Nikola Janceski wrote:

 Poor me stuck with SH1Tty mail programs at work.


kevin - will you do us all a favor and close this thread?  it was never 
on topic, and has now degraded to a soapbox where a few subscribers are 
simply airing their opinions.

all subscribers - please remember to keep your posts on topic (this is a 
beginners-cgi perl list), and if you want to trade opinions on which is 
the best/worst email client, best/worst format for email, best/worst 
whore in cleveland, or whatever, please email each other privately and 
leave the list out of it!


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: HTML in E-mail

2002-06-04 Thread Christopher G Tantalo

fliptop wrote:

 best/worst whore in cleveland, or whatever,

i dont know what kinda perl code you were working on there ;)
... but i found some of the conversation somewhat helpful.. like the
SpamAssassin reference. i never heard of that.. now i can look into it..

--
---
Just Your Friendly Neighborhood
_SPIDEY_




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: HTML in E-mail

2002-06-04 Thread Fred Sahakian

This solved it, thank you very much.  

I didnt know this was such a religious topic.


 Camilo Gonzalez [EMAIL PROTECTED] 06/03/02 03:37PM 
Fred,

Thank Jah this problem was recently successfully solved! Try this:

open(MAIL,|$mailprog -t);
print MAIL Content-Type: text/html\n;
print MAIL To: $comm\@courts.state.ny.us\n;
print MAIL From: fsahakia\
@courts.state.ny.us\n;
print MAIL Subject: Forwarded \n\n;
print MAIL This person has requested \n;

etc...

-Original Message-
From: Fred Sahakian [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 03, 2002 2:19 PM
To: 
Subject: HTML in E-mail


What am doing wrong?  Im try to send an e-mail that will appear as formatted
HTML, Im missing something but dont know what.  In my example below I have a
hyperlink which I would like to appear as HTML and a font color, but they
appear in the e-mail as raw HTML, what am I leaving out?  A Mime?:

open(MAIL,|$mailprog -t);
print MAIL To: $comm\@courts.state.ny.us\n;
print MAIL From: fsahakia\
@courts.state.ny.us\n;
print MAIL Subject: Forwarded \n;
print MAIL This person has requested \n;

print MAIL font color=redtest text/fonta
href=http://www.SOMETHING.COM;LINK/A\n;


print MAIL County: $contents{'county'}
Name: $contents{'first'} $contents{'last'}
Address: $contents{'street'} $contents{'city'} 
$contents{'zip'}
Date of Birth: $contents{'month'} 
$contents{'day'} $contents{'year'}
Home Telephone: $contents{'htel'}
close MAIL;



Re: HTML in E-mail

2002-06-04 Thread fliptop

Christopher G Tantalo wrote:

 fliptop wrote:
 
best/worst whore in cleveland, or whatever,

 i dont know what kinda perl code you were working on there ;)
 .. but i found some of the conversation somewhat helpful.. like the
 SpamAssassin reference. i never heard of that.. now i can look into it..


it was an example of how off-topic this thread is.  if you don't read 
perl.com regularly, you should start immediately:

http://www.perl.com/pub/a/2002/03/06/spam.html

(posted on march 6, 2002).


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




[ADMIN - THREAD CLOSED] Re: HTML in E-mail

2002-06-04 Thread Kevin Meltzer

I was just catching up on this thread, and see that it has spiraled out
of the realm of 'on topic' for this list. Please consider this thread
closed, and take it off-list if needed. Thanks for your cooperation.

Cheers,
Kevin

-- 
[Writing CGI Applications with Perl - http://perlcgi-book.com]
If you were going to shoot a mime, would you use a silencer?
-- Steven Wright

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: HTML in E-mail

2002-06-04 Thread David T-G

Fred --

...and then Fred Sahakian said...
% 
% This solved it, thank you very much.  

Good deal.  For the purposes of the list, that's the important part.  Did
you use the headers as written or construct or proper MIME structure in
your message?


% 
% I didnt know this was such a religious topic.

BWA HA HA HAHAHA! :-)


HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg05144/pgp0.pgp
Description: PGP signature


HTML in E-mail

2002-06-03 Thread Fred Sahakian

What am doing wrong?  Im try to send an e-mail that will appear as formatted HTML, Im 
missing something but dont know what.  In my example below I have a hyperlink which I 
would like to appear as HTML and a font color, but they appear in the e-mail as raw 
HTML, what am I leaving out?  A Mime?:

open(MAIL,|$mailprog -t);
print MAIL To: $comm\@courts.state.ny.us\n;
print MAIL From: fsahakia\
courts.state.ny.us\n;
print MAIL Subject: Forwarded \n;
print MAIL This person has requested \n;

print MAIL font color=redtest text/fonta 
href=http://www.SOMETHING.COM;LINK/A\n;


print MAIL County: $contents{'county'}
Name: $contents{'first'} $contents{'last'}
Address: $contents{'street'} $contents{'city'} 
$contents{'zip'}
Date of Birth: $contents{'month'} 
$contents{'day'} $contents{'year'}
Home Telephone: $contents{'htel'}
close MAIL;



RE: HTML in E-mail

2002-06-03 Thread Camilo Gonzalez

Fred,

Thank Jah this problem was recently successfully solved! Try this:

open(MAIL,|$mailprog -t);
print MAIL Content-Type: text/html\n;
print MAIL To: $comm\@courts.state.ny.us\n;
print MAIL From: fsahakia\
@courts.state.ny.us\n;
print MAIL Subject: Forwarded \n\n;
print MAIL This person has requested \n;

etc...

-Original Message-
From: Fred Sahakian [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 03, 2002 2:19 PM
To: 
Subject: HTML in E-mail


What am doing wrong?  Im try to send an e-mail that will appear as formatted
HTML, Im missing something but dont know what.  In my example below I have a
hyperlink which I would like to appear as HTML and a font color, but they
appear in the e-mail as raw HTML, what am I leaving out?  A Mime?:

open(MAIL,|$mailprog -t);
print MAIL To: $comm\@courts.state.ny.us\n;
print MAIL From: fsahakia\
@courts.state.ny.us\n;
print MAIL Subject: Forwarded \n;
print MAIL This person has requested \n;

print MAIL font color=redtest text/fonta
href=http://www.SOMETHING.COM;LINK/A\n;


print MAIL County: $contents{'county'}
Name: $contents{'first'} $contents{'last'}
Address: $contents{'street'} $contents{'city'} 
$contents{'zip'}
Date of Birth: $contents{'month'} 
$contents{'day'} $contents{'year'}
Home Telephone: $contents{'htel'}
close MAIL;

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: HTML in E-mail

2002-06-03 Thread David T-G

Fred, Camilo, et al --

...and then Camilo Gonzalez said...
% 
% Fred,
% 
% Thank Jah this problem was recently successfully solved! Try this:
% 
% open(MAIL,|$mailprog -t);
% print MAIL Content-Type: text/html\n;
% print MAIL To: $comm\@courts.state.ny.us\n;
...

Note that, although he's posted to the CGI list, he's asking about email.
In this case you've stuck on a lovely C-T: header (missing an extra
newline, though) as though you were spitting out to a web page, but
that's not what he's doing.

What he *wants* is to output something like

  To: ...
  From: ...
  Subject: ...
  Content-Type: multipart/related; boundary=HTML-email-is-really-bad
  
  This is a MIME message.  Only a really cool mailreader can see this.
  --HTML-email-is-really-bad
  Content-Type: text/html;
  Here is your boldfreakin'/bold HTML mail.
  --HTML-email-is-really-bad

which properly describes the message body in the headers, leaves a blank
line to identify the header end and the body begin, and then lays out
the body pieces.

No, I don't know how to write it in perl.  I think I'd feel dirty if I
did; this is bad enough ;-)  I'm sure there's a module, though.


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg05114/pgp0.pgp
Description: PGP signature


RE: HTML in E-mail

2002-06-03 Thread Camilo Gonzalez

David,

I admire your principles. This is something that has come up before and
after some trial and error, what I proposed to him seemed to work. I too
feel HTML email is evil but some of us are stuck being prostitutes to keep
the wolves from our door.

-Original Message-
From: David T-G [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 03, 2002 3:11 PM
To: perl beginners cgi
Cc: Camilo Gonzalez; 'Fred Sahakian'
Subject: Re: HTML in E-mail


Fred, Camilo, et al --

and then Camilo Gonzalez said...
% 
% Fred,
% 
% Thank Jah this problem was recently successfully solved! Try this:
% 
% open(MAIL,|$mailprog -t);
% print MAIL Content-Type: text/html\n;
% print MAIL To: $comm\@courts.state.ny.us\n;


Note that, although he's posted to the CGI list, he's asking about email.
In this case you've stuck on a lovely C-T: header (missing an extra
newline, though) as though you were spitting out to a web page, but
that's not what he's doing.

What he *wants* is to output something like

  To: ...
  From: ...
  Subject: ...
  Content-Type: multipart/related; boundary=HTML-email-is-really-bad
  
  This is a MIME message.  Only a really cool mailreader can see this.
  --HTML-email-is-really-bad
  Content-Type: text/html;
  Here is your boldfreakin'/bold HTML mail.
  --HTML-email-is-really-bad

which properly describes the message body in the headers, leaves a blank
line to identify the header end and the body begin, and then lays out
the body pieces.

No, I don't know how to write it in perl.  I think I'd feel dirty if I
did; this is bad enough ;-)  I'm sure there's a module, though.


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: HTML in E-mail

2002-06-03 Thread David T-G

Camilo --

...and then Camilo Gonzalez said...
% 
% David,
% 
% I admire your principles. This is something that has come up before and

Heh :-)


% after some trial and error, what I proposed to him seemed to work. I too

Well, that's good.  I'm glad he's managed to get something out the door.
I wonder how many mail readers will read it without barfing, though...


% feel HTML email is evil but some of us are stuck being prostitutes to keep
% the wolves from our door.

Not unlike myself.  I get paid by the hour, work for the highest bidder,
and tell 'em what they want to hear...  You make the call ;-)


HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg05116/pgp0.pgp
Description: PGP signature


Re: HTML in E-mail

2002-06-03 Thread David T-G

Fred --

...and then Fred Sahakian said...
% 
% What am doing wrong?  Im try to send an e-mail that will appear as formatted HTML, 
Im missing something but dont know what.  In my example below I have a hyperlink which 
I would like to appear as HTML and a font color, but they appear in the e-mail as raw 
HTML, what am I leaving out?  A Mime?:

Yes; you have to specify your text body as an HTML document instead of
just plain ascii.  You also need to skip a line between your headers and
your body, BTW.


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg05117/pgp0.pgp
Description: PGP signature


RE: HTML in E-mail

2002-06-03 Thread Scot Robnett

I don't personally share the 'HTML e-mail is evil' philosophy. And even if
you're in the ascii-only camp, HTML mail isn't going anywhere anytime soon.
People will ask how to generate and parse it, and there are plenty of Perl
tools and modules to do so.

I see that it was said only a really cool mail reader can handle MIME
messages. I guess that's true if Outlook, Outlook Express, Netscape Mail,
Eudora Light, Eudora Pro, recent versions of Lotus, popular 'web-based' mail
readers such as Yahoo, Hotmail, Webmail, and most other popular mail readers
would be considered really cool. The only mail readers I have seen that
don't handle MIME messages very well are older copies of CCmail, Z-mail, and
Pine.

If you want to create HTML mail or other MIME mail, the most effective way
I've found to do it is to use the MIME::Lite module. It can also be used to
send HTML mail or various types of attachments. If interested in learning
more about it, just go to CPAN and search the module documentation.

Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]
[EMAIL PROTECTED]




-Original Message-
From: Camilo Gonzalez [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 03, 2002 3:49 PM
To: 'David T-G'; perl beginners cgi
Cc: Camilo Gonzalez; 'Fred Sahakian'
Subject: RE: HTML in E-mail


David,

I admire your principles. This is something that has come up before and
after some trial and error, what I proposed to him seemed to work. I too
feel HTML email is evil but some of us are stuck being prostitutes to keep
the wolves from our door.

-Original Message-
From: David T-G [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 03, 2002 3:11 PM
To: perl beginners cgi
Cc: Camilo Gonzalez; 'Fred Sahakian'
Subject: Re: HTML in E-mail


Fred, Camilo, et al --

.and then Camilo Gonzalez said...
%
% Fred,
%
% Thank Jah this problem was recently successfully solved! Try this:
%
% open(MAIL,|$mailprog -t);
% print MAIL Content-Type: text/html\n;
% print MAIL To: $comm\@courts.state.ny.us\n;
.

Note that, although he's posted to the CGI list, he's asking about email.
In this case you've stuck on a lovely C-T: header (missing an extra
newline, though) as though you were spitting out to a web page, but
that's not what he's doing.

What he *wants* is to output something like

  To: ...
  From: ...
  Subject: ...
  Content-Type: multipart/related; boundary=HTML-email-is-really-bad

  This is a MIME message.  Only a really cool mailreader can see this.
  --HTML-email-is-really-bad
  Content-Type: text/html;
  Here is your boldfreakin'/bold HTML mail.
  --HTML-email-is-really-bad

which properly describes the message body in the headers, leaves a blank
line to identify the header end and the body begin, and then lays out
the body pieces.

No, I don't know how to write it in perl.  I think I'd feel dirty if I
did; this is bad enough ;-)  I'm sure there's a module, though.


HTH  HAND

:-D
--
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 5/24/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 5/24/2002


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: HTML in E-mail

2002-06-03 Thread Scot Robnett

 Does PINE do anything well? ducks

Wait! I'm thinking. Is this a trick question? ;)

Scot R.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 5/24/2002


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]