Sending mail (invisibly) from inside a Mac LC app

Richard Miller wow at together.net
Fri Mar 28 16:53:07 EDT 2014


I have a Mac-only LC program that runs invisibly in the background. This is used in a corporate environment, so the actual user of the Mac computer will not likely even know it is running. It is designed to collect certain data and send it to management.

I have not yet found a reliable way for the program to send an email to admin. This has to be done invisibly, so revmail is not an option.

I tried both Shao Shen's libSMTP and Sarah's SMTPlibrary, but haven't had much success configuring the SMTP server information so that it will reliably send an email. I can get these to work with some SMTP server data (like GoDaddy), but often times, with a given clients mail server, neither of these programs will send an email. They just generate errors (like badconnect) as soon as SEND is pressed... even though I know the SMTP server data is correct.

I thought about using the built-in OSX "sendemail" command from a Shell script, but I have read that that command will often not work on a given Mac unless the Mac has been set up to allow it to work. Not sure what is involved to make this command work.

There must be some reliable way to (invisibly) send an email from a LC program running under OS X. Any suggestions?

Thanks,
Richard Miller





More information about the use-livecode mailing list