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:

http://mydomain.com/sendy/unsubscribe/myuser@mydomain.com/4/8

and the message:

"Email address is invalid"

But when I click from the view in browser version I get this url:
http://mydomain.com/sendy/unsubscribe/Ljjh7l5pOUnAmA0oBozH6bVHFsVAs8ipZl5sQkxF8926k/rz892JEu51Kja5kHMc763oZ8XQ/wCFaYjFoPdhLUsuM6Bom763Q

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

I already saw this topic:
https://sendy.co/forum/discussion/10500/email-address-is-invalid-on-unsubscribe/p1

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"

Comments

  • BenBen
    edited October 2019

    Hi,

    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 http://mydomain.com/sendy/scheduled.php > /dev/null 2>&1
    

    Thanks.

    Best regards,
    Ben

  • 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.