about sending smtp mail

M

miladhatam

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 = "(e-mail address removed)";
string to = "(e-mail address removed)";
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="(e-mail address removed)"
password="xxxxx"
/>
</smtp>
</mailSettings>
</system.net>
</configuration>



}my error

The server rejected one or more recipient addresses. The server
response was: 550 <[email protected]> No such user here
 
G

Guest

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 <[email protected]> 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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top