Confirmation email

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #19045
    sshd
    Participant

      Hello,

      i’ve already seen, that it’s possible to do a action after a executed order.
      I’m using add_action(‘wppizza_on_order_executed’,’…’); – it calls a php file, which generates a html-file and sends a message via telegram.
      Now I wanna send this html-file (order details) to a mail2fax service … i tried to set it up in the backend with bcc (order confirmation mail) but then it’s sending the email before it generated the html-file.

      Do I have another way to solve my problem? Maybe call the wppizza_on_order_executed script before it sends the order confirmation mail?

      Kind regards
      sshd

      #19047
      Olly
      Admin & Mod

        > “….via telegram…” ??

        anyway, wppizza_on_order_executed is just an action hook. if you want it to send an email, the action/function tied to that hook will also have to do the email sending (as a separate email)

        PS: I do not know of course what it is you are exactly trying to achieve, but my guess is you could do what you want to do by simply using the drag/drop template(s) to do your thing instead …but – as i said – that’s just a guess

        #19049
        sshd
        Participant

          telegram is a secure messenger with an api to send messages to user …
          the biggest problem is, that my mail2fax service only sends a fax if it gets a attachment, that’s why I’m generating a html file – but I’m not able to send it to mail2fax, because it’ll only be generated when I call the wppizza_on_order_executed :/

          #19052
          Olly
          Admin & Mod

            you can already add attachments though
            i know a few people that use email 2 fax stuff and just add some image as attachment . the actual email will still be printed/faxed

          Viewing 4 posts - 1 through 4 (of 4 total)
          • The topic ‘Confirmation email’ is closed to new replies.