Pick SMTP server

David Pearson asked on October 6, 2016 16:07

Is there a way to pick an smtp object (smtpServer.ServerName) in EmailSender.SendEmail?

I am using a Custom Email Provider with a custom ContactAutomationAction for Drift emails. The Drift email action puts the email together sending the data in the email template through EmailSender.SendEmail. The Custom Email Provider will look at the value of SMTPServerInfo smtpServer to route to a Email Web Service.

Thanks David

Correct Answer

Roman Hutnyk answered on October 6, 2016 16:30

David, have you considered custom email provider? You can add any custom logic you need there.

0 votesVote for this answer Unmark Correct answer

Recent Answers

David Pearson answered on October 6, 2016 16:37 (last edited on October 6, 2016 16:37)

Hi Roman,

Yes I am using the custom email provider. I am adding some logic now. I was looking to see if I can pass a value to the custom provider via the EmailSender.SendEmail.

For now I am adding a to the email template. The custom provider will look for the smtp server name in body of the email. If the stmp server name is not hidden in the body it will use the default email server.

Thanks David

0 votesVote for this answer Mark as a Correct answer

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