yes push mode
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 !!!");
});
}
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
maybe someone knows how to have more than one email in mail.properties
yes, it was just a digital dyslexic, but with my 2 real mails, it does not work.
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
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
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
I think so …
@Blynk_Coeur - sorry I’m using Cloud, not local
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.
that’s right, I use local server, and we can’t have 2 mail addresses
I never use blynk email, I prefer to send SMS that work better
mmmmmm …
i find online one solution , but not exists …