Email not sending

Hello , not receiving email logic seems right all messages are output to to V1 thank you

    if (!strcmp("temp",param.asStr())){
        DHT dht;            //create a DHT class object
        Blynk.virtualWrite(V1, "\n reading tmp \n");
        int chk = dht.readDHT11(DHT11_Pin); //read DHT11 and get a return value. Then determine whether data read is normal according to the return value.
        if(chk == DHTLIB_OK){
            Blynk.virtualWrite(V1, "sending email\n");
  "", " Subject: test", "My Blynk project is online.");
            Blynk.virtualWrite(V2, "Temp C :",dht.temperature );
         } else

            Blynk.virtualWrite(V2, "failed to read");

    else if (!strcmp("clear",param.asStr()))

    else if (!strcmp("v",param.asStr())){
        Blynk.virtualWrite(V1,"Blynk v ", BLYNK_VERSION, ": Device started\n");

@sabie please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
Copy and paste them if you cant find the correct characters on your keyboard.


now I see what you meant by ``` sorry

Does whatever widget is attached to pin V1 show the message “sending email”?

Are you using the Blynk cloud server, or have you set-up a local server?

Have you tried removing the leading space before “Subject”?

Have you checked your junk mail folder?


yes all messages and temp outputs correctly . Using the cloud , originally had “test” in subject but added “subject:” as I saw in the examples , checked junk no emails also using the “free” version of Blynk does that matter?

Just like the rest of us!

Have you added the email widget to your project in the Blynk app?


Thanks Pete! Just added the email widget and its working! I am very impressed with Blynk thank you and your team for an excellent product! I’m a retired hardware/software engineer 42 years
@ IBM getting a life again!

Glad you’re happy with Blynk, but I’m not part of “the team”, simply one of the moderators here on the forum.
Did you ever use MQTT at Big Blue?


no worked on the micro chips for the main frames

1 Like