Skip to main content

Test the Mailer module webhook URL for sending emails

Once the webhook URL has been determined that will be used to inform the ActiveMember360 Mailer module to send an email it can be tested directly from a web browser rather than using ActiveCampaign.

This enables the email process to be debugged which is difficult if tested directly from within ActiveCampaign.

The unsubcribe link and optout process cannot be tested using htis method, solely the sending of the email.

The steps for debugging are as follows:

  1. Enable debug in ActiveMEmber360, Mailer Settings, Debug Mode.

  2. Take the webhook URL and append your test ActiveCampaign contact email and contact id, to be used for testing, to the URL using the parameter contact[email]= and contact[id]= respectively.

    As an example the webhook URL:

    https://yoursite.com/mbr/mailer/v1/security_code?template=53

    becomes

    https://yoursite.com/mbr/mailer/v1/security_code?template=53&contact[email]=you@yoursite.com&contact[id]=2
    Important

    In the examples security_code must be replaced by a security code defined in ActiveMember360, Settings, Security, Security Codes

    If you are using an contact email address including special characters apart from @ they must be URL encoded.

    For example:

    contact[email]=you+anon@yoursite.com

    should be specified as:

    contact[email]=you%2Banon@yoursite.com
  3. Take the webhook URL with the appended contact email address and id and paste it directly into your browser and hit enter.

  4. If the email is sent successfully you will see the full content of the email in code form.

    If the email is unsuccessful you will usually see an error message highlighting the issue. However dependent upon the error you may need to inspect your server logs to see the error message i.e. it will not be shown in the browser.