in reply to Re: Re: Email program with attachments
in thread Email program with attachments

I would say, double-check what you have on these lines:
my $work = 'me@work.com';
and
... new Mail::Sender( {smtp => 'mail.domain.com',from => $work}) ...
I think you forgot to change either the mailserver name or your work address. It's very likely that your SMTP server rejects emails unless the sender or recipient is a valid local account. So if you still have me@work.com as an email address or the wrong mail server, then it will be rejected.

Simon Flack ($code or die)
$,=reverse'"ro_';s,$,\$,;s,$,lc ref sub{},e;$,
=~y'_"' ';eval"die";print $_,lc substr$@,0,3;

Replies are listed 'Best First'.
Re: Re: Re: Re: Email program with attachments
by blacksmith (Hermit) on Oct 10, 2001 at 01:06 UTC
    I did that once before. Talk about feeling stupid. I verified and ran the program again. Same error. I am totally stumped. In your reply you said, "It's very likely that your SMTP server rejects emails unless the sender or recipient is a valid local account." Could it be possible that the email server rejects an address if it is not on the local network? I do not know if this could be an issue since I can send email to all the email accounts I have been testing that are outside of the network when manually opening MS Outlook and attaching the files. Thanks for the help. blacksmith.