xreef / EMailSender

Arduino, esp32, Esp8266 EMailSender with Arduino IDE, simple library to send email via smtp with attachments.
https://www.mischianti.org/category/my-libraries/emailsender-send-email-with-attachments/
MIT License
75 stars 28 forks source link

Work with Portenta H7 and Exchange Server #27

Closed salasidis closed 2 years ago

salasidis commented 2 years ago

I managed to get this to work as per the thread on the arduino forum

https://forum.arduino.cc/t/send-email-via-smtp-with-portenta/1006604/8

The main changes that were required were removing the colon from the end of the HELO command (I had changed it to EHLO via the function call).

String helo = commandHELO + " "String(publicIPDescriptor)"; <--- eliminating the colon at the end of this

I also had to increase the number of iterations to check for if (this->useEHLO == true) { for (int i = 0; i<=11; i++) awaitSMTPResponse(client); }

However, on this one it is likely better to add a larger number and stop the loop when the first call to the routine takes longer than say 1 second (ie no more left)

xreef commented 2 years ago

Hi @salasidis, thanks for the tips. TSL for the majority of devices doesn't work but It's good. Using timeout can raise the execution time a lot. I'm going to check the fix, but I think the ":" It's a misprint. Bye Renzo

salasidis commented 2 years ago

Thanks – I am just trying it out in my program itself – a few bugs in my own parts of my code, but hopefully I iron everything out soon.

I was not able to get google to work – not sure if this has anything to do with the recent not allowing less secure apps.

Robert

From: Renzo Mischianti @.> Sent: June 28, 2022 16:53 To: xreef/EMailSender @.> Cc: rsalasidis @.>; Mention @.> Subject: Re: [xreef/EMailSender] Work with Portenta H7 and Exchange Server (Issue #27)

Hi @salasidishttps://github.com/salasidis, thanks for the tips. TSL for the majority of devices doesn't work but It's good. Using timeout can raise the execution time a lot. I'm going to check the fix, but I think the ":" It's a misprint. Bye Renzo

— Reply to this email directly, view it on GitHubhttps://github.com/xreef/EMailSender/issues/27#issuecomment-1169231112, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AK5VYZIRDJVK3XU2MO7ATADVRNQZDANCNFSM52C3MUQQ. You are receiving this because you were mentioned.Message ID: @.**@.>>

xreef commented 2 years ago

Less secure app no more work, you must create an application password. Bye Renzo