I am trying to send a test email from my IIS it has SMTP installed, but I am confused how to use IP address to send email. Here is my code
SmtpClient m = new SmtpClient();
m.Host = "xxx.xxx.xxx.xxx"; // my IP address.
m.Port = 25;
m.Send("xxx.xxx.xxx.xxx", "[email protected]", "Test", "This is a test email.....");
This code giving error
The specified string is not in the form required for an e-mail address.
UPDATE
I am new to email sending concept.