Skip navigation.
 
mlRe: How to send email without using email client
FROM : Jens Alfke
DATE : Fri May 09 19:48:39 2008

You can also send mail pretty easily by using NSTask to invoke /usr/
bin/sendmail — the parameters are pretty simple, check the man page. 
Normally I'm not a big advocate of getting things done by running Unix 
commands, but in this case the alternatives are all pretty complex and 
involve a lot of 3rd party code.

However, this requires that Postfix (the mail daemon) be enabled. I 
know it ships in the OS, but I don't know whether it's enabled by 
default (to the extent of being able to send messages), and if so 
whether it's able to get the SMTP configuration from somewhere. I've 
used this before, but I may have been relying on configuring Postfix 
myself on the machine this was running on. But that might not be a 
serious problem, if you only need to run this on a server that's under 
your control.

—Jens

Related mailsAuthorDate
mlHow to send email without using email client vinitha May 8, 11:52
mlHow to send email without using email client vinitha ks May 8, 12:10
mlRe: How to send email without using email client August Trometer May 8, 15:24
mlRe: How to send email without using email client Sherm Pendley May 8, 16:26
mlRe: How to send email without using email client Torsten Curdt May 8, 16:52
mlRe: How to send email without using email client Jens Alfke May 8, 17:10
mlRe: How to send email without using email client Jim Turner May 9, 00:14
mlRe: How to send email without using email client Shawn Erickson May 9, 00:56
mlRe: How to send email without using email client Chris Suter May 9, 02:58
mlRe: How to send email without using email client Torsten Curdt May 9, 10:02
mlRe: How to send email without using email client Buddy Kurz May 9, 16:44
mlRe: How to send email without using email client Mike Abdullah May 9, 16:52
mlRe: How to send email without using email client Buddy Kurz May 9, 17:08
mlRe: How to send email without using email client Torsten Curdt May 9, 17:45
mlRe: How to send email without using email client John Stiles May 9, 18:12
mlRe: How to send email without using email client Jens Alfke May 9, 18:38
mlRe: How to send email without using email client David Hoerl May 9, 18:42
mlRe: How to send email without using email client Ilan Volow May 9, 18:58
mlRe: How to send email without using email client Jens Alfke May 9, 19:48
mlRe: How to send email without using email client j o a r May 9, 20:03
mlRe: How to send email without using email client Jason Stephenson May 9, 20:48
mlRe: How to send email without using email client Jens Alfke May 9, 21:22