And here´s a simple script
on mouseup /* pFrom is the sender email pTo is the recipient email pSubject is the subject pMessage is the message text pUsername is the username for logging into email account pPassword is the password for logging into email account pServer is the server URL including smtp:// or smtps:// Note: even if you have an additional addon domain in your HostM account; when using ssl/tls you have to use your account hostname as server, not the addon domain. e.g smtps://ua123456.serversignin.com */ put "Content-Type: text/plain; charset=utf-8" & cr into pPostData put "Date:" && the internet date &CR after pPostData put "From:" && pFrom &CR after pPostData put "To:" && pTo & CR after pPostData put "Subject: "&pSubject & cr & cr after pPostData put pMessage after pPostData put pUsername into pSettings["username"] put pPassword into pSettings["password"] put TRUE into pSettings["use_ssl"] -- Note: when setting use_ssl to TRUE, then you have to use smtps:// -- put tsNetSmtpSync(pServer, pFrom, pTo, pPostData, pResponseHeaders,pBytes,pSettings) into tResult answer pResponseHeaders &return &tResult end mouseup HTH, Matthias > Am 15.09.2016 um 23:54 schrieb Matthias Rebbe > <matthias_livecode_150...@m-r-d.de>: > > Hi Mark, > > i just tried it with the stack from Neil Roger which is available here > http://techsupport.on-rev.com/LCMail.zip > <http://techsupport.on-rev.com/LCMail.zip> > or an extended version, which includes also some FTP examples,here > https://dl.dropbox.com/s/q4oec8uu3pcdgfj/index.html > <https://dl.dropbox.com/s/q4oec8uu3pcdgfj/index.html> > > Are you referring to that sample stack? > > I just tried it. I have no problems using it to send an email through one of > my HostM email accounts to my iCloud email address. > > > Matthias > > > >> Am 15.09.2016 um 23:29 schrieb Mark Clark <markcl...@mac.com>: >> >> I am looking to replace sending emails via shell to one using the tsNet >> library. At first I had thought there was a var for the smtp port, but >> that’s just a server address setting (whoops). >> I am using hostM on this project and I’m trying to configure through their >> mail host- I have the proper settings for outgoing mail server (587), mail >> username (which is just the address for the account), and password. The >> error message I get back is (56) Failure when receiving data from >> peer/returned from server. I’m just slogging through the tsNet Sample Sync >> Stack to speed things up since sending the email should be trivial compared >> to the data enclosed in the actual message. But, sometimes that’s how it >> goes:) Other than the Dictionary and this sample stack does anyone have a >> pointer to a simple example using this external with a hosted mail service? >> >> thx, >> mark c >> _______________________________________________ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode