in reply to send mail using SMTP


Fast and dirty way (Read No module), If you know the path to your SMTP compliant MTA.(here sendmail on a unix box)

open(MAIL,"|/usr/lib/sendmail -oi -t") or die "Can't open Sendmail : $ +!\n"; print MAIL << "EOT"; From: fromuser\@fromsite.com To: destuser\@destsite.com Subject: Put your subject here Return-Path: fromuser\@fromsite.com Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Put Your message here, $variable can be used.. EOT close MAIL;

Replies are listed 'Best First'.
Re: Re: send mail using SMTP
by zigster (Hermit) on Mar 02, 2001 at 16:49 UTC
    You simply cant do this on a vanilla M$ system there is no compliant MTA. Ah CHU did say he was using M$, you could perform negot direct with the smtp server via a socket if you really wanted to avoid a module but why? Net::SMTP is soo easy.
    --

    Zigster