Skip to main content
Solved

IFS doesn't send emails using event


Forum|alt.badge.img+23
  • Superhero (Customer)
  • 1171 replies

Dear community,

generally we can send emails from IFS. For example if we create a subscription, send a document via email etc.

But it doesn’t send emails for events.

Can anyone help?

Best answer by Marcel.Ausan

@Link either way an application message should be generated.

The flow is:

→ event action of type Mail triggered

    → Application Message created and queued

       → Application Message will invoke the Mail Sender to finally push the email to the SMTP server.

If there is an issue with the Mail Sender, you should see the error message in the application message.

 

The fact that there’s no application message makes me think there could be 2 options

  • event action never gets triggered (maybe wrong conditions or inactive 😁)
  • some environment issues which i guess should be reported to IFS for further checking
View original
Did this topic help you find an answer to your question?

10 replies

Marcel.Ausan
Ultimate Hero (Partner)
Forum|alt.badge.img+22
  • Ultimate Hero (Partner)
  • 1153 replies
  • November 14, 2023

@Link if you think you have properly setup the event action, please check if there’s any Application Messages generated. Normally all event actions of type Email will create an Application Message to push the email through the smtp server. Maybe the Application Messages are in failed status due to some errors.

 

Also, would be useful to leave a printscreen of your event action.


hhy38
Superhero (Customer)
Forum|alt.badge.img+16
  • Superhero (Customer)
  • 325 replies
  • November 15, 2023

@Link Hi,

 

Can you try the PLSQL block below? This is the procedure that is working under the email events. If it is not working you should check Connector Senders.

 

BEGIN
	ifsapp.command_sys.mail(from_user_name_ => 'IFSAPP',
                            to_user_name_   => 'yyyy@xxx.com.tr',
                            text_           => 'Test!'
                         );
END;

 

 


Forum|alt.badge.img+23
  • Author
  • Superhero (Customer)
  • 1171 replies
  • November 15, 2023
Marcel.Ausan wrote:

@Link if you think you have properly setup the event action, please check if there’s any Application Messages generated. Normally all event actions of type Email will create an Application Message to push the email through the smtp server. Maybe the Application Messages are in failed status due to some errors.

 

Also, would be useful to leave a printscreen of your event action.

Hi @Marcel.Ausan 

I’ve just created a simple event for testing and also the mail sender looks good.

But IFS doesn’t create an application message.


Forum|alt.badge.img+23
  • Author
  • Superhero (Customer)
  • 1171 replies
  • November 15, 2023
hhy38 wrote:

@Link Hi,

 

Can you try the PLSQL block below? This is the procedure that is working under the email events. If it is not working you should check Connector Senders.

 

BEGIN
	ifsapp.command_sys.mail(from_user_name_ => 'IFSAPP',
                            to_user_name_   => 'yyyy@xxx.com.tr',
                            text_           => 'Test!'
                         );
END;

 

 

Hi @hhy38 

thank you for the sql code. It doesn’ work.

This means somethink is worng with my connector sender, right?

 


Marcel.Ausan
Ultimate Hero (Partner)
Forum|alt.badge.img+22
  • Ultimate Hero (Partner)
  • 1153 replies
  • Answer
  • November 15, 2023

@Link either way an application message should be generated.

The flow is:

→ event action of type Mail triggered

    → Application Message created and queued

       → Application Message will invoke the Mail Sender to finally push the email to the SMTP server.

If there is an issue with the Mail Sender, you should see the error message in the application message.

 

The fact that there’s no application message makes me think there could be 2 options

  • event action never gets triggered (maybe wrong conditions or inactive 😁)
  • some environment issues which i guess should be reported to IFS for further checking

hhy38
Superhero (Customer)
Forum|alt.badge.img+16
  • Superhero (Customer)
  • 325 replies
  • November 15, 2023

@Link You are welcome. Yes, probably the default mail sender has a problem. Because this code uses the default mail sender. There can be a lot of mail senders. If all of them not working, it can be related to the mail service. If some of them working. Then you should check your sender configuration.

 


Forum|alt.badge.img+23
  • Author
  • Superhero (Customer)
  • 1171 replies
  • November 15, 2023
Marcel.Ausan wrote:

@Link either way an application message should be generated.

The flow is:

→ event action of type Mail triggered

    → Application Message created and queued

       → Application Message will invoke the Mail Sender to finally push the email to the SMTP server.

If there is an issue with the Mail Sender, you should see the error message in the application message.

 

The fact that there’s no application message makes me think there could be 2 options

  • event action never gets triggered (maybe wrong conditions or inactive 😁)
  • some environment issues which i guess should be reported to IFS for further checking

Hi @Marcel.Ausan 

yes, that is true. The event action never gets triggered cause of wrong conditions.

Thank you a lot. 😀


hhy38
Superhero (Customer)
Forum|alt.badge.img+16
  • Superhero (Customer)
  • 325 replies
  • November 15, 2023

@Link Iskender 

I'm glad you found the solution. :) But, I wonder why the code didn’t work. Did you Commit the transaction after executing the code?

 


Forum|alt.badge.img+23
  • Author
  • Superhero (Customer)
  • 1171 replies
  • November 15, 2023
hhy38 wrote:

@Link Iskender 

I'm glad you found the solution. :) But, I wonder why the code didn’t work. Did you Commit the transaction after executing the code?

 

Hi @hhy38 

yes, I totally forgot it. It is a good question. 😊

I don’t know.

Maybe I should test it again. 😁


Forum|alt.badge.img+23
  • Author
  • Superhero (Customer)
  • 1171 replies
  • November 15, 2023

Hi @hhy38 

the code also works after correcting the condition in the event.

Thank you for supporting. ✌🏼


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings