Re: Basic script to send mail details!

2008-06-22 Thread Francisco Valladolid
hi On Sun, Jun 22, 2008 at 2:47 AM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > Francisco Valladolid wrote: >> >> This is the script: >> >> #!/usr/bin/perl -w >> use strict; >> use CGI qw/:standard/; >> >> require Mail::Send; >> >> my ($msg, $fh, $body, $mail_to); >> >> my $body =<> bla bla bl

Re: Basic script to send mail details!

2008-06-22 Thread Gunnar Hjalmarsson
Francisco Valladolid wrote: This is the script: #!/usr/bin/perl -w use strict; use CGI qw/:standard/; require Mail::Send; my ($msg, $fh, $body, $mail_to); my $body =new(Subject=>'subject'); $msg->to($mail_to); $msg->cc('[EMAIL PROTECTED]'); $fh = $msg->open;

Re: Basic script to send mail details!

2008-06-21 Thread Francisco Valladolid
On Sun, Jun 22, 2008 at 9:38 AM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > Francisco Valladolid wrote: >> >> I'm writting a basic Perl script to send mail using the Mail::Send >> module for it via CGI.pm >> >> I have: >> >> ... >> use CGI qw/:standard/; >> >> print header, >> start_html

Re: Basic script to send mail details!

2008-06-21 Thread Gunnar Hjalmarsson
Francisco Valladolid wrote: I'm writting a basic Perl script to send mail using the Mail::Send module for it via CGI.pm I have: ... use CGI qw/:standard/; print header, start_html('Sending ...'): $mail_to = param('email'); $msg = Mail::Send->new; You can skip that line. $msg = Mai

Basic script to send mail details!

2008-06-21 Thread Francisco Valladolid
Hi folks. I'm writting a basic Perl script to send mail using the Mail::Send module for it via CGI.pm I have: ... use CGI qw/:standard/; print header, start_html('Sending ...'): $mail_to = param('email'); $msg = Mail::Send->new; $msg = Mail::Send->new(Subject=>Some Subject', To=>$mail_