- This topic has 3 replies, 2 voices, and was last updated 1 year, 11 months ago by .
Viewing 3 reply threads
Viewing 3 reply threads
- You must be logged in to reply to this topic.
Hi Renzo,
I get a string from my SQL database which is moved inside of the payload
String payload = https.getString();
SendEmail(payload);
The string goes to the SendEmail function as below
void SendEmail (String testo_mail) {
EMailSender::EMailMessage message;
message.subject = “SMART POT”;
message.message = testo_mail;
Serial.println(“testo ricevuto: “+ testo_mail);
EMailSender::Response resp = emailSend.send(indirizzo, message);
Serial.println(“Sending status: “);
Serial.println(resp.status);
Serial.println(resp.code);
Serial.println(resp.desc);
}
but I got a server error.
Do you have a clue of what it might be wrong?
Many thanks !!!!
Andrea
Hi ozzy,
If you receive a server error, there are probably some issues with the server configuration.
Bye Renzo
Hi Renzo,
many thanks for the follow up.
I think I fix the issue where I needed to close the connection to the sql server before to sending the email.
I made an amazing project, thanks to your code.
Again, many thanks for your passion and your contribution.
Andrea
Hi Andrea,
if you like to share your project contact me, if It’s adequate I give you a space on the site.
Bye Renzo
More