Go Back   iTrader Forums » iTrader Chat » General Chit Chat » Programming PHP | PERL | ASP| ColdFusion| C++

Programming PHP | PERL | ASP| ColdFusion| C++ Chat with other forum members about programming.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 7th August 2008, 07:08 PM
Junior Member
 
Join Date: Aug 2008
Posts: 1
Credits: 0
Default Error Sending Mail ,ASP.Net 2.0

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/
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:11 AM. Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
Ad Management by RedTyger


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72