Microsoft Exchange and sending emails from the website

ADM Marcinko 0 Reputation points
2025-02-17T08:17:05.4533333+00:00

I would like to ask how we can solve the problem with sending emails from the web. The client only uses an Exchange license without Office 365 and does not have access to the Azure portal either. We need to send notification emails from the web site. I was considering SMTP sending. So I created an email in Exchange ******@domain.com. I have set up SMTP sending on the site:

server: smtp.office365.com

port: 465

I have entered the user and password for the mailbox but the sending does not work.

How would you handle sending notifications from the web if the emails are in Microsoft Exchange ?

Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,551 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,766 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Alex Zhang-MSFT 5,385 Reputation points Microsoft Vendor
    2025-02-19T00:54:04.13+00:00

    Hello, @ADM Marcinko,

    Welcome to the Microsoft Q&A platform!

    If your client does not use Office 365 and does not have access to Azure, then your best bet is to work with your Exchange administrator to set up an SMTP relay or receive connector on your existing Exchange server. You’d configure your web application to send mail to that connector.

    Alternatively, if you do need to use SMTP authentication, confirm the right combination of host, port, and encryption based on the organization’s documentation.

    In summary, rather than using smtp.office365.com (which is for Office 365 accounts) you should either configure your web application to use your organization’s own Exchange server (correct hostname, port, and encryption) or set up a dedicated SMTP relay on Exchange that allows sending from your web server. This ensures that your notification emails are properly relayed from within your Microsoft Exchange environment.

    Should you need more help on this, you can feel free to post back. 


    If the answer is helpful, please click on “Accept answer” as it could help other members of the Microsoft Q&A community who have similar questions and are looking for solutions.

    Thank you for your support and understanding.

    Best Wishes,

    Alex Zhang


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.