DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 02 Aug 2007 17:54:26 -0000,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    unknown
          2    Göran Andersson


about sending smtp mail   
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  No such user here
Date:Thu, 02 Aug 2007 17:54:26 -0000   Author:  

Re: about sending smtp mail   
miladhatam@gmail.com wrote:

> 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  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.

-- 
Göran Andersson
_____
http://www.guffa.com
Date:Thu, 02 Aug 2007 22:04:29 +0200   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us