is there a reason that gmail, yahoo, and hotmail email accounts are being blocked using the form mailed installed with nop? I get all the emails from paid emails but these are blocked...is there a way around this? what do i need to do to fix it?
1. Open \Modules\ContactUs.ascx.cs file 2. Replace "MailAddress from = new MailAddress(email, fullName);" with "MailAddress from = new MailAddress(MessageManager.AdminEmailAddress, MessageManager.AdminEmailDisplayName);"
P.S. Don't forget to save an user email (e.g. in the subject of email)
I changed the code as adviced but am still not able to send e-mail through form with a gmail account as sender. It just stays in the Message Queue . What do you mean with "P.S. Don't forget to save an user email (e.g. in the subject of email)"
Thanks,
Allan
Error from log:
[The type of log entry.] Log type: MailError [The severity of the log entry.] Severity: 11 [The log entry message.] Message: Error sending e-mail. Mailbox name not allowed. The server response was: sorry, your mail was administratively denied. (#5.7.1) [The exception details for the log entry.] Exception: System.Net.Mail.SmtpException: Mailbox name not allowed. The server response was: sorry, your mail was administratively denied. (#5.7.1) at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response) at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, String from) at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception) at System.Net.Mail.SmtpClient.Send(MailMessage message) at NopSolutions.NopCommerce.Common.Messages.MessageManager.SendEmail(String Subject, String Body, MailAddress From, MailAddress To, List`1 bcc, List`1 cc) in D:\Work\Own\NopCommerce\Solution\PublishedSite\Solution\Libraries\Nop.Common\Messages\MessageManager.cs:line 817 at NopSolutions.NopCommerce.Common.Messages.SendQueuedMessagesTask.Execute(XmlNode node) in D:\Work\Own\NopCommerce\Solution\PublishedSite\Solution\Libraries\Nop.Common\Messages\SendQueuedMessagesTask.cs:line 61