Re: Emailing from a daemon process
Re: Emailing from a daemon process
- Subject: Re: Emailing from a daemon process
- From: Alastair Houghton <email@hidden>
- Date: Fri, 08 Jul 2016 16:44:23 +0100
On 8 Jul 2016, at 16:13, Sal Conigliaro <email@hidden> wrote:
>
> You can send mail using sendmail without having to configure Postfix or
> Sendmail.
>
> Out of the box OS X can use sendmail to send messages. You can test it by
> doing:
>
> echo “Subject: Email from OX“ | /usr/sbin/sendmail email@hidden
>
> (You’ll have to actually include more email headers so it has less chance
> of being marked as spam)
It has a very high probability of being marked as spam, whatever headers you use, because it’ll be delivered direct to the recipient’s mail server, most likely from a consumer ISP-owned IP range. Further, if you aren’t careful about the From: address, it’ll fall foul of SPF, DKIM and other similar rules intended to prevent spam.
It’s best either to
(a) send via the customer’s own e-mail account, which is tricky to configure and means you will need support for TLS (some mail servers only accept outbound e-mail over authenticated TLS connections), or
(b) use a web server under your control to actually send the e-mail, and have the software make an HTTP POST to trigger it
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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