No, it's not legal.

The General Data Protection Regulations (GDPR) apply given that you are in the UK (regardless of where the Data Processor is based).

GDPR requires that consent to use your personal information (in this case, your email address), be _freely given_.

Consent to use your information for direct marketing is not freely given if it's inseparable from the consent to use it for some other service.