fiberpunk1 / OctoPrint-Nexus-AI

82 stars 6 forks source link

Email server update #4

Open sean89503 opened 1 year ago

sean89503 commented 1 year ago

i just made a new email account and i can see the Microsoft is not using a new smtp server Server name: smtp.office365.com Port: 587 Encryption method: STARTTLS

fiber-punk commented 1 year ago

I tested and smtp-mail.outlook.com works in some areas. But now many have been replaced by smtp.office365.com, smtp.office365.com will be faster.

I've added support for smtp.office365.com, just need to re-download NexusAI. image

sean89503 commented 1 year ago

I dont know why but I'm getting this error

2022-10-18 12_39_09-Window

image

troyhowarth commented 1 year ago

This may not be the same issue - but yesterday when I was setting it up I received the same error message. I clicked "save settings" exited the program and reopened the program, went back into the email area and clicked "send test" and it worked even though I hadn't changed my email address/password. Thought it might have been a way it was calling the variables.

sean89503 commented 1 year ago

This may not be the same issue - but yesterday when I was setting it up I received the same error message. I clicked "save settings" exited the program and reopened the program, went back into the email area and clicked "send test" and it worked even though I hadn't changed my email address/password. Thought it might have been a way it was calling the variables.

Are you using "smtp.office365.com"

troyhowarth commented 1 year ago

Are you using "smtp.office365.com"

nah, i'm using smtp-mail.outlook.com. When i get home from work I'll download the latest release and try smtp.office365.com. I'm in Australia if geolocation is an issue with what i have/you have access to from microsoft's servers.

sean89503 commented 1 year ago

Are you using "smtp.office365.com"

nah, i'm using smtp-mail.outlook.com. When i get home from work I'll download the latest release and try smtp.office365.com. I'm in Australia if geolocation is an issue with what i have/you have access to from microsoft's servers.

did you get to try?

troyhowarth commented 1 year ago

Are you using "smtp.office365.com"

nah, i'm using smtp-mail.outlook.com. When i get home from work I'll download the latest release and try smtp.office365.com. I'm in Australia if geolocation is an issue with what i have/you have access to from microsoft's servers.

did you get to try?

Hey, Sorry in the delay in responding. I did try with the latest version and it's not working. Not even the older " smtp-mail.outlook.com " from the drop down. I went back to the version dated 17th of October and that one worked using " smtp-mail.outlook.com".

In saying that. It's only partially working. It sends a test email but it isn't sending an email when it has detected a print fail.

troyhowarth commented 1 year ago

I did try with the latest version and it's not working. Not even the older " smtp-mail.outlook.com " from the drop down. I went back to the version dated 17th of October and that one worked using " smtp-mail.outlook.com".

Interestingly I tried copying the config.ini file generated from the server dated 17th across to the latest release and I can now send test emails. I think potentially the new version isn't saving to the config file correctly? The server still isn't generating emails when it detects a fail though.

fiber-punk commented 1 year ago

herre is the Nexus AI Server's code: https://github.com/fiberpunk1/NexusAIServer/tree/main/src/email I believe the email sending function is often related to the network configuration and email server configuration.

ChrisMayhew commented 1 year ago

I had this issue but I solved it by clicking save first and then trying the test email.