Posted on 09/03/2015 14:36:00
Hi Jonas,
EmailMarketing does not use this method to send emails. If you want to send a Dynamicweb.Modules.EmailMarketing.Email
object, you should use the Dynamicweb.Modules.EmailMarketing.Email.SendEmail(Email mail)
method to do it. If you want to send a System.Net.Mail.MailMessage
object, you should use one of the Dynamicweb.EmailHandler.Send
overloads. I would not recommend using Dynamicweb.Modules.Common.Email.SendMail
, but use one of the above mentioned methods.
I think the reason EmailMarketing is capable of sending and this method is not, is because the smtp is incorrect. EmailMarketing uses EmailHandler under the covers, and this methods falls back to a default smtp server if it can't send using the one that's specified. I assume your solution is hosted at HostNordic, and your smtp server should, therefore, be smtp.dynamic-systems.lan
.
- Jeppe