Unable To Send Email Error - 0xC00402C7

Sep 24, 2010

I am trying to send a simple email through the following code:

protected void email_Click(object sender, EventArgs e)
{
System.Net.Mail.MailMessage msgMail = new System.Net.Mail.MailMessage();
msgMail.From = new System.Net.Mail.MailAddress("veerab@orbees.com");
msgMail.To.Add(new System.Net.Mail.MailAddress("murthyp@orbees.com"));
msgMail.Subject = "Request:Joing into the myitem.Title.ToString()";
msgMail.IsBodyHtml = true;
string strBody = "test mail";
msgMail.Body = strBody;
System.Net.Mail.SmtpClient client = new System.Net.Mail.SmtpClient();
}

I have installed the SMTP server on my local machine. The folders in mail root have all the permissions. My mails stay in the Queue folder for sometime and then they go to the Badmail folder. I am receiving the following error: Unable to deliver this message because the follow error was encountered: "This message is a delivery status notification that cannot be delivered.". The specific error code was 0xC00402C7. The message sender was <>. The message was intended for the following recipients.

View 1 Replies


Similar Messages:

Can't Send Smtp Email From Network Using C# Error / Unable To Connect To The Remote Server

Apr 1, 2010

I have my code here, it works fine from my home, where my user is administrator, and I am connected to internet via a cable network.

But, problem is when I try this code from my work place, it does not work. Shows error:

"unable to connect to the remote server"

From a different machine in the same network:

"A socket operation was attempted to an unreachable network 209.xxx.xx.52:25"

I checked with our network admin, and he assured me that all the mail ports are open [25,110, and other ports for gmail].

Then, I logged in with administrative privilege, there was a little improvement, it did not show any error, but the actual email was never received.

note that, the code was tested from development environment, visual studio 2005 and 2008.

try
{
MailMessage mail_message = new MailMessage("xxxxx@y7mail.com", txtToEmail.Text, txtSubject.Text, txtBody.Text);
SmtpClient mail_client = new SmtpClient("SMTP.y7mail.com");
NetworkCredential Authentic = new NetworkCredential("xxxxx@y7mail.com", "xxxxx");
mail_client.UseDefaultCredentials = true;......

View 4 Replies

Error "Unable To Read Data From The Transport Connection: Net_io_connectionclosed" When Trying To Send Email

Oct 9, 2010

I'm trying to send an email from my ASP.NET website using the following code (obviously replacing the hostname, username and password with the actual values):

Public Shared Sub Send(ByVal ToEmail As String, ByVal FromEmail As String, ByVal Subject As String, ByVal Message As String)
Dim mm As New MailMessage(FromEmail, ToEmail, Subject, Message)
Dim smtp As New SmtpClient("hostname")
smtp.Credentials = New NetworkCredential("username", "password")
smtp.Send(mm)
End Sub

When trying to send out the mail I'm receiving this error: "Unable to read data from the transport connection: net_io_connectionclosed."

View 3 Replies

Unable To Send An Email From .net Using A Google Apps Email?

Jan 16, 2011

I am trying to send an email from asp.net using a google apps email.

I found this question which did not resolve the issue
Send Email via C# through Google Apps account

The part that I am really confused about is that it works with these settings

<smtp from="****@gmail.com" deliveryMethod="Network">
<network host="smtp.gmail.com" port="587"
userName="****@gmail.com" password="****"[code]....

and get the following error message

"The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required."

I found this article as well http://www.google.com/support/forum/p/Google+Apps/thread?tid=2cbb54572fea6939&hl=en and worked through this but that did not resolve me issue either.

View 1 Replies

Web Forms :: Unable To Send Email With Attachment

Jan 26, 2011

I have a strange problem with sending email via asp.net.

I adding to my email an attachment with long name ("Xxxxxxxx ąę łóxxxx yyyyyyyyyńęąąyy bbbbbbbbbb b wwwwwwwww wwwwwww ooooooooo" - polish chars included). Next I receiving that email with that file but I can't read the file. There is like damaged, with different name - ""=_utf-8_B_WHh4eHh4eHggxIXEmSDFgsOzeHh4eCB5" and the file size is a little bigger.

View 5 Replies

Unable To Send Email With Smtp Client?

Oct 14, 2010

my website sends email just fine on another host. I should not really have to change anything to make it work on this webhost. However, I have followed the instructions for this host and it is not working. Here is my current web.config.

[Code]....

I am getting my mail message printed at the top of my browser with the correct information. Why isn't this going through the mail server?

View 5 Replies

Web Forms :: Unable To Send Email With Mail Attachments

Jun 7, 2010

I'm having some trouble with the asp.net FileUpload Control and sending email attachments.

I am able to run the following code and successfully create and attach 1 attachment to an email send mail it to myself with no problems.

[Code]....

I need to be able to handle multiple files and I am also saving the files to an sql database. I tried using multiple file upload controls (max 3) and can save the files to the database successfully, but any and all attachments that are emailed, appear corrupted in my inbox. So, I removed all the fileupload controls and left just on on the page. I created a generic List<Attachment> to store the attachments created from the fileupload control and then iterate through all entries and attach them to my email and save them to the database. Once again, saving to the database works perfectly and i can read the attachments back, but the email attachments are corrupt. Is there anything obvious that I am doing wrong?

[Code]....

View 4 Replies

Unable To Send Email From Webserver Using External SMTP?

Jul 15, 2010

I have a web application which will send email when user changes his/her passwords and also some invitation emails from the webpage.I have used VS2008 to develop this application. On my development machine the emails are send using the provided credentials as follows:

[Code]....

View 8 Replies

Web Forms :: Unable To Send Email With Domain Mail Server

May 7, 2015

I want to mail from

Emilfrom:support@foodtrove.in

Pass:*******

smtp server:smtp.foodtrove.in

pop server : pop.foodtrove.in

I  tried to send smtp but fail

try {
using (MailMessage mm = new MailMessage()) {
mm.Subject = "Account Activation";
string body = "Hello";
mm.From = new MailAddress("support@foodtrove.in");
body += "<br /><br />Please click the following link to activate your account";

[Code]....

but catch exception service not available error ...

View 1 Replies

Configuration :: Error Handling - Crendentials To Send Email When Server Error Occurs?

Nov 14, 2010

When a server error occurs for whatever reasons (YSOD), the server will send a message via SMTP class. In my case, my company employs microsoft exchange and uses NTLM authentication for all domain users. I am authenticating users via NTLA windows integrated authentication. My question is, is it possible to utilize this authentication data, and pass it to the system.web SMTP username/password authentication scheme to send an email to me (the web developer) when the error occurs? I am pretty sure my company requires a username/pwd to send emails via SMPT on the ms exchange server.

View 1 Replies

Elmah - Catch An Error But Still Log It And Send Email?

Feb 24, 2011

First I found that you can catch it and log it inside a catch, but this doesn't send an email.
Then I found out about using the Error Signal class. That worked, however what wasn't apparent from reading, is that it treats the error like normal, so when I signal the error it goes to the custom error page still, I don't want that to happen. What I want to do is catch that error, log it, send the email, but stay on the page the error happened so I can provide special feedback. I do not want it go to the custom error page.

EDIT: This is what I have and it redirects me to the custom error page.

Try
smtpClient.Send(mailMessage)
Catch smtpEx As SmtpException
errorSignal.FromCurrentContext().Raise(smtpEx)
Catch ex As Exception
errorSignal.FromCurrentContext().Raise(ex)
End Try

Edit: Posting my web.config sections that involve Elmah (besides the connection string hah)
And there is nothing in my Global.asax file involving Elmah.

<configSections>
<sectionGroup name="elmah">
<section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" />
<section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" />
<section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" />
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" />
</sectionGroup>
</configSections>
<elmah>
<security allowRemoteAccess="1" />
<errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName="Elmah.Sql" applicationName="Web Main" />
<errorMail from="xxx" to="xxx" cc="xxx" subject="main website error" async="true" smtpPort="25" smtpServer="xxx" userName="xxx" password="xxx" />
<errorFilter>
<test>
<and>
<equal binding="HttpStatusCode" value="404" type="Int32" />
<regex binding="FilterSourceType.Name" pattern="mail" />
</and>
</test>
</errorFilter>
</elmah>
<httpHandlers>
<add verb="POST,GET,HEAD" path="errors/admin/elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
</httpHandlers>
<httpModules>
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />
</httpModules>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" />
</modules>
<handlers>
<add name="Elmah" path="elmah/admin/elmah.axd" verb="POST,GET,HEAD" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />
</handlers>
<httpErrors>
<remove statusCode="404" subStatusCode="-1" />
<remove statusCode="500" subStatusCode="-1" />
<error statusCode="500" prefixLanguageFilePath="" path="/errors/error.asp" responseMode="ExecuteURL" />
<error statusCode="404" prefixLanguageFilePath="" path="/global/404.aspx" responseMode="ExecuteURL" />
</httpErrors>
</system.webServer>
<location path="errors/admin/elmah.axd">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>

View 2 Replies

Web Forms :: Got Error While Tried To Send Email Through SMTP

May 16, 2012

Got Error while tried to send email through smtp 

my code is >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Protected Sub Submitbutton_Click(sender As Object, e As System.EventArgs) Handles Submitbutton.Click
        Dim EMail1 As New MailMessage
        EMail1.From = New MailAddress("Receiver")
        EMail1.[To].Add(New MailAddress("Sender"))
      EMail1.Subject = Firstnametextbox.Text + lastnametextbox.Text + "Register "
        EMail1.Body = " This is content "

[Code] .....       

View 1 Replies

Security :: Create User Wizard Error Won't Send Confirmation Email?

Aug 18, 2010

I have create user wizard control on my page as below with mail definition setup to send a welcome email to new registerd user.

<asp:CreateUserWizard ID="CreateUserWizard1" runat="server"
requiresQuestionAndAnswer= "false"
oncreateduser="CreateUserWizard1_CreatedUser" LoginCreatedUser="False">
<MailDefinition BodyFileName="~/EmailTemplates/CreateUserWizard.txt"
From="myemailaddress" Subject="New User">
</MailDefinition>
<WizardSteps>
<asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server" >
<ContentTemplate>
layout content here
</
ContentTemplate>
</WizardSteps
>
</asp:CreateUserWizard
>
Problem is I am not receiving the welcome email.
To test it, I placed another create user wizard on another page in its default form
as below
<asp:CreateUserWizard ID="CreateUserWizard1" runat="server">
<MailDefinition BodyFileName="~/EmailTemplates/CreateUserWizard.txt"
From="myemailaddress" Subject="New User">
</MailDefinition>
<WizardSteps>
<asp:CreateUserWizardStep runat="server" />
<asp:CompleteWizardStep runat="server" />
</WizardSteps>
</asp:CreateUserWizard>

This one worked and I got welcome email. The setup in Web Config is correct. Is it because I have the oncreateduser="CreateUserWizard1_CreatedUser" or some other conflict issue.

View 1 Replies

Web Forms :: How To Send Group Of SMS And Email To Many People At The Time Of Error Occurs

Aug 12, 2013

How to send group of sms and email to many people at the time of error occurs in my application (vb.net) so the everyone get alert...

View 1 Replies

Configuration :: Unable To Start Debugging On The Web Server - Unexpected Error Occurred On A Send

Jan 13, 2011

I have application developed in vs 2005, when i try to run it throws below error.

"Unable to start debugging on the web server. The underlying connection was closed: An unexpected error occurred on a send."

View 2 Replies

Mailbox Unavailable. The Server Response Was: 5.7.1 Unable To Relay For (email Address) / How To Fix This Error

Jan 8, 2010

i have a form which sends an email I'm getting error

Mailbox unavailable. The server response was: 5.7.1 Unable to relay

View 3 Replies

Web Forms :: SMTP Email Error - Unable To Read Data From Transport Connection

May 7, 2015

I can not send mail, this error means ?

Code:

using (MailMessage mm = new MailMessage("soporte@linknred.com", correo1.Text.Trim()))
{
mm.Subject = "Activacion de Cuenta";
string body = "Hola " + correo1.Text.Trim() + ", " + "Bienvenido a LinknRed";
body += "<br /><br />Por Favor haz Click en el Enlace Siguiente Para Activar Tu Cuenta";

[Code] ....

View 1 Replies

Web Forms :: Send Email With Arabic (Persian) Text In Email Body

May 7, 2015

I followed this link, it works fine with English Text. [URL] ....

My problem is when I am adding Arabic text to the message body it displays ???? format.

View 1 Replies

AJAX :: Send Email From Modal PopUp Contact Email Form In Master Page

May 7, 2015

how Can i Send Email With Message Using Master Page in Asp.net?

EMail Sending PopUp Open In All Pages To Provide The User Sending Email Facility From All Pages...

View 1 Replies

Web Forms :: Send Forgot Password Email To Multiple Domain Email Addresses Using Single Program

Mar 31, 2013

i have code for forgot password using gmail account. But i want to send password for multiple domains like yahoo,rediffmail and more.

View 1 Replies

Web Forms :: How To Embed Chart In Email Body And Send Email

May 7, 2015

how to display Chart in Email body and excel attachment.

View 1 Replies

Web Forms :: Send Email To Persons Email Address In TextBox

Jun 17, 2012

i will enter an email address in textbox i have button on the click of button i would like to send a mail Hello to the mail address provider

View 1 Replies

PayPal Test Example Is Not Working - Getting Error / Unable To Send To PayPal

Nov 1, 2010

I was having trouble getting my shopping cart to connect to paypal. So I wrote a simple webform that has one button and one label. If I comment out the response.redirect(url) and look at the content that get written to Lable1.Text it looks find. Also, if I copy the content of the label and paste it into my web browser it goes to Paypal and displays correctly.

However, if I uncomment the response.redirect(url) I get the following error: ERROR: Unable to Send to PayPal - Thread was being aborted.

I am testing from localhost??? Should I be able to test this from localhost?

I have put ??? where my Sandbox email address is.....I don't know if letting other see that or not is an issue....otherwise I would have left it in for someone to try this code.

[Code]....


This is what displays in the lable1.text when response.redirect is commented out

[URL]

View 2 Replies

How To Send An Email To Distribution List Instead Of Email Address

Mar 22, 2010

in my web i want to send email to distribution list instead of email addresthis is my code:

message.From = New MailAddress("Innovate_Web@KISR.EDU.KW")
message.To.Add(New MailAddress("mmahdi@safat.kisr.edu.kw"))
'message.To.Add(New MailAddress("innovate@safat.kisr.edu.kw"))
message.Subject = "Email from contact page in Innovate Web"
message.BodyEncoding = Encoding.UTF8
[code]...

View 5 Replies

Web Forms :: Send Email Without Sender Email Address

Sep 20, 2012

These are sender settingcode in web.config

<configuration>
<appSettings>
<add key="Host" value="smtp.gmail.com"/>
<add key="EnableSsl" value="true"/>
<add key="UserName" value="neda@gmail.com"/>
<add key="Password" value="xxxx"/>
<add key="Port" value="587"/>
</appSettings>
<connectionStrings/>

here is sender email but i want there wasn't any email address.I mean i want when users click on button and send me an email there wasn't any email address in sender details.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved