Hi all.
I have a simple bit of code which is working fine when opting out email addresses, but not opting it. I was wondering if there was any logic forcing someone to do this manually in CRM. The if block is as folows:
As mentioned the $email->opt_out = 1; works perfectly fine but the other does not.
Thanks!