setting From: using Mail::Send/Mailer

2002-10-08 Thread Peter Lavender

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



Re: setting From: using Mail::Send/Mailer

2002-10-08 Thread Peter Lavender

* Edgington, Jeff ([EMAIL PROTECTED]) wrote:


 I use Mail::SendMail and the from works fine on it.

Yeah, I could also have used MIME::Lite too.. 

I was thinking that the MailTools package was like a default install
for activestates perl.. which is why I was using Mail::Send

Mail::SendMail is another module that I could use

How do I find out what modules come with a release of Activestates
perl

The reason for this, is that it would be easier to just tell someone
to install AS perl and then the script would jsut work.. rather than
having to install another module... however easy it is. ;)


Regards,

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



RE: setting From: using Mail::Send/Mailer

2002-10-08 Thread Rogers, John

Hi,
 I dont know all about Net::SMTP but following snipit has always worked for
me.
I get message with From: To: and Subject:

JohnR

use Net::SMTP;
$mailserver='SMTPserver-or-IP';
$mail = Net::SMTP-new($mailserver,Timeout = 120,Debug   = 1,);
#mail is authorised username most accept anonymous blank
$mail-mail();
$mail-to('[EMAIL PROTECTED]');
$mail-data();
$mail-datasend(From: Mailscript\nTo: Sys Admin\nSubject: Testmessage\n);
$mail-datasend(\n);
$mail-datasend(@message);
$mail-dataend();

-Original Message-
From: Peter Lavender [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 11:16 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


## 
Disclaimer 

If this e-mail has been sent to you in error, please notify 
Océ-Australia Limited immediately and delete this e-mail from 
your system. 

Any views expressed in this e-mail are those of the individual 
sender and may not necessarily reflect the views of 
Océ-Australia Limited. 
##
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



RE: setting From: using Mail::Send/Mailer

2002-10-08 Thread Subbarao_Gade

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