Support » Plugin: osTicket Connector » Confused between API and Email Tickets

  • Resolved ramsun

    (@ramsun)


    Hi:

    I have a contact form created with Contact Form 7. It was working till now by using the Mail Bank SMTP connector for the form.

    Since I run OSTicket on the same server, I waned to explore creating tickets with the API rather than email. I installed your plugin and followed the instructions to make it work. CF7’s mail settings have to be filled out for the form to work, so I retained my old email settings. It does create tickets, but those tickets appear as if they are created by the email channel rather than the API channel.

    To test this, I deactivated MailBank, and the tickets weren’t being created.

    I see in one of your responses above that your plugin still uses the mail function.

    Could you please explain how I can use the API to create tickets without using email?

    Thanks.

Viewing 1 replies (of 1 total)
  • Plugin Author SCAND

    (@scandltd)

    Hello, Ramsun.

    You don’t need to using email but you have to use some contact form which will call the wp_mail function and our plugin will be able to catch that.

    To usage of API without email you should redefine next line in class-http-api.php file add_action(‘wp_mail’, array($this, ‘createTicket’)); by some action you would like to use and be sure that REQUEST params will be passed properly when action is called.

    As variant, you may contact us via wordpress@scand.com email, describe in more details about what you have and what you want, and we will try to help you asap.

    Thank you for your interest in our plugin.

    Best regards,
    SCAND Team

Viewing 1 replies (of 1 total)
  • The topic ‘Confused between API and Email Tickets’ is closed to new replies.