S
shansivamani
using SMTP to send email.
is there any settings need to be configured apart from Host name and
Port, while sending emails using SMTPClient in .Net?
when i try to send mail to ids which has only one dot in the domain
name (eg : (e-mail address removed)) there are no issues.
but when the mail ids are like ([email protected] or (e-mail address removed)) the
mail is not getting received by those ids.
also, there are no exceptions occured when i debugged it.
this is the code i have used:
MailMessage msg = new MailMessage(fromId, ToIds);
SmtpClient client = new SmtpClient();
client.Host = hostName;
client.Port = port;
client.Send(msg);
thanks,
shan
is there any settings need to be configured apart from Host name and
Port, while sending emails using SMTPClient in .Net?
when i try to send mail to ids which has only one dot in the domain
name (eg : (e-mail address removed)) there are no issues.
but when the mail ids are like ([email protected] or (e-mail address removed)) the
mail is not getting received by those ids.
also, there are no exceptions occured when i debugged it.
this is the code i have used:
MailMessage msg = new MailMessage(fromId, ToIds);
SmtpClient client = new SmtpClient();
client.Host = hostName;
client.Port = port;
client.Send(msg);
thanks,
shan