email problems

Discussion in 'ASP.NET / ASP.NET Core' started by ccoacorg000, Mar 9, 2006.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I have aclub web site where a member logs in and schedules a club event and the event information gets e-mailed to other members. Typically the email has about 50 recipients. I am using aspNetEmail 3.5. The From address is [email protected]. This is an email address that was automatically set up with my discountasp.net web site.

    I tested it a few weeks ago and it was working just fine. Today it is failing.

    The code looks like this:

    aspNetEmail.EmailMessage Message = new aspNetEmail.EmailMessage();
    Message.Server = msgServer;
    Message.FromAddress = msgFrom;
    Message.ValidateAddress = false;
    Message.To = msgTo;
    Message.Subject = "CCOAC Event - " + newEvent.EventName;
    Message.Body = "This event has just been scheduled. ";
    Message.Body = "The scheduled date, time or location of this event has changed. ";
    Message.Body += "You have been notified of this event because you have either already signed up for this event or you have requested ";
    Message.Body += "to be notified of these types of events. Visit http://www.ccoac.org/member/eventcalendar.aspx for details.";
    if (Message.Send() == false)
    throw new Exception(Message.LastException().Message);

    where the msgServer = "mail.ccoac.org" msgFrom= "[email protected]" and msgTo = a big long list of semicolon separated email addresses.

    I am logging the problem as follows:

    Additional Help:553 sorry, that domain isn't in my list of allowed rcpthosts (#5.5.3 - chkuser) ] Verify you can send email on behalf of '[email protected]' through the mail server 'mail.ccoac.org to '[email protected]'. 'mail.ccoac.org' may not allow relaying for that specific address or domain, resulting with a 500 or larger error.Your server may also require a username and password for authentication, check with your mail server administrator. For additional information, enable logging by setting EmailMessage.Logging = true and if you have file write permission set a path for EmailMessage.LogPath, then check the log. If you are sending from an ASP.NET application and do not have file write access, wrap the EmailMessage.Send() in a Try..Catch() block and call Response.Write( EmailMessage.GetLog() ) from inside or after the Catch(). To ignore this error; set IgnoreRecipientErrors = true

    I have tried setting Logging = true and I don't get anymore info on the problem.
    I have tried setting the password of the sender.
    I have tried the IgnoreRecipientErrors and it just hangs the page.

    Does anyone have any experience with sending emails like this. Any ideas on how I can get it to work somewhat reliably. Like if it fails on one or 2 recipients, the others still get the email?
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page