i have this error when i sending email through our web application
” Mailbox unavailable. The server response was: Requested action not taken: mailbox unavailable or not local”
this is detail of error
System.Net.Mail.SmtpFailedRecipientException was caught
Message=Mailbox unavailable. The server response was: Requested action not taken: mailbox unavailable or not local
Source=System
FailedRecipient=<email@email.com>
StackTrace:
at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at email.Globals.SendMail(String EmailID, String subject, String message, String senderMail) in C:location
InnerException:
I would assume that your sender credentials are not in order – if the recipient’s mailbox is unavailable, you will get an E-Mail saying so but the actual sending process should work out (if it’s not a local recipient).
If I had to guess, I’d say you are trying to send an E-Mail with a sender address belonging to a domain that is not managed by the SMTP server you are using to send the E-Mail (e.g. a GMail address).