Connecting to a socket

2010-03-31 Thread walt
Hi, I am new to Perl and want to connect to an smtp server on port 25 and then send it the helo, mail from:, rcpt to:, data, commands but I would also like to evaluate the response from the smtp server. Has anyone got a script or can point me in the right direction? I know I could use mailman

Re: Connecting to a socket

2010-03-31 Thread Jeff Peng
On Wed, Mar 31, 2010 at 9:39 PM, walt w...@helvatron.co.uk wrote: Hi, I am new to Perl and want to connect to an smtp server on port 25 and then send it the helo, mail from:, rcpt to:, data, commands but I would also like to evaluate the response from the smtp server. Has anyone got a

RE: Connecting to a socket

2010-03-31 Thread walt
From: Deborah Martin [mailto:deborah.mar...@kognitio.com] Sent: 31 March 2010 14:47 To: 'walt' Subject: RE: Connecting to a socket Importance: High Walter, You could adapt the following program :- #!/usr/bin/perl # Simple email program use Net::SMTP; my $from= 'yourf

Re: Connecting to a socket

2010-03-31 Thread Rene Schickbauer
walt wrote: Hi, I am new to Perl and want to connect to an smtp server on port 25 and then send it the helo, mail from:, rcpt to:, data, commands but I would also like to evaluate the response from the smtp server. Has anyone got a script or can point me in the right direction? A simple

RE: Connecting to a socket

2010-03-31 Thread Bob McConnell
From: Rene Schickbauer walt wrote: I am new to Perl and want to connect to an smtp server on port 25 and then send it the helo, mail from:, rcpt to:, data, commands but I would also like to evaluate the response from the smtp server. Has anyone got a script or can point me in the right

Re: Connecting to a socket

2010-03-31 Thread Rene Schickbauer
walt wrote: Thanks Rene, I already have an SMTP server running and have been using it with ASP and CDOSYS. Works like a charm but it's a bit cumbersome and restrictive. So I am looking into dynamically generating emails from a database to achieve a more personalized presentation. At the same

RE: Connecting to a socket

2010-03-31 Thread walt
[mailto:rene.schickba...@gmail.com] Sent: 31 March 2010 18:46 To: walt; Perl Beginners Subject: Re: Connecting to a socket walt wrote: Thanks Rene, I already have an SMTP server running and have been using it with ASP and CDOSYS. Works like a charm but it's a bit cumbersome and restrictive. So I am looking