about sending smtp mail

Discussion in 'ASP .Net' started by miladhatam@gmail.com, Aug 2, 2007.

  1. Guest

    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 = "";
    string to = "";
    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=""
    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
    , Aug 2, 2007
    #1
    1. Advertising

  2. 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
    =?UTF-8?B?R8O2cmFuIEFuZGVyc3Nvbg==?=, Aug 2, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Scott Allen
    Replies:
    2
    Views:
    2,217
    =?Utf-8?B?c2FtaWtkdXQ=?=
    Feb 17, 2004
  2. Replies:
    3
    Views:
    1,065
    Roedy Green
    Jan 24, 2006
  3. Alex Hunsley
    Replies:
    4
    Views:
    3,455
    Tim Williams (gmail)
    Jun 29, 2004
  4. Raaijmakers, Vincent \(GE Infrastructure\)

    RE: sending of mail (smtp) - connection refused - but smtp serveris running!

    Raaijmakers, Vincent \(GE Infrastructure\), Jun 29, 2004, in forum: Python
    Replies:
    0
    Views:
    876
    Raaijmakers, Vincent \(GE Infrastructure\)
    Jun 29, 2004
  5. Replies:
    0
    Views:
    1,356
Loading...

Share This Page