WPPizza – A Restaurant Plugin for WordPress › Support › General Support › Confirmation email
- AuthorPosts
- 21 June, 2016 at 7:03 pm #19045
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
sshd21 June, 2016 at 7:14 pm #19047> “….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
21 June, 2016 at 8:21 pm #19049telegram 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 :/21 June, 2016 at 10:35 pm #19052you 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 - AuthorPosts
- The topic ‘Confirmation email’ is closed to new replies.