[Chicago-talk] emailing from perl

Steven Lembark lembark at wrkhors.com
Thu Aug 2 11:29:17 PDT 2007

> Thanks everyone.  Unfortunately, the script in question still doesn't
> do what I need so I'll have to home grow one anyway, in which case
> I'll use one of the methods above to send the email.

Q: Can you send email via the command line with
   /usr/lib/sendmail (or whatever equivalent you
   are using locally)?

Q: Does "telnet localhost 25" get you a prompt or
   no connection socket error?

Q: If you do not intend to use local smtp, what
   is your ISP's smtp forwarding hostname or
   IP address? If you telnet to it's IP and port
   25 can you connect?

Until you have working answers to these questions
no amount of local email code is going to work: it
won't have a mail transport agent to talk to and
thus won't have any way to move the mail. Once you
have a connection to the transport agent then you
can start testing a really, really, really minimal
email program: send yourself "hello world". Once
THAT works start dealing with the rest of it.

There is a good animal book on the subject: Programming
Internet Email. I'd suggest reading it on Safari to
get the setup & troubleshooting steps.


Steven Lembark                                         85-09 90th Street
Workhorse Computing                                  Woodhaven, NY 11421
lembark at wrkhors.com                                      +1 888 359 3508

More information about the Chicago-talk mailing list