Site icon Renzo Mischianti

EmailSender with Gmail

Hello Renzo, Since my Sendgrid account has become paid, I turned to Google. (I don't send enough emails to be profitable). On my Google account, I created an API key, but I can't send an email. I kept the same structure as for sending with Sendgrid. But I can't send the email. code : #include <EMailSender.h> #define DEFAULT_EMAIL_NETWORK_TYPE_ARDUINO NETWORK_W5100 #define EMAIL_SENDER_DEBUG EMailSender.emailSend("Arduino", "aaaa bbbb cccc dddd", "xxxxxxxxx@gmail.com", "smtp.gmail.com", 587); I tested with the names ‘Apikey’ and ‘Arduino’. Arduino is the name registered with the Google API. I am testing several solutions, but I feel like I am missing something simple... The server response is: SMTP AUTH error (530 5.7.0 Do you have any idea what might be missing? I am using a Mega2500 board. Tank you
Exit mobile version