[SOLVED] Blynk.email() is not working. Anybody have tried it?

I have tried Example Blynk Email but email from Blynk.email() never arrived :flushed:
IDE 1.6.5, ESP8266-12 Standalone with NodeMCU/Generic, Blynk.Arduino Library 0.2.4
Maybe I am doing something wrong…
BTW: When I push HW button on pin 2, ESP going to reset :cry:
thx
Roman

//#define BLYNK_DEBUG
#define BLYNK_PRINT Serial
#include <SPI.h>
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <SimpleTimer.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "a5e0bc86050642389dea4d1203582xxx";

SimpleTimer timer;

void setup()
{
  Serial.begin(9600);
  Blynk.begin(auth, "xxx", "xxx");
  while (!Blynk.connect()) {
    // Wait until connected
  }

  // Send email immediately on startup
  Blynk.email("x@xxx.name", "Test email", "Email on startup");
  BLYNK_LOG("It should be send a email now!");
  Blynk.virtualWrite(1,HIGH);

  timer.setInterval(1000, TimerON);

  // Setup email button on pin 2
  pinMode(2, INPUT_PULLUP);
  // Attach pin 2 interrupt to our handler
  attachInterrupt(2, emailOnButtonPress, CHANGE);
}


void TimerON ()
{
  Blynk.virtualWrite(4, millis()/1000);
}

void emailOnButtonPress()
{
  // Invert state, since button is "Active LOW"
  int isButtonPressed = !digitalRead(2);
  if (isButtonPressed) {
    BLYNK_LOG("Button is pressed.");
    Blynk.virtualWrite(2,HIGH);
    Blynk.email("x@xxx.name", "Test email button press", "Bla bla bla");
  }
}

void loop()
{
  Blynk.run();
  timer.run();
1 Like

@roky please give me your email via private message so I could check your logs.

Also - are you sure that you added “Email” widget, put correct email and activated dashboard? Email will be send only for activated dash.

Do you user local server?

thx @Dmitriy for superspeed reply :-).

  1. I am using Blynk Server in Cloud
  2. Dashboard is activated and is online
  3. Email address is correct for sure
  4. I have iOS Blynk and there is not any Email widget (???)

I am stupid I do not know how to send private message :confused: Pls let me know…

@roky

You can’t send email without email widget. We implemented this for Android, but not for iOS. Very soon we will release update for iOS with email widget. Sorry for inconvenience.

I would like to make my contribution. I had the same problem, check the spam box in your email.

Hola, tengo problemas con la notificación del Blynk.email no me llegan a mi bandeja, no llegan por spam, uso la App desde móvil Android, tengo el widget de correo electrónico configurado correctamente!
Anteriormente funcionaba sin problemas, no he superado los 100 correos diarios.
Ayuda!

Mi código:

#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

char auth[] = “0651cf06f3c946f3bb4f4db902axxxxx”;
char ssid[] = “Diente Azul Troyano”;
char pass[] = “N08090706”;

void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);

Blynk.email("julianpareja2018@mail.com",“Subject”, “My Blynk project is online.”);
pinMode(13, INPUT);// pin D1(GPIO5) como entrada
pinMode(4,OUTPUT);// pin D2(GPIO4) como Salida
}

void Alarma()
{

int Sensor = digitalRead(13);
if (Sensor == 1)
{
Serial.println(“Alarma Activada”);
Blynk.email("julianpareja2018@mail.com", “Asunto:”, “Peligro!! Puerta Abierta”);
delay(200);
}
}
void loop()
{
Alarma();
Blynk.run();
}