Skip to main content

Hello IFS Community,

Does anyone know how to send an email via a report rule using a custom sender instead of the default “ifs_noreply”?

I’ve already created the custom sender and have successfully sent emails using the PDF_REPORT_CREATED event action. However, I’d like to test this using report rules, but I can’t find where to configure the sender.

In code, it would look something like this( See below)/ How could I set up my custom sender in report rules?:

   COMMAND_SYS.Mail(
      sender_      => '',
      from_        => '',  
      to_list_     => to_email_,
      subject_     => 'NCR  ' || NVL(ncr_no_, '(unknown)'),
      text_        => mail_body_,
      -- content_type_ => 'text/html; charset=UTF-8',          -- include if supported
      attachments_ => attachments_,
      mail_sender_  => 'MY_CUSTOME_SENDER_HERE'
   );

 

Hi ​@ZTC ZTC JGOTA 

 

It seems it has been reported but unfortunatelly solution not provided. Checked on 25R1U3

 


Hello @knepiosko,

Thank you for your comment. I read your post yesterday and was hoping to find a solution for this in IFS 24R2. Hopefully, we’ll get one soon.

Have you experienced receiving duplicate emails when using custom sender logic in an email action—one from the IFS default report sender and another from your custom sender? I was just wondering.

 

Is there a way to turn off the standard ‘PDF report’ email action and use only the custom action? | IFS Community

 

Best regards,
 

 


Hi ​@ZTC ZTC JGOTA 

Last note from my ticket:

As noted in the earlier case updates, the product development team has confirmed that the issue has been resolved starting from the 24R2 GA release. No additional fixes have been applied in the 25R1 release for this specific issue.

 

and the next one:

There was some issue with route to connect action type for selecting in different mail sender and this issue was fixed in 24 R2 track. The send email action type is designed to work the same way it is functioning now

 

Seems they do not provie what we expected.

I also add @GISANCAR here to follow the discussion.


Hi,


In the report rule configuration, it is possible to send emails using a custom sender by selecting the "ROUTE TO CONNECT" action type. Once this action is chosen, you can configure it to utilize your custom sender for email delivery.


Please note the following important detail:
When sending an email through this action, ensure that the Type property is set to REPORTING.

For further guidance, kindly refer to the official documentation linked below:

Link :- https://docs.ifs.com/techdocs/25r1/050_reporting/000_reporting/251_operational_reporting/011_setup/070_report_rules/?h=report+rule#action_types


Best regards,
Gautam