Skip to content

Unsubscribe message "Invalid email address"

edited October 2019 in Troubleshooting

Hi, I've sent some campaigns for testing and everything is working fine but the unsubscribe link.

When I click it from the email, the url I get is this:

and the message:

"Email address is invalid"

But when I click from the view in browser version I get this url:

And it works. I get the right message and the address is unsubscribed.

I already saw this topic:

But I don't think encryption is my problem since the unsubscribe link works in the view in browser version and the ID for my list appears as "rz892JEu51Kja5kHMc763oZ8XQ"


  • BenBen
    edited October 2019


    This is an issue with different PHP versions between your server and the 'command line’ version of PHP. When you send out the actual campaign, the cron job executes the sending via the command line version of PHP. The command line version of your server's PHP is either outdated (lower than PHP 5.3), or the OpenSSL module is outdated. That's why your unsubscribe link was not being encrypted by SHA256 (as you can see the user's email address appears in the unsubscribe URL).

    I suggest contacting your hosting support to update your CLI PHP and OpenSSL.

    Then the next time you send out a campaign, the unsubscribe link and all trackable links will work.

    Alternatively, use curl for the cron job instead:

     curl -L -s > /dev/null 2>&1


    Best regards,

  • You were right. Using the curl solved my problem. Thank you very much for your help and your quick response!

This discussion has been closed.