Email Service via script without being flagged as 'Spam'.

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
jsburnett
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 110
Joined: Fri Mar 09, 2007 9:47 pm

Email Service via script without being flagged as 'Spam'.

Post by jsburnett » Fri Jun 11, 2021 3:45 pm

HI,
Not sure if this is the correct Forum to use.
I am intersted in upgrading to Indy platform.
I am intested in an app that can email completely from within a script without launch default emal app, and this is avaialable in the Indy version.

However, what email service would accept such email and not consider it spam?

Would an account on 'https://silica.on-rev.com/' work? I do have access to online hosting.

Please point me in the correct direction - to the correct email service that would allow scripted emails (plan on not using it as spam),

Thanks.

John Burnett

stam
Posts: 2634
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Email Service via script without being flagged as 'Spam'.

Post by stam » Fri Jun 11, 2021 8:16 pm

Hi John,

there is the revMail command but this allows you to construct an email that opens the installed mail client - probably not what you're asking for.

If i've understood correctly, you probably need an online service with an API you can use from within LiveCode. While Indy gives you access to TSnet, pretty sure you can use APIs like this with the standard version as well (although not asynchronous i don't think).

I have used MailJet previously (https://www.mailjet.com) - they provide a generous free tier (6000 emails/month, 200 emails/day) and clear instructions on how to not get email flagged as spam, as well as a detailed instruction on how to use their API. They provide binaries for many dev platforms, but not LiveCode specifically. However you can use the cURL format to send emails (plain text and/or html) with/without attachments to multiple recipients etc. I tested this some time ago with indy (both using TSnet and non-TSnet methods) and it worked fine.

If you need this type of service, i can recommend MailJet easily!
hope that helps,
Stam

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Email Service via script without being flagged as 'Spam'.

Post by FourthWorld » Fri Jun 11, 2021 9:23 pm

John, where is the spam determination coming from and what exactly does it say?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

jsburnett
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 110
Joined: Fri Mar 09, 2007 9:47 pm

Re: Email Service via script without being flagged as 'Spam'.

Post by jsburnett » Fri Jun 11, 2021 11:44 pm

Thanks for the reply.

I was using Sarah's SMTP library demo.

I was setting email settings to my home email account, TWNCY Itime warner).

It worked for a while, sending emails.
Then stopped with errors, I assumed because it was not accepting the coding on Sarah's SMTP library demo. Thought it was spam?

John Burnett

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Email Service via script without being flagged as 'Spam'.

Post by FourthWorld » Tue Jun 15, 2021 4:38 pm

jsburnett wrote:
Fri Jun 11, 2021 11:44 pm
It worked for a while, sending emails.
Then stopped with errors, I assumed...
What did the errors say?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

jsburnett
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 110
Joined: Fri Mar 09, 2007 9:47 pm

Re: Email Service via script without being flagged as 'Spam'.

Post by jsburnett » Tue Jun 15, 2021 5:32 pm

Richard,

This was the output from Sarah's stack.
-> QUIT
220-silica.on-rev.com ESMTP Exim 4.94 #2 Wed, 07 Apr 2021 07:33:23 -0400
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.


So I am asking, does the tsNet send email directly or using credentials from a service (SMTP server).
And, does anyone know what SMTP server works best with tsNet? Will an account on silica.on-rev.com work?

I am not even sure if i am asking these questions correctly.

Thank you.

John

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Email Service via script without being flagged as 'Spam'.

Post by FourthWorld » Tue Jun 15, 2021 6:58 pm

If you're only sending a single email the SMTP provider owes you an explanation of how to avoid their system falsely interpreting your single email as "spam". Let us know what they say
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Email Service via script without being flagged as 'Spam'.

Post by Klaus » Tue Jun 15, 2021 7:06 pm

Hi John,
So I am asking, does the tsNet send email directly or using credentials from a service (SMTP server).
And, does anyone know what SMTP server works best with tsNet? Will an account on silica.on-rev.com work?
one cannot send an email "out of the blue", you always need a valid email address/SMTP server!
So ANY valid email address should work, but see what Richard wrote.


Best

Klaus

stam
Posts: 2634
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Email Service via script without being flagged as 'Spam'.

Post by stam » Wed Jun 16, 2021 1:30 am

FourthWorld wrote:
Tue Jun 15, 2021 6:58 pm
If you're only sending a single email the SMTP provider owes you an explanation of how to avoid their system falsely interpreting your single email as "spam". Let us know what they say
Even a single email can be interpreted as spam as email addresses can be spoofed and will not be trusted by default - often servers will rely on further authentication to be considered non-spam.

I'm by no means an expert, but following a guide on the mailjet website to configure SPF and DKIM authentication I was able to stop my emails ending up in the junk mail folder. Perhaps this is the same issue that's affecting the OP?
See MailJet's documentation here: https://documentation.mailjet.com/hc/en ... h-SPF-DKIM

(I'm not connected to MailJet in any way, but recommend them as they have an excellent service and is completely free if you plan to send less than 200 emails/day - 6000 emails/month. Plus, the CURL API works well with Postman, so it's easy to experiment...)

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Email Service via script without being flagged as 'Spam'.

Post by FourthWorld » Wed Jun 16, 2021 2:26 am

Yeah, I have some clients whose org requires DKIM. And there are many other factors that can flag something as spam, esp. with spam lists using old-world vigilante techniques like blacklisting all accounts on a server if any single one of those hundreds of users has ever sent spam.

So when I hear about an email being flagged, I like to ask why.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”