API Scripting Question

Is it possible to use a "mail" command in the s2Member API / Notifications for the Registration and/or Payment Notifications?
I want to do something like ...
... as a way to do an email subscription to a list based on the s2 member level. Or, possibly, the item number.
Or, do I have to send the variables to a script containing that code?
I want to do something like ...
- Code: Select all
<?php
mail( "%%role%%@somewhere.com", "subject", "message", "From: %%user_email%%" )
?>
... as a way to do an email subscription to a list based on the s2 member level. Or, possibly, the item number.
Or, do I have to send the variables to a script containing that code?