Creating batch request and smtp configuration

19 views
Skip to first unread message

bojan...@gmail.com

unread,
Jun 25, 2020, 6:33:34 AM6/25/20
to Alaveteli Dev
When i create a Batch Request. I get the following error: AlaveteliPro::RequestSummaryCategory(#72120) expected, got nil which is an instance of NilClass(#40). I am not sure what could be the issue.

As well i like to establish smtp delivery method indsted of sendmail , i have the following configuration in the general.yml file

PRODUCTION_MAILER_DELIVERY_METHOD: smtp
SMTP_MAILER_ADDRESS: smtp.gmail.com
SMTP_MAILER_PORT: 587
SMTP_MAILER_DOMAIN: gmail.com
SMTP_MAILER_USER_NAME: user...@gmail.com
SMTP_MAILER_PASSWORD: password
SMTP_MAILER_AUTHENTICATION: 'plain'
SMTP_MAILER_ENABLE_STARTTLS_AUTO: true

When a e-mail is sent i recieve sendmail not found, is there something else i have to add in order to establish the stmp delivery method?

Gareth Rees

unread,
Jun 25, 2020, 6:45:26 AM6/25/20
to Alaveteli Dev
> AlaveteliPro::RequestSummaryCategory(#72120) expected, got nil

Might need to run `bundle exec rake temp:generate_request_summaries` [1].

> As well i like to establish smtp delivery method indsted of sendmail 

We don't use SMTP for Alaveteli's mail delivery at mySociety, so there's not much I can guess at right now other than pointing you towards the configuration documentation [2].

You should be able to inspect config.action_mailer settings [3] in your rails console to check that they're being set successfully.

Best,

Gareth

Reply all
Reply to author
Forward
0 new messages