Unsubscribe link in an eblast

My PHP version is: PHP Version 7.2.24-0ubuntu0.18.04.1

My problem is:
Our unsubscribe link works if we create the email inside mautic using their templates but when we use or when we just put the code of an eblast designed by us we don’t see the option anymore. Can anyone please help on what to do?