You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to send an email using OAUTH2.0 Authentication type, using Poco 1.11.0 version, but I am getting the below expectation.
Your email system reported an error sending mail. details: [POCO (class Poco::Net::SMTPException - 0): SMTP Exception: The mail service does not support XOAUTH2 authentication: 250-MA1PEPF00007263.mail.protection.outlook.com Hello [XXX.XXX.XXX.XXX]
250-SIZE 157286400
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250 SMTPUTF8]
Please review the code snippet below and let me know your thoughts.
I am trying to send an email using OAUTH2.0 Authentication type, using Poco 1.11.0 version, but I am getting the below expectation.
Your email system reported an error sending mail. details: [POCO (class Poco::Net::SMTPException - 0): SMTP Exception: The mail service does not support XOAUTH2 authentication: 250-MA1PEPF00007263.mail.protection.outlook.com Hello [XXX.XXX.XXX.XXX]
250-SIZE 157286400
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250 SMTPUTF8]
Please review the code snippet below and let me know your thoughts.
#include
#include
#include <Poco/JSON/Parser.h>
#include "Poco/Net/MailMessage.h"
#include "Poco/Net/MailRecipient.h"
#include "Poco/Net/SMTPClientSession.h"
#include "Poco/Net/StringPartSource.h"
#include "Poco/Net/NetException.h"
#include "Poco/Net/SecureSMTPClientSession.h"
#include "Poco/Net/SslManager.h"
#include "Poco/Net/HTTPRequest.h"
#include "Poco/Net/HTTPSClientSession.h"
#include "Poco/Net/HTTPResponse.h"
#include <Poco/Net/AcceptCertificateHandler.h>
#include <Poco/Net/Context.h>
int main(int argc, char** argv)
{
string AuthToken = //Getting from other function.
string smtpHost = "Servername";
Poco::UInt16 port = 25;
try {
// Initialize SSL Context for STARTTLS
// POCO SSL initialization.
std::shared_ptr sessionPtr;
}
The text was updated successfully, but these errors were encountered: