Hi
I want to send email with some other smtp server not by gmail mail so guide me writing the correct smtp and port name
kritika
Loading
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 attend5days leftRegister
Abhineet SrivastavaRank #1,890 · 783 reputationPosted Aug 26, 2013, 3:47 AM EDT
You can do it like this
MailMessage message = new MailMessage(mailfrom, mailto, mailsubject, mailmessage);
message.IsBodyHtml = true;
SmtpClient emailClient = new SmtpClient(ConfigurationManager.AppSettings["SmtpIpAddress"]//Your smtp Id);
try
{
emailClient.Send(message);
}
catch (Exception err)
{ }
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Aug 26, 2013, 3:59 AM EDT
refer to this link some smtp server detail list is there.
http://www.c-sharpcorner.com/Blogs/11152/sending-email-with-html-body-in-Asp-Net-and-list-of-smtp-hos.aspx
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 26, 2013, 4:06 AM EDT
It is same as gmail, only you need to different SMTP server address and port no. And credentials if it is required.
Regards,
Iftikar
kritika RanaRank #7,001 · 251 reputationPosted Aug 26, 2013, 4:10 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 26, 2013, 4:15 AM EDT
http://wiki.sportingpulse.com/index.php/Find_your_Outgoing_Mail_Server_(SMTP)_Address
Regards,
Iftikar
kritika RanaRank #7,001 · 251 reputationPosted Aug 26, 2013, 11:28 PM EDT
I tried the link but it is blocked in outlook to view smtp and port name. Is there any other way to know this.
Kritika
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Aug 26, 2013, 11:29 PM EDT
kritika RanaRank #7,001 · 251 reputationPosted Aug 26, 2013, 11:32 PM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 26, 2013, 11:32 PM EDT
Regards,
Iftikar
kritika RanaRank #7,001 · 251 reputationPosted Aug 26, 2013, 11:33 PM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 26, 2013, 11:34 PM EDT
kritika RanaRank #7,001 · 251 reputationPosted Aug 26, 2013, 11:37 PM EDT
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Aug 26, 2013, 11:42 PM EDT
you can try this link. it may help you.
http://www.c-sharpcorner.com/Blogs/11147/send-email-in-Asp-Net-by-your-ip-without-email-id-and-passwo.aspx
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 26, 2013, 11:45 PM EDT