davidlevine: (southpark)
[personal profile] davidlevine
Because all knowledge is contained in LJ...

I would like to send mail from a shell script running on my Mac. How do I configure the "mail" command (or other command-line mail client) to send mail via my ISP using SMTP?

I'd rather not set up sendmail locally, nor do I need a fully-featured command-line mail client. I just want to send.

(no subject)

Date: 2006-01-14 08:37 pm (UTC)
From: [identity profile] voidampersand.livejournal.com
I am not really an expert on this, but here are some ideas, and I'm sure someone will jump in and correct me if they're wrong. One is that you can SSH to your SMTP server and send the mail from there. Another would be to use a lightweight SMTP client. Perl has one that looks very easy to use. man Net::SMTP for documentation including sample code.

Profile

davidlevine: (Default)
David D. Levine

April 2026

S M T W T F S
   1234
567891011
12131415161718
19202122232425
2627 282930  

Style Credit

Expand Cut Tags

No cut tags