Auto-GPT-Plugins icon indicating copy to clipboard operation
Auto-GPT-Plugins copied to clipboard

Unable to send mail, error message reads Error: [WinError 10061]

Open WhyULose opened this issue 2 years ago • 5 comments

SYSTEM: Command send_email returned: Error: [WinError 10061] Unable to connect due to positive rejection by the target computer. THOUGHTS: The email failed to send. I will try again using the send_email_with_attachment command and attach a log file to help diagnose the issue. REASONING: The send_email_with_attachment command allows me to attach a log file that may help diagnose the issue with the email not sending.

WhyULose avatar May 02 '23 06:05 WhyULose

@riensen

ntindle avatar May 02 '23 07:05 ntindle

@WhyULose Can you provide more information:

  • Can you please also send the output of how Auto-GPT used the send_email command (e.g. the exact parameters)?
  • What e-mail provider are you using?

Also this could be a general configuration error when connecting to your SMTP server. Have you tried to connect to your SMTP server with another client using your settings?

Here is some information I found on the web wrt your error and your config: https://www.google.com/search?q=%5BWinError+10061%5D+Unable+to+connect+due+to+positive+rejection+by+the+target+computer.+site:stackoverflow.com&rlz=1C5GCEM_enDE990DE990&sa=X&ved=2ahUKEwiB1bmCk9b-AhUkOewKHcVTDyYQrQIoBHoECAoQBQ&biw=1728&bih=908&dpr=2

riensen avatar May 02 '23 07:05 riensen

I have hostinger.com as email provider. Receiving of email is working, but not sending. I added the following lines with IMAP Port:

EMAIL_SMTP_HOST=smtp.hostinger.com EMAIL_SMTP_PORT=465 EMAIL_IMAP_SERVER=imap.hostinger.com EMAIL_IMAP_PORT=993

But it does not work with sending. CommunicatorGPT is just stagnating after "y".

Paul-Abelmann avatar May 03 '23 23:05 Paul-Abelmann

It seems there is a general problem sending emails. It seems like a connection issue. The docu of hostinger suggests to use SMTP port 587 if you experience problems. I would try that https://support.hostinger.com/en/articles/4305847-how-to-set-up-hostinger-email-on-your-devices-and-email-applications

If you still have problems, let me know if you successfully connected with other mail clients yet such as thunderbird or similiar.

riensen avatar May 04 '23 06:05 riensen

It seems there is a general problem sending emails. It seems like a connection issue. The docu of hostinger suggests to use SMTP port 587 if you experience problems. I would try that https://support.hostinger.com/en/articles/4305847-how-to-set-up-hostinger-email-on-your-devices-and-email-applications

If you still have problems, let me know if you successfully connected with other mail clients yet such as thunderbird or similiar.

Great, the other port works fine now. Thank you! I want to use your plugin for email-marketing purposes to target many potential customers via aggregated emails at once. Is this going to be possible with your plugin? In other words: what can we efficiently do now with your plugin? Will there be an overview of possibilities for creating, sending and receiving Emails with your plugin?

Paul-Abelmann avatar May 04 '23 09:05 Paul-Abelmann