Skip to content

Instantly share code, notes, and snippets.

@RedyAu
Created May 8, 2023 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RedyAu/abf009816e396b12bf24690c16062d63 to your computer and use it in GitHub Desktop.
Save RedyAu/abf009816e396b12bf24690c16062d63 to your computer and use it in GitHub Desktop.
Blynk Legacy Server Email Config for Non-Gmail SMTP Server

You can get a Log4j-patched version of the server here. This README is incredibly useful, however it's missing a couple points I found out.

Don't edit the properties in the WebUI!

At least for me, they don't get saved. You can instead create the config files visible in the WebUI in the root directory of the server (where you start the java process).
So, create a server.properties, mail.properties, etc file for each page and configure them there. Just like hosting a Minecraft server, really ;)\

No, GMail is not the only supported SMTP provider.

In fact, today you need an app password for GMail, and it might not work properly even then.
There are more settings you can use in mail.properties than it's default content. You can see the full list of supported settings here.

For use with most providers, STMP with SSL (not SMTPS)

In mail.properties add an extra ssl.enable line, and specify the port (for example, 465) like so:

mail.smtp.auth=true
mail.smtp.ssl.enable=true

Blynk Legacy Server Email SMTP with Hostinger

This is my specific usecase, so I will share an example that worked for me:

mail.smtp.username=youraccount@yourdomain.com
mail.smtp.port=465
mail.smtp.password=YOUR_PASSWORD
mail.smtp.auth=true
mail.smtp.ssl.enable=true
mail.smtp.timeout=6000
mail.smtp.host=smtp.hostinger.com
mail.smtp.connectiontimeout=3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment