Developer forum

Forum » CMS - Standard features » DKIM for Dynamicweb

DKIM for Dynamicweb

Hans Ravnsfjall
Hans Ravnsfjall
Reply

Hi

we have solutions sending emails as a result of forms, extranet and ecommerce setups. If we want to configure DKIM for these soltutions, how would we do this?

/Hans


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Dynamicweb does not support DKIM as .net framework does not support it.

You can however create custom implementation adding the proper signing to the message using extensibility.

Option 1 - sign the mailmessage

Create a notification subscriber using EmailNotifications.OnBeforeEmailSend - the args passed has the emailmessage being send as a property. Sign the message using a library like

EmailNotifications.OnBeforeEmailSendhttp://EmailNotifications.OnBeforeEmailSend

Option 2 - use another SMTP API to send emails

Create a notification subscriber using EmailNotifications.OnBeforeEmailSend - the args passed has the emailmessage being send as a property. Send out the email using a library like https://github.com/jstedfast/MailKit and then set the .Handled property of the notification args to true - then Dynamicweb will not send the email.

BR Nicolai

 
Hans Ravnsfjall
Hans Ravnsfjall
Reply

Thank you Nicolai

Ok, so there is no way around custom solution? Would something like using sendgrid solve this without custom?

/Hans

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Sendgrid supports DKIM: https://docs.sendgrid.com/glossary/dkim

 

You must be logged in to post in the forum