Enable 2-Step Verification (2FA) in your Google Account and create an App Password (16 characters) enter this specific App Password in the `email.Account.Password` field, with Host = ‘smtp.gmail.com’, Port = 587, and EnableSSL = true.
Alternatively, export the report to a MemoryStream (PDFExport) and send the email using a library that supports OAuth 2.0 (for example, MailKit + Gmail OAuth2), as the built-in EmailExport uses basic SMTP authentication.
Comments
Hello!
Enable 2-Step Verification (2FA) in your Google Account and create an App Password (16 characters) enter this specific App Password in the `email.Account.Password` field, with Host = ‘smtp.gmail.com’, Port = 587, and EnableSSL = true.
Alternatively, export the report to a MemoryStream (PDFExport) and send the email using a library that supports OAuth 2.0 (for example, MailKit + Gmail OAuth2), as the built-in EmailExport uses basic SMTP authentication.