Re: How to send email without using email client
Re: How to send email without using email client
- Subject: Re: How to send email without using email client
- From: Jens Alfke <email@hidden>
- Date: Fri, 9 May 2008 10:48:39 -0700
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden