I'm not sure how this is happening, but our website is only accessible via https, and yet the the url tokens (for things like unsubscribe links) are appearing in emails starting with http://.
I think it would be a reasonably safe assumption that these links should always start with https in this day and age, so for a quick-fix I have added 'https' => TRUE as a parameter for url().
I am sending these emails from a cron task, and I wonder if there's something about using the cron task that generates these links incorrectly, as opposed to triggering the messages from the UI.
I'll test both to see if the result is the same. Assigning to myself.
I'm not sure how this is happening, but our website is only accessible via
https, and yet the the url tokens (for things like unsubscribe links) are appearing in emails starting withhttp://.I think it would be a reasonably safe assumption that these links should always start with https in this day and age, so for a quick-fix I have added
'https' => TRUEas a parameter for url().I am sending these emails from a cron task, and I wonder if there's something about using the cron task that generates these links incorrectly, as opposed to triggering the messages from the UI.
I'll test both to see if the result is the same. Assigning to myself.