Blynk.email (“mail”, “Subject”, “Text”)
Hi all.
Do you know if it is possible to add the shipment to more than one email, using the same command "Blynk.email?
Blynk.email (“mail”, “Subject”, “Text”)
Hi all.
Do you know if it is possible to add the shipment to more than one email, using the same command "Blynk.email?
If I understand your request correctly… yes, sorta… just process multiple email commands with different addresses.
void emailprocess() {
Blynk.email (“mail1”, “Subject”, “Text”)
Blynk.email (“mail2”, “Subject”, “Text”)
Blynk.email (“mail3”, “Subject”, “Text”)
}
Although if you have more then a couple at a time, you might want to use a tiler setup to spread them out.
EDIT - I use Local Server, so the above might work for me (untested) but not on Cloud Server due the 1 email per 5 seconds rule… so a timeout timer is a must…
void emailprocess() {
Blynk.email (“mail1”, “Subject”, “Text”) // Send now
// Timed Lambda Function
timer.setTimeout(5500L, []() { // Send in 5.5 seconds
Blynk.email (“mail2”, “Subject”, “Text”)
}); // END Timer Function
// Timed Lambda Function
timer.setTimeout(11000L, []() { // Send in 11 seconds
Blynk.email (“mail3”, “Subject”, “Text”)
}); // END Timer Function
}
This is just one way of doing something like this… one could take an array of addresses and run a more sophisticated timed routine to increment the address, etc… but please no spamming