Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support smtp2go smtp service (a great sendgrid alternative) #379

Closed
zilexa opened this issue Apr 28, 2021 · 4 comments
Closed

Support smtp2go smtp service (a great sendgrid alternative) #379

zilexa opened this issue Apr 28, 2021 · 4 comments

Comments

@zilexa
Copy link

zilexa commented Apr 28, 2021

💡 The Idea
I switched from Sendgrid to smtp2go because for some reason, after correctly configuring DNS settings with my domain provider, email still ended up in Spam.
Smtp2go has very clear instructions, a great service and works very well.

https://www.smtp2go.com/

@caronc
Copy link
Owner

caronc commented May 2, 2021

Thanks for the request; I'll have a look and see what I can do

@zilexa
Copy link
Author

zilexa commented May 2, 2021

This might help:

Server: mail.smtp2go.com
Port: 2525
Alternative/TLS Ports: 8025, 587, 80 or 25.
SSL ports: 465, 8465 and 443.

I always use port 587 and usually have to disable any forced SSL/starttls with this port to receive emails directly in Inbox of outlook.com and Gmail.

@caronc
Copy link
Owner

caronc commented May 15, 2021

I added SMTP2Go support (leveraging their API) and from what I tested, it works pretty good! 🙂 I still need to add more test coverage, but hopefully I'll get it added to the main source code soon enough. You're welcome to check out the branch (above this comment) and play with it yourself if you want.

In the meantime, if you just want to use the SMTP service they have, this has always been supported by Apprise. You just need to use the mailtos:// command. From your SMTP Dashboard you'll have users you've added the access to. Knowing this, your Apprise URL becomes:

  • mailtos://{smtp_user}:{smtp_password}@{domain}?smtp=mail.smtp2go.com&from={email}

So as an example (with fake credentials), let's say you've set up the domain example.com with SMTP2Go and you want to send an email from that address. Let's assume on our SMTP (SMTP2Go) Dashboard we have the user bill with the password gates. Apprise would be able to recognize and leverage the SMTP servers like.

The above example assumes you want to send an email to [email protected]

Make sure you also identify a from= (as i did in the example above) otherwise the email will come from [email protected] (by default Apprise will append the user@domain if you don't otherwise tell it differently).

While this is a bit complicated... it works 🙂 . Ideally though, leveraging the SMTP2Go API is definitely the way to go. This is what I just added support for. You're Apprise URL will get much simpler then.. it will soon become:

  • smtp2go://{user}@{domain}/{apikey}/
  • smtp2go://{user}@{domain}/{apikey}/{email}
  • smtp2go://{user}@{domain}/{apikey}/{email1}/{email2}/{emailN}

I hope this helps!

Edit: Done! 👍 Code has been merged into the master branch just recently. I'll create a new Apprise release tomorrow sometime which will include it.

@caronc
Copy link
Owner

caronc commented May 16, 2021

Closing issue as this is included in v0.9.3 just released now. Thanks again for the suggestion to add this service!

@caronc caronc closed this as completed May 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants