Blynk two address email

yes push mode

I just tried,
we must debounce the button or become speedy gonzales

try that, that works like a charm for me, in switch mode

BLYNK_WRITE(V90) { // switch mode
  Blynk.virtualWrite(V90,LOW);
    Serial.println("sending 1");
    Blynk.email("xxxxxx@gmail.com", "*** HELP!!! ***", "Salut1 !!!");
    timer.setTimeout(6000L, []() {  // Lambda Timer Function  wait 6 sec
      Serial.println("sending 2");
      Blynk.email("xxxxxxxx@outlook.com", "*** HELP!!! ***", "Salut2 !!!");
    });
}
1 Like

That works well on the serial monitor…
but I can’t send 2 mails with local server :
15:44:18.026 ERROR- Error sending email from hardware. From user admin@blynk.cc, to : **************@outllok.com . Reason : 535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8 https://support.google.com/mail/?p=BadCredentials t198sm18312165wmt.2 - gsmtp

:rofl::rofl::rofl::rofl:

maybe someone knows how to have more than one email in mail.properties :smile:

1 Like

Maybe change this to outlook.com?

Pete.

1 Like

yes, it was just a digital dyslexic, but with my 2 real mails, it does not work. :rofl:

Have you set correctly your own email provider settings?

Edit: and allowing less secure apps?:

1 Like

yes, it works well with the first mail, not with the second,
that’s why we need to know if we can have 2 mail addresses in the mail.properties

I know, I know :wink:

1 Like

send always two mail at first address, not read the second address …

if created a another button with second mail V91 ,
blynk push one button for two Vpin (V90+V91), it’s possible?

weird !!
yes you can use 2 virtual buttons,
but , has I said, we can use only one adress, because of the mail.properties
maybe you have blynk cloud ?

Make sure you remove the email address from the “to” line, else the email will ONLY go to that instead of what is in code :wink:

1 Like

oh ! I’ll try that now !!

no error, but no mail received, I think you need to specify SMTP somewhere!

no no, if i remove the address not send email

1 Like

I think so …

@Blynk_Coeur - sorry I’m using Cloud, not local :grimacing:
I would guess that local would work in a similar way?

That smtp settings are stored in mail.properties and then in Blynk app, you can use To input box or if you remove from there, then to use email address set in sketch?

Because for me, using cloud, I have to remove email address from To input box, if not all email I set in code gets ignored and goes to “To” email address.

1 Like

that’s right, I use local server, and we can’t have 2 mail addresses

1 Like

I never use blynk email, I prefer to send SMS that work better :wink:

1 Like

mmmmmm …

i find online one solution , but not exists …

1 Like