sendmail is a program, smtp is a protocol, and you'll probably have an easier time if you can talk to a local demon like sendmail than a remote server using a network communications protocol. But if you can't install a mailer demon on your server, you won't have a choice.<div>
<br></div><div>Although I'm now out of touch with Perl, the main tools for talking smtp used to be the Net::SMTP and especially Graham Barr's MailTools modules. They're nicely discussed in Lincoln Stein's book, Network Programming with Perl, although there are probably good tutorials on the web as well. But regrettably, the mailer logic in your script will need to be radically recoded with any change from sendamil to smtp..</div>
<div><br></div><div>Actually, I long ago (really long ago) wrote a script, web2mail,</div><div>    <a href="http://web.archive.org/web/20040202191128/http://www.speakeasy.org/~cgires/web2mail/">http://web.archive.org/web/20040202191128/http://www.speakeasy.org/~cgires/web2mail/</a><br>
which does what you're doing now, but since it also uses sendmail, it won't be any help to you. It was fun reminiscing though.</div><div><br></div><div>Good luck,</div><div>Sanford Morton</div><div><br></div><div>
<br></div>