yeah i see its prity cool :)
unfortunatly the server on which it had too runs dousnt have the module and i can't install it there too.
but i read the perldoc and its much handyer indeed
Thx fietse
i thougt maybe i should post the complete example
Here it is
a html mail with green background eek!! an test in tekst + test3 in bold
#!/usr/bin/perl
$smtp = Net::SMTP->new('smtp.provider.com');
#get local mail user :)
$smtp->mail($ENV{USER});
#to
$smtp->to('bla@bla.nl');
$smtp->data()...
i already found it out :)
you can make an html mail with the fillowing line after subject:
im a bit ashamed bescause its quite simular to CGI :)
$smtp->datasend("Content-Type: text/html");
thats it
Fietse
this wil read line to line
from bla.txt in current dir
and in the wile you can do what ever you want with the input
i also know a good tutorial for perl you can find it in "man perl"
there are a couple of tutotials
i hope this is what you mean
#!/usr/bin/perl...
dous any one have an idea howto make an html header
with net::smtp ?
and where to post it
thx fietse,
example net::smtp script
#####
$smtp = Net::SMTP->new('smtp.server');
$smtp->mail('from mail adress');
$smtp->to('to mail adress');
$smtp->data();
$smtp->datasend("To: vissible to...
and why dousnt any one use CGI like its ment
to be.
Like $q->header(),start_html etc...;
it would make scripts much more readble up2date with html genartion..and life much easyer.
and read some books too about sub being on the bottum of the script
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.