Hello,
I am sending mail from ASP.NET. I am using Default Mail Server of IIS. Below is the code snippet.
Dim objMM As New Net.Mail.MailMessage(strfrom, strfrom, "Feedback from " & Request("j"), strmsg)
objMM.CC.Add(New Net.Mail.MailAddress("[email protected]"))
objMM.CC.Add(New Net.Mail.MailAddress("[email protected]"))
'Problem occurs when i add user2
objMM.CC.Add(New Net.Mail.MailAddress("[email protected]"))
Dim smtpMail As New Net.Mail.SmtpClient("smtp.mydomain.net")
smtpMail.Send(objMM)
I am getting the following Exception when i add [email protected]
SmtpFailedRecipientException: Mailbox unavailable. The server response was: Unknown user
I know [email protected] is valid and i have an account on that. Even i checked adding my gmail account.. I am getting mails in gmail account but not in mydomain.net account.
Can anyone tell whats wrong with mydomin.net? or do i need to configure anything for this?
Thanks