SparkDevNetwork / Rock

An open source CMS, Relationship Management System (RMS) and Church Management System (ChMS) all rolled into one.
http://www.rockrms.com
580 stars 353 forks source link

Null Reference when sending via email wizard #5933

Closed htaljaard closed 3 months ago

htaljaard commented 4 months ago

Description

Object Null Reference when sending new communication via wizard. Note - SendGrid Communication Transport is enabled.

image

Actual Behavior

When sending any email - based on any template from the mail wizard, I get the error in the description.

Expected Behavior

No Error should show up and email should go through.

Steps to Reproduce

Issue Confirmation

Rock Version

Rock McKinley 15.5 (1.15.5.1)

Client Culture Setting

en-GB

unlearnd commented 3 months ago

@htaljaard

I think this may be a configuration issue, can you check that the SendGrid Communication Transport is selected for the Transport Container in the Communication Transports block?

I believe this Null Reference exception will be thrown only when there are no active Communication Mediums and/or no active Communication Transports.

image

image

image

image

unlearnd commented 3 months ago

@htaljaard Please let us know if the steps mentioned in the comment above don't resolve your issue.

htaljaard commented 3 months ago

Hi all, especially @unlearnd

I am so sorry - completely lost track of this one.

We solved the issue, you were correct. But, strangely enough, it had something to do with the SMTP config, even though we were using SendGrid (I wasn't involved with the fix, sorry).

Thanks for all your help.