Hello Octavian,

Yes, it requires an SMTP server, but in this case you would use the
SMTP server that you are delivering mail to by contacting it directly,
just as "sendmail" would if you were running "sendmail" locally and
passed a message to it.

Let's say you are sending mail to "[EMAIL PROTECTED]". You could
split that string using the "@" symbol, giving you the username
and the servername.

Figure out what the MX record for "namodn.com" is ( there are many
DNS-related perl modules that do this ) and contact the remote
SMTP server directly using Net::SMTP.

This is equivalent ( in UNIX ) to using "dig" to find a remote SMTP server,
and doing "telnet mail.namodn.com 25" and talking SMTP to the remote
host.

Doesn't require an SMTP server anywhere but on the receiving end.



HTH,
Rob Helmer

On Mon, Aug 12, 2002 at 05:45:51AM +0300, Octavian Rasnita wrote:
> But Net::SMTP requires an SMTP server.
> 
> Teddy's Center: http://teddy.fcc.ro/
> Mail: [EMAIL PROTECTED]
> 
> ----- Original Message ----- 
> From: "Rob Helmer" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, August 12, 2002 2:34 AM
> Subject: Re: perl MTA
> 
> 
> > Hello,
> > 
> > 
> > Not sure if this is off-topic for the Perl-Javascript list
> > ( probably :) ), but you can use Net::SMTP module to make
> > Perl act as an MTA.
> > 
> > I use a combination of Net::SMTP and Mail::Header.
> > 
> > 
> > 
> > Thanks,
> > Rob
> > 
> > 
> > On Tue, Aug 06, 2002 at 03:41:11PM +0000, [EMAIL PROTECTED] wrote:
> > > Hello,
> > > 
> > > I have a question please. How can I make a Perl script
> > > for sending emails witch not require "sendmail" or an
> > > other MTA(Mail Transport Agent), also no SMTP server?
> > > I want to make a script witch has its own internal
> > > SMTP engine.
> > > 
> > > Thank you. Have a nice day!
> > > 
> > 
> 
> 

Reply via email to