web.config mutliple smtp accounts
Posted on 2012-03-14
I have a web application that is accessable via 2 different domains and I need to send out emails using 2 different smtp accounts because of the 2 domains. This is to avoid emails being marked as unsafe, phishing or spam due to being sent from an address that doesn't match the mailserver.
Is there a way to do this even though the web.config SMTP settings area will only allow 1 account. IF so, how?
Can I send the emails some other way rather than using the settings stored in web.config?
IF so, how?