MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Contact form error (Closed) (Mono Support )

Viewed 13645 time(s), 7 post(s) 3/6/2012 8:40:59 PMby HüseyinDursun
HueseyinDursun

HüseyinDursun

3/6/2012 8:40:59 PM
Hi,

I am getting an error "Your message was not sent." while trying to send a message from the contact form. I have added my receiver e-mail using options.

Is there a smtp configuration or anything else.

Note: When registering the site, confirmation emails are sent successfully...

Thanks...
This content has not been rated yet. 
450 Reputation 66 Total posts
imarusic

imarusic

3/6/2012 10:23:45 PM
Hi,

you can find the smtp configuration in web.config file:

<mailSettings>
          <smtp deliveryMethod="Network" >
            <network host="yourmailprovider"  />
          </smtp>
        </mailSettings>

Also, you can always look at the monox log files(can be found in Portal\MonoX\ApplicationData\Logs\[yyyy-mm-dd]_MonoX.log) to see the exact exception that occurred.

Regards.
This content has not been rated yet. 
3016 Reputation 428 Total posts
HueseyinDursun

HüseyinDursun

3/7/2012 6:55:06 AM

I have already set this configuration; while registering the site e-mails are sent successfully. The problem is with the contact form. Here is the log;

2012-03-07 05:59:48,460 [43] ERROR MonoX [66.249.66.205] - Error
System.Security.SecurityException: Security error.
at MonoSoftware.MonoX.BasePage.OnInit(EventArgs e)
at MonoSoftware.MonoX.Pages.SocialNetworking.Wall.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
The Zone of the assembly that failed was:
MyComputer
2012-03-07 08:46:25,788 [118] ERROR MonoX [Okul-Online] - System.ApplicationException: Size bir e-posta gönderilmeye çalışılırken bir hata oluştu.Lütfen yeniden deneyiniz,eğer hata devam ederse, lütfen bizimle bağlantı kurunuz. ---> System.Net.Mail.SmtpException: User not local; please try a different path. The server response was: Sender address is not valid for your login. Check your email program settings.
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 MonoSoftware.Core.Mail.MailSender.SendMail(MailMessage mailMsg)
--- End of inner exception stack trace ---
at MonoSoftware.Core.Mail.MailSender.SendMail(MailMessage mailMsg)
at MonoSoftware.MonoX.ModuleGallery.ContactFormModule.btnSend_Click(Object sender, EventArgs e)

This content has not been rated yet. 
450 Reputation 66 Total posts
imarusic

imarusic

3/7/2012 8:42:12 AM
Hi,

did you set the Email from address in web.config?

<add key="MailFromAddress" value="email@yourdomain.com" />
This content has not been rated yet. 
3016 Reputation 428 Total posts
HueseyinDursun

HüseyinDursun

3/7/2012 1:55:03 PM
Yes, I have added. And I have filled the "Your E-mail (Address where to send contact requests):" box on the web part options. But it doesn't work...
This content has not been rated yet. 
450 Reputation 66 Total posts
denis

denis

3/7/2012 7:08:06 PM
Your mail server is not allowing you to relay using the value entered in the MailFromAddress. I guess that you will need to discuss this with your mail server admin. Could you try another mail server?
Rated 5.00, 1 vote(s). 
7207 Reputation 956 Total posts
HueseyinDursun

HüseyinDursun

3/7/2012 8:32:40 PM
Success..

I tried with my other mail server and it is ok now.

Thanks a lot....
This content has not been rated yet. 
450 Reputation 66 Total posts