Wrox Programmer Forums
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 27th, 2007, 07:07 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

And??

You're not really communicating here. You're posting code and not providing much useful information. On that basis, I can't really help.

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
 
Old October 27th, 2007, 07:29 AM
Authorized User
 
Join Date: Oct 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hello sir i am raghuvar

actually i am createing a form to send mail in ASP.net but i am getting an error

"The server rejected one or more recipient addresses. The server response was: 451 Greylisted, please try again in 300 seconds "

so what is the solution of this please tell me early.

The code which are using tosend mail is given below.



MailMessage M = new MailMessage();
        M.To = "info@softindigo.com";
        M.From = "sumit@yahoo.com";
        M.Subject = "how are you raghuvar";
        M.Body = "raghuvar you are working where";
        M.BodyFormat = MailFormat.Html;
        try
        {
            SmtpMail.SmtpServer = "mail.softindigo.com";//mail.softindigo.com is the smtpservername
            SmtpMail.Send(M);
            Response.Write("mail send sucessfully");
        }
        catch (Exception ex)
        {
            Response.Write(ex.Message);
        }
        }



 
Old October 27th, 2007, 07:37 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Error in forum posts, OP is stuck in a loop....

If you want, we can play this game for ever. You post code and an error message, and I ask you if you've read the error message and understand what it is saying.

Did you? What does it tell you? Did you try to Google for it? Can you provide more information? Can you tell us if the e-mail accounts you are using are valid and available? Can you tell us if you are allowed to use the SMTP server you are using? Can you tell us if you can send e-mail to these account with other means (e.g. a normal mail client) Can you tell us if you are indeed black or grey listed because you or your provider have sent spam in the past? Bla bla bla bla and so on and so forth.

Bottom line: simply dumping code and error messages isn't going to get you far on this forum. Please post a *relevant* question, that shows you have done some research yourself in order to understand the problem. Take a look here for some great ideas: http://www.catb.org/~esr/faqs/smart-questions.html

Without all that, I can't help you.

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
 
Old October 27th, 2007, 09:56 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

In my experience, a mail server will reject a mail send request when one of these conditions is met:

1) You are connecting to the mail server that is responsible for the domain of the address you are sending to and the address/account does not exist. A mail server can verify the existence of an address ONLY for those domains it is responsible for.

2) The mail server does not permit mail relay. This is typical to happen when you try to use the SMTP server address of the mail server that you normally use to GET your mail. Often the mail server authenticates your POP3 session and will thereafter accept an SMTP send request from the same client. In the case of sending mail with .NET there is no incoming POP3 connection to authenticate the client (I.E. the machine your program is running on). You will need to find out if your SMTP server supports authenticated SMTP connections.

There are very likely other cases where a server can reject a send request, but these are the two most likely and most common ones.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
mailing manish_partey ASP.NET 1.0 and 1.1 Professional 1 April 25th, 2007 08:20 AM
Mailing prashanth_kumarbv Classic ASP Basics 2 October 27th, 2006 08:40 PM
E-mailing reports Brendan Bartley Access 5 June 26th, 2006 01:37 PM
Setup Project: Program not added in Start>Program arif_1947 VS.NET 2002/2003 2 March 31st, 2005 06:40 AM
SMTP not mailing...help! c_bananas .NET Web Services 5 November 17th, 2003 01:28 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.