S
Santosh
Dear all, i am wrtiing following code for the sending email from the
my asp application when i am working on the local machine i will work
fine ans send email on the mentioned address. but when i deploy it on
the server it doen not work. and also does not give any error.
MailMessage newMessage = new MailMessage();
newMessage.From =txtEmail.Text.Trim();
newMessage.To="(e-mail address removed)";
newMessage.Subject="Comments-Suggestion";
newMessage.Priority=System.Web.Mail.MailPriority.Normal;
string msgBody = txtSuggestion.Text.Trim() ;
SmtpMail.Send(newMessage);
newMessage.Body = msgBody;
please tell me what is the problem with in it.
Regards,
Santosh Shinde.
my asp application when i am working on the local machine i will work
fine ans send email on the mentioned address. but when i deploy it on
the server it doen not work. and also does not give any error.
MailMessage newMessage = new MailMessage();
newMessage.From =txtEmail.Text.Trim();
newMessage.To="(e-mail address removed)";
newMessage.Subject="Comments-Suggestion";
newMessage.Priority=System.Web.Mail.MailPriority.Normal;
string msgBody = txtSuggestion.Text.Trim() ;
SmtpMail.Send(newMessage);
newMessage.Body = msgBody;
please tell me what is the problem with in it.
Regards,
Santosh Shinde.