Hi
Is it possible to send email if I have IP address in place of smtp .
Kritika
Smpt for sending email in c#
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Abhineet SrivastavaRank #1,890 · 783 reputationPosted Aug 26, 2013, 3:40 AM EDT
Kindly go through this-
http://www.afterlogic.com/mailbee-net/docs/direct_send.html
Cheers
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Aug 26, 2013, 3:40 AM EDT
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)
{
}
}
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 26, 2013, 3:41 AM EDT
If you have mail server ip address then it will be possible.
Regards,
Iftikar