loogart / impact-canada

Canadian Government's Privy Council's Office Impact Canada website.
https://loogart.github.io/impact-canada/
0 stars 0 forks source link

SMTP Authentication Support #57

Open habernation opened 5 years ago

habernation commented 5 years ago

Hi Duncan, Just a heads up that as part of the webforms integration, we will want to be able to use email handlers on the site. Right now, the site returns an error ("Unable to send email. Contact the site administrator if the problem persists. ") when trying to send a test email from the SMTP authentication support page.

Do you think we will be able to configure the site to send emails? If so, we'll add it to the list of updates we're putting together.

Thanks, Mike

djsutter commented 5 years ago

Hi Mike, I will have a look at that when I get a moment. Yes we should be able to send emails from the site, although there will be differences between the dev site and production. If either of you know if the prod site is currently sending emails for any reason, then it's a non-issue.

habernation commented 5 years ago

Thanks, I should have mentioned that I tested it on the PROD site in case the DEV site was configured to work only on PROD. It isn't sending emails at the moment. Thanks for following-up.

djsutter commented 5 years ago

Ok I just checked the production server - sendmail is not installed so I will try installing it and see what happens.

djsutter commented 5 years ago

I installed sendmail and tried sending an email from the console. It's currently stuck in the outbound queue, which tells me that something more needs to be done to set this up. I will have to contact James Sauve about that to see if he can figure out how to allow the email to flow out. This may take a while.

habernation commented 5 years ago

Thanks! Do you think we could find out by the 1st of February?

djsutter commented 5 years ago

I just sent a request to James. Let's see how he responds. Will let you know.

habernation commented 5 years ago

HI Duncan, let me know when you have an update on the email issue (blocked sending). If we can't get it working by the end of the week, we'll need to explore other options here instead of the Impact Canada site. Thanks, Mike

djsutter commented 5 years ago

Ok will get back to this and see if we can resolve by the end of the week.

djsutter commented 5 years ago

I did a bit of research; things are pointing towards the need for a smarthost such as SendGrid. Here's an article https://docs.microsoft.com/en-ca/azure/sendgrid-dotnet-how-to-send-email How's your appetite for signing up for a service like this? I'm also waiting for a response from James Sauve on this topic.

djsutter commented 5 years ago

Actually it seems that with an Azure account, you get 25,000 free emails each month.

habernation commented 5 years ago

I think if we need to use a 3rd party tool, we would run into security issues (if it's handling confidential business information). I think we would need to have the site configured to send via our server settings for this to be an option for us. Thanks for the update. Maybe James Sauve will have a solution.

djsutter commented 5 years ago

The email issue was causing a lot of pain in support and I don't know if we can resolve. I did notice that we have a module installed called "mailgun" which "Allows site to send emails using Mailgun email service." I have no idea what this requires - probably a paid account. Do we still want to pursue this?