Hi Joe,
I have the following environment and experiencing problem with email config.
=> mojoPortal Version 2.3.5.3 MSSQL, running on IIS7, .Net 4.0 (upgraded) at godaddy
i put the email settings as follows:
<add key="DisableDotNetOpenMail" value="true"/> -tried with false as well
<add key="SMTPServer" value="smtp.gmail.com"/>
<add key="SMTPRequiresAuthentication" value="true"/>
<add key="SMTPUseSsl" value="true"/>
<add key="SMTPPort" value="587"/>
<add key="SMTPUser" value="myacct@gmail.com"/>
<add key="SMTPPassword" value="mypass"/>
<add key="SMTPTimeoutInMilliseconds" value="30000"/>
<system.net>
<mailSettings>
<smtp from="myacct@gmail.com">
<network host="smtp.gmail.com" port="587" password="mypassword" userName="myacct@gmail.com"/>
</smtp>
</mailSettings>
</system.net>
I set the admin account, in the site configuration with myacct@gmail.com.
regardless of the DisableDotNetOpenMail setting, i observe only the system.net mail component running, and not dotnetopenmail, is this depreciated in the .net4 version of mojoportal?
I tried different smtp servers, our exchange server, host provider's smtp, yahoo and gmail. in all cases, i am getting the following error:
2010-10-05 04:15:45,184 ERROR mojoPortal.Net.Email - error sending email to validtestemail]@yahoo.com from myacct@gmail.com, will retry
2010-10-05 04:16:51,346 ERROR mojoPortal.Net.Email - all retries failed sending email to validtestemail@yahoo.com from myacct@gmail.com, message was: Thank You for Registering with !
Your Registration will be confirmed by clicking the link below to unlock your account.
This is to prevent other people from Registering with your email address.
http://www.acbfpact.org/ConfirmRegistration.aspx?ticket=de414f9a-2aae-40f1-9828-b6eb60d889c3
System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 74.125.67.109:587
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout)
at System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback)
at System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback)
at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout)
at System.Net.Mail.SmtpConnection.GetConnection(ServicePoint servicePoint)
at System.Net.Mail.SmtpTransport.GetConnection(ServicePoint servicePoint)
at System.Net.Mail.SmtpClient.GetConnection()
at System.Net.Mail.SmtpClient.Send(MailMessage message)
--- End of inner exception stack trace ---
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at mojoPortal.Net.Email.Send(SmtpSettings smtpSettings, String from, String replyTo, String to, String cc, String bcc, String subject, String messageBody, Boolean html, String priority, String[] attachmentPaths, String[] attachmentNames)
Thanks