How To Solve "error Connecting To Smtp Host: [errno 10061] No Connection Could Be Made Because The Target Machine Actively Refused It''?
Solution 1:
Try checking the following link please:
https://stackoverflow.com/a/36532619/5062759
From my understanding, it's not recommended AT ALL to use Gmail to send emails out. There's a limit to it, so if you're doing it for production services (especially logs) you'll hit the cap quickly. Amazon's SES system gives developer credits I believe so you can tinker with that or if you really like Google you could use: https://cloud.google.com/appengine/docs/standard/go/mail/.
Solution 2:
The sendemail command by default attempts to use localhost as the SMTP server and ignores the settings used for scheduled search alerts. If you do not have an SMTP server or forwarder installed (which on Windows is quite likely), sendemail
will fail when trying to connect to localhost.
To work around this, specify server in sendemail as follows:
my search terms | sendemail to=foo@bar.com sendresults=true server=mail.bar.com
Solution 3:
Can you try setting smtp_host in smtp_auth.yaml to a local smtp host (email server). Your admin can help you with figuring one out.
Post a Comment for "How To Solve "error Connecting To Smtp Host: [errno 10061] No Connection Could Be Made Because The Target Machine Actively Refused It''?"