- This topic has 3 replies, 2 voices, and was last updated 2 years, 10 months ago by .
- 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
Just like a well-organized workbench, this website uses cookies to function properly and efficiently.
🛠️ The Essentials (Necessary): Some cookies are categorized as necessary and are stored on your browser because they are critical for the basic working of the site.
📊 The Analytics (Third-party): We also use third-party cookies to help us analyze traffic and understand which projects you like the most. These are stored only if you give us the green light.
You can choose to opt-out, but keep in mind that disabling them might make the site experience a bit less "smooth".
| Cookie | Duration | Description |
|---|---|---|
| cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
| cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
| cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
| cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
| cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
| viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |
