Unable to send PDF report with Recipient Method set to BCC

I have an email profile setup setup in the gateway. I have a project with a report in it that gets run once per month. The actions are to send an email to the email profile in the gateway at this time. The recipient is able to receive an email when the drop down method is set to To but not BCC. The options are [To, CC, BCC, ReplyTo].

Is this a known issue with Ignition or is this a problem on the SMTP server side? No errors went out when it ran this month. The email just never showed up when set to BCC.

This image shows the location in the report that I am looking at.

You can’t technically send an email via SMTP with just CC or BCC recipients. You must fill in the To recipient. Typically a CC/BCC blast will use a dummy To recipient, but Ignition isn’t doing this for you.

Do you mean I can't technically do this in Ignition? Because I can do it just fine with my work email.

I think you just have to provide the dummy "To" address yourself, which is likely what your mail provider does in the background.

1 Like

The SMTP profiles in Ignition should also have a debug logging setting you can turn on to see the conversation with the mail server (in wrapper.log), which might also be useful in case I've misunderstood the RFC and the the RCPT command.

I turned on debug for SMTP. Ignition designer threw the following error when using the Run Action Immediately button in the Schedule tab.

and the logs threw two warnings. The first is:

**No 'to' addresses found for Email Action**

The second is:

**java.lang.IllegalArgumentException: Incomplete email parameters. You must specify the following: email recipient list**

What I then tried is putting a generic, fake email, Ignition@mail.net in the From Address and in the To field, and then putting the emails I needed in the BCC and it accepted that.

I recommend that you set the from address to something like scriptname.projectname@servername.companyname.com and construct this programmatically so that it auto-updates if the project is copied or moved to another server. It will be a big help in debugging quickly if the script goes rogue and your company's email gets blacklisted!

1 Like