• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Emailing from a daemon process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Emailing from a daemon process
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Justification of collection cells in sections
  • Next by Date: Re: Emailing from a daemon process
  • Previous by thread: NSCollectionViewItem lifecycle
  • Next by thread: Re: Emailing from a daemon process
  • Index(es):
    • Date
    • Thread