Hello Zen Community!

We're running a special soon where all new newsletter subscribers will receive a PDF. We'd like to attach it to the welcome email. I've looked at other posts and have a basic understanding of attachments and zen_mail. However, the /modules/create_account.php file is procedural.

How would I conditionally add text and the attachment to the email only when the customer has signed up for our newsletter? I'm not thinking that the 'NOTIFY_LOGIN_SUCCESS_VIA_CREATE_ACCOUNT' hook will supply all the info I need to make this concept functional ($newsletter, $email_txt, etc). Or, is all that info in the global scope?

Thank you!