Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 5.x > Installation and deployment > SMTP Server View modes: 
User avatar
Member
Member
jgriffith-nfusion - 2/16/2012 3:55:35 PM
   
SMTP Server
I have an issue with setting up kentico to use an SMTP server. My settings are correct in CMSSiteManager > Settings > Emails because I am able to send out test emails from the email queue and from Administration > System > Email. Now under Administration > System > Email, the form keeps retaining the old SMTP server name but all the other information has been updated to the new SMTP server creds (production).

An event from the event log:


Message: Failure sending mail.
Stack Trace:
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at CMS.EmailProvider.EmailProvider.SendEmail(String siteName, MailMessage message, String server, String username, String password, String encoding, Boolean useSSL)
at CMS.EmailProvider.EmailProvider.SendEmail(String siteName, MailMessage message)
at CMS.EmailEngine.EmailSender.SendQueuedEmail(EmailInfo ei, Int32 userId)
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.SmtpClient.Send(MailMessage message)


I have also tried changing the global setting from email type to "both", "html", and "plain". None of these options seem to help.

Any ideas?

User avatar
Member
Member
kentico_michal - 2/17/2012 9:14:57 AM
   
RE:SMTP Server
Hello,

The form in the Site manager -> Administration > System > Email interface is filled with values based on the current site. So, please make sure that you have set the SMTP server correctly for each site in the CMSSiteManager > Settings > Emails or sites inherit these settings from the global level.

Moreover, are you using the latest hotfix?

Best regards,
Michal Legen

User avatar
Member
Member
capeabah-gmail - 7/23/2012 12:41:40 PM
   
RE:SMTP Server
I have a similar issue. In my case, i have set the mail server in CMSSiteManager -> Settings but i get Mailbox Unavailable. Same settings work for another site on the same server. What else do i look out for? Seems mails dont even try to contact the server at all

User avatar
Kentico Support
Kentico Support
kentico_radekm2 - 7/25/2012 1:26:00 AM
   
RE:SMTP Server
Hello.

The Site Manager / Administration / System / E-mail section uses global E-mail settings; however, E-mail settings can be defined for particular site(s) as well. Could you please check if proper credentials are defined for global, not a site level?

Also, could you please try some local e-mail client, like Papercututility, to see if it works? Thank you.

Best Regards,
Radek Macalik