Hii Frd'sI Have One Problem to Sending a mail using asp.net 2.0.i am developing tell a frd. control.As Common there are one sender and multiple Recipent the coding are Below :- MailMessage mMailMessage = new MailMessage(); // Set the sender address of the mail message Mostly Yahoo Account mMailMessage.From = new MailAddress(txt_form.Text); // Set the recepient address of the mail message Mostly Yahoo Account mMailMessage.To.Add(new MailAddress(txt_to.Text)); // Check if the bcc value is null or an empty string // Check if the cc value is null or an empty value // Set the subject of the mail message mMailMessage.Subject = "Hi"; // Set the body of the mail message mMailMessage.Body = "Hi"; // Secify the format of the body as HTML mMailMessage.IsBodyHtml = true; // Set the priority of the mail message to normal mMailMessage.Priority = MailPriority.Normal; // Instantiate a new instance of SmtpClient SmtpClient mSmtpClient = new SmtpClient(); // Send the mail message mSmtpClient.Send(mMailMessage);In Web Config.The Problem With This Coding is in't throw an error :-System.Net.Mail.SmtpFailedRecipientException: Mailbox name not allowed. The server response was: 5.7.1 : Sender address rejected: not owned by user myaddress. if we think this is Right Error Because i not have sender login name and password then howi developed this one?
http://www.webaspdotnet.blogspot.com/