Picking SMTP server in EMS when Sending SMTP Emails via API

Shannon Dunn asked on May 14, 2014 11:18

I have code that sends out alerts of new postings in our Kentico custom job board module. Prior to upgrading to the EMS we used the default SMTP server settings to send out an email. How can I now leverage the use of the EMS's ability to have multiple SMTP servers configured for use. How can I set in the API which of the SMTP servers I am using?

Recent Answers


Brenden Kehren answered on May 14, 2014 14:37

Have you checked out the API docs?

SMTP API Documentation

0 votesVote for this answer Mark as a Correct answer

Shannon Dunn answered on May 14, 2014 21:20

Yea....That class doesn't help with the email sending. The class for EmailSender.SendEmail which I have been using doesn't take an SMTP object or even anything remotely like it. An example in docs would be what I am asking for.

0 votesVote for this answer Mark as a Correct answer

Martin Danko answered on May 24, 2014 06:21

Hello Shannon,

At the moment you can not choose which SMTP server will be used, there is already a logic implemented which is choosing the right SMTP server according to it's load.

However, I agree that it could a great feature to have better control over which SMTP server will be used. So if you want functionality like this available in the feature version of Kentico, you can suggest it and also other users will be able to vote for it (more users = higher priority), on the special page: Kentico UserVoice

Best regards, Martin

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.