Home Forums Business Model Classes Send event in SysMail class deprecated

Viewing 2 reply threads
  • Author
    Posts
    • #8789
      Rafael ReisRafael Reis
      Participant

      I noticed that the event send is deprecated, so I was wondering what is the approach we should be taking? For now I am using integration-send-receiver function, but I am not sure if that is the correct approach.

      Rafael

      0
    • #8796
      Ed ShawEd Shaw
      Keymaster

      You are doing the right thing. The use of SysMail has been deprecated in favour of using a mail integration channel. You create a mail channel and configure it in your environment connections settings. Then send mail messages (message (: :class "Mail") (: ...) over the channel either by using an integration service, or as you mentioned the (integration-send-receive ...) function.

      0
      • #8802
        Rafael ReisRafael Reis
        Participant

        Thank you so much Ed!

        0
    • #8809
      Peter MurrayPeter Murray
      Participant

      You can also use
      (((invocation-context)'unitOfWork)'addMessage "Mail" emailMessage)
      which is more transactional (i.e. will not send the email until the unit of work commits).

      0
Viewing 2 reply threads
  • You must be logged in to reply to this topic.