Re: Simple XMOD form - Email SMTP Error: Mailbox Unavailable
Hi everyone,
In Host > Settings - the Test Email button works OK !
It is using Basic Authentication with a Userid / password.
I'm using a DNN XMOD module form www.dnndev.com to send emails when a form is submitted
but I'm getting Event Viewer error when submitting the form.
Mailbox unavailable. The server response was: <xxx@crowncomputers.com> No such user here
Is there some security in the Email Server that would cause this ?
Code Below: xxx and yyy block out real email names
<form>
<controls>
<input ref="name">
<label>name</label>
</input>
<email target="xxx@crowncomputers.com" from="yyy@crowncomputers.com" subject="CrownHost DNN Email Test">
<content format="html">
<literal>
<h2>Test Email CrownHost DNN Site:</h2>
<p>Customer Name: <xmod:field name="name"/></p> <br />
</literal>
</content>
</email>
</controls>
</form>
But when submitting the test XMOD form, the Event Viewer error shows:
InnerException: Mailbox unavailable. The server response was: <xxx@crowncomputers.com> No such user here
FileName:
FileLineNumber: -1
FileColumnNumber: -1
Method:
StackTrace:
Message: System.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The server response was: <xxx@crowncomputers.com> 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 DotNetNuke.Services.Mail.Mail.SendMail(String MailFrom, String MailTo, String Cc, String Bcc, String ReplyTo, MailPriority Priority, String Subject, Mailformat Bodyformat, Encoding BodyEncoding, String Body, String[] Attachment, String SMTPServer, String SMTPAuthentication, String SMTPUsername, String SMTPPassword, Boolean SMTPEnableSSL)
Source:
Server Name: WEBSERVER
Appreciate any ideas on how to resolve this ?
Thanks, LA Guy