4/24/2012 11:41:47 PM
322
Reputation
36
Total posts
Hi,
From reading other posts, it seems like the web.config settings needed are:
<
appSettings
>
<
add
key
=
"MailFromAddress"
value
=
"mygmailname@gmail.com"
/>
<
add
key
=
"EnableSmtpSSL"
value
=
"true"
/>
</
appSettings
>
<
system.net
>
<
mailSettings
>
<
smtp
deliveryMethod
=
"Network"
from
=
"mygmailname@gmail.com"
>
<
network
host
=
"smtp.gmail.com"
userName
=
"mygmailname@gmail.com"
password
=
"mygmailpassword"
port
=
"587"
enableSsl
=
"true"
defaultCredentials
=
"false"
/>
</
smtp
>
</
mailSettings
>
</
system.net
>
but I am getting the following error:
2012-04-25 09:23:41,404 [23] ERROR MonoX [admin] - An error has occured while sending you an e-mail. Please try again, if the problem persists, please contact us.
at MonoSoftware.MonoX.Mail.MonoXMailSender.SendMail(MailMessage mailMsg)
at MonoSoftware.MonoX.ModuleGallery.ContactFormModule.btnSend_Click(Object sender, EventArgs e)The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. nv9sm15781248pbb.35
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)
I have checked the web.config settings by successfully sending an email using this code:
protected
virtual
void
SendTestEmail(
object
sender, EventArgs e)
{
//test sending email using gmail in web.config - works!
MailMessage mailMsg =
new
MailMessage();
mailMsg.To.Add(
"myhotmailname@hotmail.com"
);
mailMsg.Subject =
"Subject"
;
mailMsg.Body =
"Hi there, blah blah blah ... Regards me"
;
mailMsg.IsBodyHtml =
true
;
SmtpClient client =
new
SmtpClient();
client.Send(mailMsg);
}
Is there another monox setting that I am missing to get the contact page to send an email?
I am using MonoX v4.7.40.3486 [4/18/2012], DB v4.7.3321
Rating history (Content is rated 0.00 of 0 vote(s).)
Shows who have rated the content, and the rating score.