[ale] stupid perl question

Timothy Ball timball at tux.org
Wed Jul 18 10:43:26 EDT 2001


On Wed, Jul 18, 2001 at 07:36:01AM -0700, Cade Thacker wrote:
> I am trying to send an email out of perl, but I does
> not seem to be working.  I can type:
> 
> # /usr/sbin/sendmail 
> to: cadethacker at yahoo.com
> subject: test
> 
> test
> .

You need this dot.

> and it works fine, I get the email, but when I run the
> script below, I get nothing. 
> 
> #!/usr/bin/perl
> 
> open (MAIL, "|/usr/sbin/sendmail -t") || &error;
> 
> print MAIL 'to: cadethacker at yahoo.com\n';
> print MAIL 'subject: test script\n\n';
> print MAIL 'body test\n';

print('.');

> close (MAIL);
> 
> print "Mail is sent\n";
> 
> exit;
> 
> sub error {
> 	print "problem with sendmail\n";
> 	exit;
> }
> __________________________________________________
> Do You Yahoo!?

No I don't not yahoo... Silly $0.01 dividends...

--timball

-- 
	GPG key available on pgpkeys.mit.edu
pub  1024R/CFF85605 1999-06-10 Timothy L. Ball <timball at sheergenius.com>
     Key fingerprint = 8A 8E 64 D6 21 C0 90 29  9F D6 1E DC F8 18 CB CD
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list