cBrooks Core Mailer Utilities
Include Architecture, Dependancies & Other Notes
Dependancies:
- PEAR DB
- PEAR Mail
- cBrooks Core Database Utilities
- cBrooks Core User Class
- gbm_config.php
Included Functions
- send_mail_to_user( str $to_username, str $from_username, str $subject, str $message ) - Sends $message out to the user specified in $to_username. You will want to check and make sure that this user is in the database and set up properly before calling this function. (I would suggest making sure that you have validated their e-mail before using this as well. If the e-mail is invalid, there is no guarantee that your message will get out / end up at the right destination.)
- send_mail_to_addr ( str ($address, str $from_username, str $subject, str $message ) - Acts precisely like send_mail_to_user with the exception that your destination is an email address that you provide, not one that the function pulls out of the user database.
