Link to home
Start Free TrialLog in
Avatar of Jenny12345
Jenny12345

asked on

C# Is there a way to get IP address from the mail server name?


I have a C# windows forms app in the email function I am using the smtpmail object to send the mail.  However, it does not work when I set the stmpmail.servername = "mail.servername.com"  it only works if I put the IP address.  Is there a way to get IP address from the mail server name?
ASKER CERTIFIED SOLUTION
Avatar of wishguitar
wishguitar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jenny12345
Jenny12345

ASKER

yes this works great  - thank you