Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / August 2007

Tip: Looking for answers? Try searching our database.

about sending smtp mail

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
miladhatam@gmail.com - 02 Aug 2007 18:54 GMT
i have a web project that sending a mail is a necessary work
but i have an error
this is my page
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Web.Mail;
using System.Net.Configuration;

public partial class mail : System.Web.UI.Page
{
   protected void Page_Load(object sender, EventArgs e)
   {
       string from = "farazedanesh@farazedanesh.org";
       string to = "miladhatam@gmail.com";
       string subject = "Hi!";
       string body = "How are you?";
       SmtpMail.SmtpServer = "mail.farazedanesh.org";

       SmtpMail.Send(from, to, subject, body);
  {
and web.config
<configuration>
 <system.net>
   <mailSettings>
     <smtp deliveryMethod="network">
       <network
         host="mail.farazedanesh.org"

         userName="farazedanesh@farazedanesh.org"
         password="xxxxx"
       />
     </smtp>
   </mailSettings>
 </system.net>
</configuration>

}my error

The server rejected one or more recipient addresses. The server
response was: 550 <miladhatam@gmail.com> No such user here
Göran Andersson - 02 Aug 2007 21:04 GMT
> i have a web project that sending a mail is a necessary work
> but i have an error
> this is my page

8< snip

> }my error
>
> The server rejected one or more recipient addresses. The server
> response was: 550 <miladhatam@gmail.com> No such user here

That means exactly what the error message says. There is no such user.
You are trying to send a message to an address that doesn't exist.

Signature

Göran Andersson
_____
http://www.guffa.com


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.