Avatar of HemlockPrinters
HemlockPrinters
 asked on

asp.net mailserver set up using exchange 365

We had  exchange server 2003, recently we updated MS office to MS Office 365 which there is no static IP for exchange server anymore.

We have an asp.net website which can send out emails using exchange server, the following is part of web.config file in asp.net application.

Now what should I change to make mail server work again?

<configuration>
      <appSettings>
              <add key="MailServer"  value="192.168.1.7"/>
      </appSettings>
</configuration>
C#ASPMicrosoft 365ASP.NET.NET Programming

Avatar of undefined
Last Comment
Big Monty

8/22/2022 - Mon
Randy Downs

You could try the server's Internet ip that you use for your email clients. if you don't know the ip just ping it from CMD prompt.
Paul MacDonald

<configuration>
      <appSettings>
              <add key="MailServer"  value="mail_server_name.domain.tld"/>
      </appSettings>
</configuration>
HemlockPrinters

ASKER
There is no IP or mail server name of outlook 365 mail server
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Randy Downs

Do you have the option of setting up an email client like Outlook or confined to use webmail? If the former you will get a outgoing email server that you could use.

Your Internet Service Provider (ISP) probably provides this for you as well.

If you get the outgoing email server from your ISP or Exchange email server you can setup your application.
ASKER CERTIFIED SOLUTION
Scott Fell

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Big Monty

I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.