Re: attachments using MIME::Lite

2001-06-26 Thread $Bill Luebkert
andy wrote: > > ###basically, as per activestate's recommendation in one of the manpages, i > prepared the message with MIME::Lite and send using Net::SMTP. the biggest > drawback right now is that i copied the part in the write function that > creates the file and writes html to the file and te

Re: attachments using MIME::Lite

2001-06-26 Thread andy
###function that creates the file: sub write { $outfile = "htmlfile.html"; open(OUT, ">$outfile") || die "cannot create file=> $!"; print OUT ""; print OUT "This is a test"; print OUT ""; print OUT ""; print OUT ""; close(OUT); #WRITE TO FILE, THEN AUTO-SUBMIT SAME INFORMATION TO NEXT SU

Re: attachments using MIME::Lite

2001-06-26 Thread $Bill Luebkert
> andy wrote: > > hi, what i'm actually trying to do is create an html file and send it as an >attachment. i noticed some odd behavior though: > > 1. when i create the file (named htmlfile.html, stored in $file), and send using >Net::SMTP (not attaching the file, but sending the contents), i

Re: html in emails

2001-06-26 Thread Mark Bergeron
Just Say No!! Email should be email. Always (-; Mark Bergeron Anti-HTML Email Liberation Front, Inc. -Original Message- From: "andy"<[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Date: Tue Jun 26 11:41:56 PDT 2001 Subject: html in emails >hi, > >i'm trying to show html in an email. what he

attachments using MIME::Lite

2001-06-26 Thread andy
hi,  what i'm actually trying to do is create an html file and send it as an attachment.  i noticed some odd behavior though:   1. when i create the file (named htmlfile.html, stored in $file), and send using Net::SMTP (not attaching the file, but sending the contents), it sends the

Re: html in emails

2001-06-26 Thread Jenda Krynicky
From: "andy" <[EMAIL PROTECTED]> > hi, > i'm trying to show html in an email. what headers should i use to be > able to view the actual layout instead of all the tags showing up? > > --andy MIME-Version: 1.0 Content-type: text/html That is if you only want a single part messa

Re: html in emails

2001-06-26 Thread Ron Grabowski
Be advised that not everyone can read HTML mail and there is a large number of people ( myself included ) who do not like it at all.   This is what I use, I'm sure there are better ways...       use Mail::Sender;       my $sender = new Mail::Sender { smtp => 'mail' };       $

html in emails

2001-06-26 Thread andy
hi, i'm trying to show html in an email.  what headers should i use to be able to view the actual layout instead of all the tags showing up?   --andy

Re: effiency in string formatting???

2001-06-26 Thread Josh Reynolds
I remember reading something about the way output is handled in ASP that said it's best not to use something like $html = "\n" $html = "" while (!$rs->EOF) { $html .= "" . $rs->Fields("whatever")->Value $rs->MoveNext } $Response->Write($html) Because repeatedly contatinating large str

RE: effiency in string formatting???

2001-06-26 Thread Matthew Thompson
opps... should say 'ron worte:' ... hope I didn't cause offence, sorry if it did... -Original Message- From: Lee Goddard [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 3:50 PM To: Matthew Thompson; Perl Web (E-mail) Subject: RE: effiency in string formatting??? > Lee wrote: L

RE: effiency in string formatting???

2001-06-26 Thread Lee Goddard
> Lee wrote: LEE DID NOT WRITE THAT!! Lee > > > >I use q|| a lot too. If I feel like living dangerous I'll do: > > > > print <<"": > > > > > > Hello > > > > > > > >print 'world'; > > > > > wow, sod bungee jumping Adrenalin Perl - I like it. ;) > > _

Re: effiency in string formatting???

2001-06-26 Thread Ron Grabowski
> Is that more efficient than this I doubt even an inefficient small loop like this will have a drastic impact on the rest of your program. > 'print "$name";' different from 'print $name;' and the later is more > efficient (I think). Mastering Algorithms with Perl has a little footnote in the f

RE: effiency in string formatting???

2001-06-26 Thread Matthew Thompson
Lee wrote: > >I use q|| a lot too. If I feel like living dangerous I'll do: > > print <<"": > > > Hello > > > >print 'world'; > wow, sod bungee jumping Adrenalin Perl - I like it. ;) ___ Perl-Win32-Web mailing list [EMAIL PROTECTED] http:/

RE: effiency in string formatting???

2001-06-26 Thread Lee Goddard
In defence: Well indentation is never a problem for me as I never read HTML, TokeParser does it :) And nothing breaks _HERE_ is it's weird enough: like a MIMI mixed/multipart delimiter. __Wozzamatteruayuloookinsosadaissanicadayisanicaplaceahshudduppayafayce__ Lee --- Obligatory perl schm

Re: effiency in string formatting???

2001-06-26 Thread Ron Grabowski
> Lee Goddard typed (on 26th of June): > > Of the two, I prefer the former, as it's > > easy to read and hence to maintain. In > > fact, I'd make it clear by > > > > $html.=<<"__END_OF_HTML__"; > > > > Put it $here > > like so > > > > __END_OF_HTML__ > > I personally prefer > print qq|$

RE: effiency in string formatting???

2001-06-26 Thread Richard Chiswell
Lee Goddard typed (on 26th of June): > Of the two, I prefer the former, as it's > easy to read and hence to maintain. In > fact, I'd make it clear by > > $html.=<<"__END_OF_HTML__"; > > Put it $here > like so > > __END_OF_HTML__ I personally prefer print qq|$tag|; format as then I don't

RE: effiency in string formatting???

2001-06-26 Thread Lee Goddard
Of the two, I prefer the former, as it's easy to read and hence to maintain. In fact, I'd make it clear by $html.=<<"__END_OF_HTML__"; Put it $here like so __END_OF_HTML__ Lee --- Obligatory perl schmutter .sig: perl -e "print rand > 0.5 ? q/\\/ : q\/\ while 1" > -Original Message-

effiency in string formatting???

2001-06-26 Thread Matthew Thompson
Hi all, Any one had any comments on this lot of code: --- $html="start of html code"; foreach $_ (@users) { chomp($_); ($name, $pass, $privelages) = split(/:/, $_); $html.="\n\n"; $html.=$name; $html.=""; $html.=$privelage