function fp_mail
Search API
7.x misc.inc | fp_mail($to, $subject, $msg, $bool_html = FALSE, $attachments = array(), $bool_string_attachment = FALSE) |
6.x misc.inc | fp_mail($to, $subject, $msg, |
5.x misc.inc | fp_mail($to, $subject, $msg) |
Send an email. Drop-in replacement for PHP's mail() command, but can use SMTP protocol if enabled.
4 calls to fp_mail()
- system_popup_report_contact_form_submit in modules/
system/ system.module - _DatabaseHandler::db_error in classes/
_DatabaseHandler.php - Draw out the error onto the screen.
- _DatabaseHandler::z__db_error in classes/
_DatabaseHandler.php - Draw out the error onto the screen.
- _fp_error_handler in includes/
misc.inc - This is our custom error handler, which will intercept PHP warnings, notices, etc, and let us display them, log them, etc.
File
- includes/
misc.inc, line 102 - This file contains misc functions for FlightPath
Code
function fp_mail($to, $subject, $msg) {
// TODO: In the future, check to see if there are any other modules which invoke a hook to intercept mail.
if (function_exists('smtp_mail')) {
smtp_mail($to, $subject, $msg);
return;
}
else {
mail($to, $subject, $msg);
}
}