However, I am able to use my emailing system. For example the Contact Us works on my site. So if mailbox is unavailable why can I use it otherwise?
Thanks Eyal On Mar 13, 2:25 am, Ricardo Lopes <[email protected]> wrote: > The problem is from your mail server: > > "Mailbox unavailable. The server response was: No such user here" > > 2009/3/13 eyal <[email protected]>: > > > > > > > Hi All > > > I have a module where one user sends a message to another user. The > > From email address is of the any sender to a friend's email address. > > However Im getting the following error > > > Im getting the following error: > > Castle.MonoRail.Framework.MonoRailException: Error sending e-mail ---> > > System.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The > > server response was: No such user here at > > System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, > > MailAddressCollection recipients, String deliveryNotify, > > SmtpFailedRecipientException& exception) at > > System.Net.Mail.SmtpClient.Send(MailMessage message) at > > Castle.Components.Common.EmailSender.Smtp.SmtpSender.Send(Message > > message) at Castle.MonoRail.Framework.Services.MonoRailSmtpSender.Send > > (Message message) at Castle.MonoRail.Framework.Controller.DeliverEmail > > (Message message) --- End of inner exception stack trace --- at > > Castle.MonoRail.Framework.Controller.DeliverEmail(Message message) at > > SN.Controllers.TellAFriendController.sendMultiEmails(Int32 adId, > > String title, String message, String myEmail, String friendEmails) > > SN .Controllers.TellAFriendController.Send(TellAFriend friendFromPage) > > > My config file is as follow: > > <monorail smtpHost="mail.mysite.com" > > smtpUsername="[email protected]" ... > > > My function: > > private void sendMultiEmails(int ItemId, string title, string > > message, string myEmail, string friendEmails) > > { > > PropertyBag["ItemId"] = ItemId; > > PropertyBag["title"] = title; > > PropertyBag["message"] = message; > > PropertyBag["myemail"] = myEmail; > > > //create email array by detecting commas. > > string[] emailArray = Regex.Split(friendEmails, ","); > > > for (int i = 0; i < emailArray.Length; i++) > > { > > Message msg = RenderMailMessage("senditem", null, > > PropertyBag); > > msg.To = emailArray[i]; > > msg.From = myEmail; > > msg.Subject = title; > > DeliverEmail(msg); > > } > > } > > > Thanks > > > Eyal > > -- > > Ricardo Lopes --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
