I have installed the Orchard.Module.Orchard.Email-1.6 package.
That gives me the smtp settings.
The host of the website has given me the required config details. I have saved those settings in the dashboard, including the port number (8889) and the host (mail.mydomain.com or the IP address, I have tried both).
I have checked the Orchard_Email_SmtpSettingsPartRecord table in the database, and the settings have been stored correctly.
However, I am still getting the following error:
No connection could be made because the target machine actively refused it 127.0.0.1:25
This is bizarre, because I have set a port number, 8889, that is different to 25, and I have set the host to NOT be the localhost. Like I say, I have checked the database to see what is in there and it is all correct.
- What am I doing wrong?!
- Is there a way to manually put these settings into the web.config? Eg, just use the relevant section of the web config:
<smtp deliveryMethod="Network" from="email@example.com">
<network host="mail.mydomain.com" password="password" userName="user"/>
Would that work?