- This topic has 3 replies, 2 voices, and was last updated 1 year, 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
3D Printer 3D printer upgrade ABB Arduino Arduino IDE Arduino SAMD boards Aurora AWS CNC Cyclone PCB Factory Cyclone PCB Factory how to build It Display E32 E70 EByte esp01 esp32 esp8266 File System Firmware i2c Library LoRa MicroPython Milling PCB My PCB Networking PCB pinout Power saving Programming board Raspberry Pi REST API RF rp2040 SD Card Sensors Sleep and Wake UP SPI STM32 Storage devices Tutorial Web Server Wemos D1 mini WiFi