Re: sending a variable in a Net::SMTP message not working

2007-02-03 Thread Romeo Theriault
On 2/2/07, Mumia W. <[EMAIL PROTECTED]> wrote: On 02/02/2007 02:25 PM, Romeo Theriault wrote: > [...] >my $smtp = Net::SMTP_auth->new('miranda.umfk.maine.edu'); >$smtp->auth('LOGIN', 'user', 'password'); > >$smtp->mail($from); >$smtp->to($to); >$smtp->data(); >$smtp->data

Re: sending a variable in a Net::SMTP message not working

2007-02-02 Thread Mumia W.
On 02/02/2007 02:25 PM, Romeo Theriault wrote: [...] my $smtp = Net::SMTP_auth->new('miranda.umfk.maine.edu'); $smtp->auth('LOGIN', 'user', 'password'); $smtp->mail($from); $smtp->to($to); $smtp->data(); $smtp->datasend("To: $to\n"); $smtp->datasend("Subject: $subject\n");

Re: sending a variable in a Net::SMTP message not working

2007-02-02 Thread Jeremy Kister
On 2/2/2007 3:25 PM, Romeo Theriault wrote: $smtp->mail($from); $smtp->to($to); $smtp->data(); $smtp->datasend("To: $to\n"); $smtp->datasend("Subject: $subject\n"); $smtp->datasend($file); $smtp->dataend(); Does $file begin with an empty line? If not, you're not sep

Re: sending a variable in a Net::SMTP message not working

2007-02-02 Thread John W. Krahn
Romeo Theriault wrote: > Hello, I'm trying to send a variable in a email using Net::SMTP. For some > reason no matter what I do the contents of the variable are not sent. I > know the variable holds the information I want because if I do a > > print $file; > > the contents are printed. Here is th