Re: Emailing from a daemon process
Re: Emailing from a daemon process
- Subject: Re: Emailing from a daemon process
- From: Bruce Stephens <email@hidden>
- Date: Fri, 08 Jul 2016 11:56:07 +1000
Could use a simple Perl script… quick easy and nasty…
#!/usr/bin/perl
#
…
# from an old online sales system that is still operational
...
{
open(MAIL2,"|/usr/sbin/sendmail -t -f nobody") ||
&mydie("Hmmm, a nasty horrible server error has occurred, please contact us...");
print MAIL2 "To: $emailAddress1\n";
print MAIL2 "Subject: The ORDER from $theName\n";
myResult(MAIL2);
close (MAIL2);
};
Works!!!
_______________________________________________
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