How can I send different confirmation email based on payment method?

I offer Bank Deposit, COD and credit payment options. I want to send a different confirmation email based on which option my customer chooses.

You could modify the Order Confirmation notification email template and use various variables to implement your logic.

Check Notification variable reference documentation.

The transaction object contains the details you may want to use like:

  • transaction.name
  • transaction.gateway
  • transaction.kind
  • etc.