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 (Zatvorena) (Mono Support )

14230 put(a) pogledan, 7 odgovor(a) 6.3.2012. 20:40:59Kreirao(la) HüseyinDursun
HueseyinDursun

HüseyinDursun

6.3.2012. 20:40:59
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...
Ovaj sadržaj još nije ocijenjen. 
450 Reputacija 66 Ukupno objava
imarusic

imarusic

6.3.2012. 22:23:45
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.
Ovaj sadržaj još nije ocijenjen. 
3016 Reputacija 428 Ukupno objava
HueseyinDursun

HüseyinDursun

7.3.2012. 6:55:06

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)

Ovaj sadržaj još nije ocijenjen. 
450 Reputacija 66 Ukupno objava
imarusic

imarusic

7.3.2012. 8:42:12
Hi,

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

<add key="MailFromAddress" value="email@yourdomain.com" />
Ovaj sadržaj još nije ocijenjen. 
3016 Reputacija 428 Ukupno objava
HueseyinDursun

HüseyinDursun

7.3.2012. 13:55:03
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...
Ovaj sadržaj još nije ocijenjen. 
450 Reputacija 66 Ukupno objava
denis

denis

7.3.2012. 19:08:06
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?
Ocjena 5,00, 1 glas(ova). 
7207 Reputacija 956 Ukupno objava
HueseyinDursun

HüseyinDursun

7.3.2012. 20:32:40
Success..

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

Thanks a lot....
Ovaj sadržaj još nije ocijenjen. 
450 Reputacija 66 Ukupno objava