Page 1 of 1

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

Posted: Fri Jun 11, 2021 3:45 pm
by jsburnett
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

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

Posted: Fri Jun 11, 2021 8:16 pm
by stam
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

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

Posted: Fri Jun 11, 2021 9:23 pm
by FourthWorld
John, where is the spam determination coming from and what exactly does it say?

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

Posted: Fri Jun 11, 2021 11:44 pm
by jsburnett
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

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

Posted: Tue Jun 15, 2021 4:38 pm
by FourthWorld
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?

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

Posted: Tue Jun 15, 2021 5:32 pm
by jsburnett
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

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

Posted: Tue Jun 15, 2021 6:58 pm
by FourthWorld
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

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

Posted: Tue Jun 15, 2021 7:06 pm
by Klaus
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

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

Posted: Wed Jun 16, 2021 1:30 am
by stam
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...)

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

Posted: Wed Jun 16, 2021 2:26 am
by FourthWorld
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.