You appear to be a bot. Output may be restricted
Description
Build and send an email with fields substituted by default
Usage
$bool = oiksp_send_email( $email, $subject, $message, $headers, $fields );
Parameters
- ( string ) required – email address of the recipient – overridden by the value in $fields['email']
- $subject
- ( string ) optional – the one line email subject, excluding Subject:
- $message
- ( string ) optional – the body of the email
- $headers
- ( array/string ) optional – the message header: From:, Bcc:, Content-type: etc
- $fields
- ( array ) optional – name value pairs for symbolic substitution
Returns
bool the result of the wp_mail() call
Source
File name: oik-squeeze/includes/oik-squeeze-email.inc
Lines:
1 to 10 of 10
function oiksp_send_email( $email, $subject=null, $message=null, $headers=null, $fields=array() ) { $to = bw_array_get( $fields, 'email', $email ); $headers = oiksp_get_email_headers( $headers, $fields ); $subject = oiksp_get_email_subject( $subject, $fields ); $message = oiksp_get_email_message( $message, $fields ); $attachments = null; $result = wp_mail( $to, $subject, $message, $headers, $attachments ); return( $result ); }