hello, I wish to send email to multiple recipients using arduino coding
I have try the solution on Arduino Playground - Email
may I know is that possible to send to multiple recipients using that code?
Hello,
I would assume it would work. Try using something like
recipient1@hotmail.com; recipient2@hotmail.com
as the recipient.
Yes. I just tested it. Requires multiple "RCPT To:" sends. This is the same as a BCC (Blind Carbon Copy).
// first recipient address
Serial.println(F("Sending To"));
strcpy_P(tBuf,PSTR("RCPT To: <one@onedomain.com>\r\n"));
client.write(tBuf);
if(!eRcv()) return 0;
// second recipient address
Serial.println(F("Sending Another To"));
strcpy_P(tBuf,PSTR("RCPT To: <two@twodomain>\r\n"));
client.write(tBuf);
if(!eRcv()) return 0;
Hi, I was tried to use your code to modify for send to multiple recipient but I have the problem with this single line
This one -> "tBuf" which an error says "'tBuf' was not declared in this scope"
So can you help me on how to declare that one?. Thanks
Have you tried to send to one recipient? If you have, post your code in code tag. If not, try to write code for it first.