Hi
Is it possible to send email if I have IP address in place of smtp .
Kritika
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Iftikar HussainPosted Aug 26, 2013, 7:41 AM
If you have mail server ip address then it will be possible.
Regards,
Iftikar
Sanjeeb LenkaPosted Aug 26, 2013, 7:40 AM
yes you can.
sample:
protected void btnSubmit_Click(object sender, EventArgs e)
{
try
{
MailMessage Msg = new MailMessage();
// Sender e-mail address.
Msg.From = txtFrom.Text;
// Recipient e-mail address.
Msg.To = txtTo.Text;
Msg.Subject = txtSubject.Text;
Msg.Body = txtBody.Text;
// your remote SMTP server IP.
SmtpMail.SmtpServer = "10.20.72.1";
SmtpMail.Send(Msg);
}
catch (Exception ex)
{
}
}
Abhineet SrivastavaPosted Aug 26, 2013, 7:40 AM
Kindly go through this-
http://www.afterlogic.com/mailbee-net/docs/direct_send.html
Cheers