VS.NET 2002/2003Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1).
** Please don't post code questions here **
For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
I just tried it at home (the first error was shown when I tried it at my school's PC). It said,
System.Web.HttpException: Could not access 'CDO.Message' object. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x8004020F): The server rejected one or more recipient addresses. The server response was: 550 not local host yahoo.com, not a gateway --- End of inner exception stack trace --- at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object args, Boolean byrefModifiers, Int32 culture, String namedParameters) at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object args, ParameterModifier modifiers, CultureInfo culture, String namedParameters) at System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String methodName, Object args) --- End of inner exception stack trace --- at System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String methodName, Object args) at System.Web.Mail.CdoSysHelper.Send(MailMessage message) at System.Web.Mail.CdoSysHelper.Send(String from, String to, String subject, String messageText) at System.Web.Mail.SmtpMail.Send(String from, String to, String subject, String messageText) at sandownregency.com.au.WebForm1.Page_Load(Object sender, EventArgs e)
what is exactly the fault?
yea, i just figured it out. I tried to use my client's email as the receiver and it works(my client's email is on the mail server) (but I haven't checked whether my email was actually really sent, because I forgot my client's email password). Why does the server (mail.i.net.au) does not want to send any email outside its 'boundary'?
Becuase it is configured correctly to prevent spammers from using it as a gateway to flood the internet with spam. If every email server was configured properly (like this) we would find the volume of spam would plummet.
I also got this problem. but this prob come due to access permission of your smtp server.
the program is unable to access the smtp server. so it's better to configure your local server and test it out.