Hi You can use Mail::Sender;
use Mail::Sender; $sender = new Mail::Sender( { from =>'AVupdate_HOT.mycompay.com', smtp =>'x.x.x.x' }); Regards SubbaRao > -----Original Message----- > From: Peter Lavender [SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, October 09, 2002 6:46 AM > To: Perl Win32 Users > Subject: setting From: using Mail::Send/Mailer > > Hi Everyone, > > I'm just mucking about with Mail::Mailer Mail::Send basically becuase > I need a simple lightweight SMTP mailer. > > The problem I have hit is that the From field is always > postmaster@<machine name> > > I would however like to set this myself. I have looked over the > perldoc for Mail::Mailer/Send and Net::SMTP, I've even looked over the > SMTP.pm module, and can't see where I can either set the From: or how > it's setting it to postmaster. > > Can anyone enighten me on this? > > Thanks, > > > > Pete. > > -- > Due to a lack of imagination, > this signature will remain > under construction indefinitely. > _______________________________________________ > Perl-Win32-Users mailing list > [EMAIL PROTECTED] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs ************************************************************************** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ************************************************************************** _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs