Using SMTP.GMAIL.COM Fails

This forum is designated to discuss SiComponents Scheduling Agent.
Post Reply
rbaroniunas
Posts: 19
Joined: Wed Dec 25, 2019 2:13 am

Using SMTP.GMAIL.COM Fails

Post by rbaroniunas »

I have a client that uses Gmail.com as their email server.

Port 587
SMTP-RELAY.GMAIL.COM
TLS set
User credentials normal

They are attempting to add this to the task scheduler to auto emailer using CDO. It fails to connect to the mail server. Is there something different with gmail.com that i don't know ? I believe they use OAUTH2, does the task scheduler have a issue with that ?

isiticov
Site Admin
Posts: 2231
Joined: Thu Nov 21, 2002 3:17 pm

Re: Using SMTP.GMAIL.COM Fails

Post by isiticov »

Send email action in Task Scheduler supports only plain authentication and doesn't support any advanced feature. It is deprecated since Windows 8.
So as a workaround could be to use a local SMTP relay. Something like is described here: https://social.technet.microsoft.com/wi ... relay.aspx
Or to use PowerShell like is described here: https://www.netwoven.com/2017/04/28/sen ... re-solved/
Best regards,
Igor Sitikov.

rbaroniunas
Posts: 19
Joined: Wed Dec 25, 2019 2:13 am

Re: Using SMTP.GMAIL.COM Fails

Post by rbaroniunas »

So the only SMTP server that the task scheduler works with is a simple smtp server and that is all.

isiticov
Site Admin
Posts: 2231
Joined: Thu Nov 21, 2002 3:17 pm

Re: Using SMTP.GMAIL.COM Fails

Post by isiticov »

Yes, exactly. This is how MS realized this functionality in their service.
Best regards,
Igor Sitikov.

Post Reply