BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

No sending e-mail

I want to send an infinite number of e-mails but i can not send even once
i use esp 8266
please help me




 *************************************************************

  Simple e-mail example

  App project setup:
    E-mail Widget

  Connect a button to digital pin 2 and GND
  Pressing this button will send an e-mail

  WARNING: You are limited to send ONLY ONE E-MAIL PER 5 SECONDS!
 *************************************************************/

/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial
/* Set this to a bigger number, to enable sending longer messages */
//#define BLYNK_MAX_SENDBYTES 128

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

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

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "";
char pass[] = "";

unsigned count = 0;

void emailOnButtonPress()
{Blynk.email("pier26@gmail.com", "ESP8266 Alert", "Temperature over 28C!");
    Blynk.notify("ESP8266 Alert - Temperature over 28C!");

}

void setup()
{
  // Debug console
  Serial.begin(9600);

  Blynk.begin(auth, ssid, pass);
  // You can also specify server:
  //Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 80);
  //Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080);

  // Send e-mail when your hardware gets connected to Blynk Server
  // Just put the recepient's "e-mail address", "Subject" and the "message body"
  Blynk.email("peir82@hotmail.com", "Subject", "My Blynk project is online.");

 
}

void loop()
{
  Blynk.run();
}

my blink app

What Blynk library version are you using?

Are you using your own Blynk local server, or the Blynk cloud servers?

Pete.

did you mean that?

Yes. Uninstall version 1.0.0-beta-3 and install 0.6.1 instead.

You didn’t answer my local/cloud server question, but as you were unsure about where to find the library version I’ll assume that you are using the cloud servers.

You should be aware that with the cloud servers you are limited to 1 email every 5 seconds and a maximum of 100 emails per day.
Not exactly an infinite amount, but more than adequate for most people.

Documentation is here:

Pete.