can someone help me,im still new with blynk, currently im doing a project using blynk notification and blynk email, however i dont know why I not receive email from dispatcher@blynk.io, but blynk notification functioning so this is my code
#include <WiFi.h>
#include <Wire.h>
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>
#include <SoftwareSerial.h>
#define trigPin 7
#define echoPin 5
#define BLYNK_PRINT Serial //#define EspSerial Serial1 for esp8266
#define ESP8266_BAUD 9600
#define BLYNK_MAX_SENDBYTES 256
SoftwareSerial EspSerial(2, 3); //blynk
ESP8266 wifi(&EspSerial);
char auth[] = "auth; //authentication for blynk
char ssid[] = "ssid"; //wifi ssid
char pass[] = "pass"; //wifi password
int vibr_Pin =6;
float duration, distance;
void setup() {
Serial.begin(9600);
EspSerial.begin(ESP8266_BAUD);
delay(10);
Blynk.begin(auth, wifi, ssid, pass);
pinMode(trigPin, OUTPUT); // PIN 7
pinMode(echoPin, INPUT); // PIN 5
}
void loop() {
digitalWrite(trigPin, HIGH);
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);
distance = (duration / 2) * 0.0344; //TO CALCULATE THE MEASURMENET
if (distance >= 7){ //SET THE MEASURE IF MORE THAN 7CM, ITEMS MISSING
Blynk.email("a@gmail.com", "Smart Vault alarm", "Door is open, items is missing!"); // Blynk.notify to show this message on smartphone
Blynk.notify ("door is open");
Serial.println("missing ");
}
else {
Serial.print("things is secure ");
Serial.print(distance);
Serial.print(" cm");
Serial.println();
}
delay(1000);
Blynk.run();
//