function fp_mail

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, $bool_html = FALSE, $attachments = array(), $bool_string_attachment = FALSE)
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.

7 calls to fp_mail()
misc.inc in includes/misc.inc
This file contains misc functions for FlightPath
system.module in modules/system/system.module
system_popup_report_contact_form_submit in modules/system/system.module
_DatabaseHandler.php in classes/_DatabaseHandler.php
_DatabaseHandler::db_error in classes/_DatabaseHandler.php
Draw out the error onto the screen.

... See full list

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);
  }



}