Hey team, I’m looking for some assistance with the email widget only letting me send emails to my registered account address. I’ve read the forum and seen that this is a common issue, but none of the fixes have worked for me. The emails always send, just to the wrong address.

My hardware is a nodemcu with library 0.6.1, and I’m using an android phone with android 9 OS, blynk app v2.27.6 and a local server version 0.41.8.

I have the alert@mail.com address hard coded on my nodemcu but the emails still keep going to registered@mail.com. I know the service defaults to the address in the mail widget, but I can’t get this changed.

Blynk.email("alert@mail.com", "Alert", "Alert occurring");

I’ve tried changing the address in the widget to the correct address, I’ve tried leaving it blank, and I’ve tried entering just a space or some punctuation as filler in the widget but none of these things work.

I’ve also deleted the widget from the project and then re-added it with the same problem. I also tried adding the widget without opening it thinking that maybe it would then be blank, but no luck.
I’ve also tried deleting the widget from the project, then uninstalling the app, reinstalling the app, then adding the widget back, but no luck.

I’ve also gone into my server settings and found the project and manually deleted the widget from the server side, then re-added it, but even this doesn’t help.

With quotes around the email address. This is how it is used in the docs at https://docs.blynk.cc/#widgets-notifications-email, and in the example sketches. I will test it as a string instead, I haven’t tried that yet. But I don’t think this will help since the widget address overrides the hardcode address and I can’t get the widget to change.

Hm. Are you sure you are running 0.41.8? Please run jps and paste the output here. This seem to me like outdated server version. You can also check the server logs. That could help as well. Maybe you don’t have space on your disk where server is running?

There are no errors in the log. To clarify, I’m running the java8 version of the server software if that makes a difference. It doesn’t look like there is a java8 version of 0.41.9 so I can’t upgrade yet.

Thanks, I hadn’t seen that yet. It’s concerning though since as far as I can tell, there is no openJDK version of Java above 8 for arm processors below ARM7, but other distros of Java have issues with email certificates not working. I’m going to play with some work-arounds when I get a chance, but are you aware of any official methods to get Java 9 or higher on ARM processors below 7?

Does Blynk auth code email work on your RPi Zero with Java 11? I have also tested azul and bell versions on RPi Zero, and it works for the Pi, but blynk email doesn’t work. You can’t email API’s to yourself. The email issue has been discussed at length in multiple other threads and I have yet to see a solution.

Interesting. Could you tell me which OS and which zulu version number you are running. I have a RPi Zero running buster kernel 4.19 with Zulu OpenJDK 11.33.21 and I get a certificate error with the Blynk auth code.

Thanks for the info. I just reviewed my setup and I found the problem. I hadn’t updated the default path for Java with the new version. After changing this, it works properly. I’ll detail how I did it since it might help others, but I know very little about linux.
Do you know a better way to do this?

Here’s what I did:
I have a raspberry pi zero running the buster OS. However, the version of Java 11 included in the buster package doesn’t support processors below ARMv7 (the RPi Zero has an ARMv6 chip). If you type

but the export command doesn’t work in buster. Then I tried tried deleting the original java using

apt-get --purge remove openJDK*

However, when this removes the incompatible java 11, it automatically installs an incompatible version of java 9. Using the command again to remove java 9 automatically installs the original java 11. So instead I left the original java in place and used the command

or to run automatically after starting up, modify /etc/rc.local as follows:

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi
java -jar /home/pi/Blynk-Server/Blynk-Server.jar -dataFolder /home/pi/Blynk-Server/Data &
exit 0