I’m trying to set up <email task>, and this page g...
# ask-community
s
I’m trying to set up email task, and this page gives information about how to set up email, if you are using gmail. What I’m looking for is - similar level of details if I’m using Microsoft Outlook (my office email) - does anyone here work on such use case before? Any documentation regarding set up would be great help. Thank you.
k
Hi @sapatil, would you know the
smtp_server
and
smtp_port
of your companies email? Is it something you guys host?
s
thanks for quick response, I was not sure where to get these details from, so I followed this thread here and got server ip address. does that help?
k
I’m not sure that will work but you can try it with passing that to the
smtp_server
and trying
EMAIL_USERNAME and EMAIL_PASSWORD will be similar
s
now, I got
smtp_server
name, do you know what is default
smtp_port
k
We can try with the default value and if it fails, we can dig in deeper.
s
I tried using default port and it’s not working. In order to debug i’m running this simple script which is not working for me. I think I’m using correct userid and password. My error says:
SMPT server connection error
any idea what I’m missing here?
k
Unfortunately, this seems like the SMTP host or port might be wrong? This is not something we’d be able to help you with really. You’d need to ask your IT or whoever is in charge of that e-mail hosting for that info
The best advice we can give you is to try the host and port in that article
smtplib.SMTP('<http://smtp.office365.com|smtp.office365.com>', 587)
. If you’re on Office 365 that might work, but if you are hosting your own service and your IT configured it, we wouldn’t be able to guess
Oh sorry, I re-read and you said you tried that. If 587 doesn’t work, you might have a configuration that you need to ask your IT for
s
thanks for your response. I’m touch with IT team, i’m using SMTP server which they have provided me and they said they use same for some of the development work they do. Looks like i need to dig. in further and understand why it’s not working for me, what am. I missing?
quick question: have you meet with anyone who was able to successfully configure email notification for outlook servers, wondering if this problem is very specific to outlook as we are able to successfully set up email notification for gmail servers
k
The combination of host, port, and credentials should be it. I have not seen anyone use the Email task beyond the defaults. Nobody has asked except you unfortunately.
Yeah there may be something with outlook that we don’t know.