• Resolved prccp

    (@prccp)


    I wanted to call a procedure to automatically open tickets on our intranet whenever an e-mail was sent via SMTP (the current setup). Could you point me out where the sendmail function is located?

    Thanks a lot in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Gregor Capuder

    (@capuderg)

    Hi @prccp,

    the general send method is \WPMailSMTP\MailCatcherV6::send (wp-content/plugins/wp-mail-smtp-plugin/src/MailCatcherV6.php). This is where the configured mailer (“Other SMTP” in your case) is prepared and its send method is called.

    You can maybe use wp_mail_smtp_mailcatcher_send_after action, to hook into and open a ticket in your intranet? Maybe there are some other hooks that might be a better fit. Maybe you can also use WP core hooks in the wp_mail function?

    Have a nice day!

    Thread Starter prccp

    (@prccp)

    Thanks a lot, Gregor!
    I’m gonna take a look at those.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Procedure when sending mail’ is closed to new replies.