In order to use email functions you need to set the conf.email.php file
is_email
return true if is a valid email
is_email( $email )
email_send
Send an email.
// send an email to you@email.com from MyName
email_send( "you@mail.com", $subject, $body, "me@mail.com", "MyName" );
email_send( "you@mail.com", $subject, $body, "me@mail.com", "MyName" );
Email recipients can be set as string or array. You can also send attachments and embed images in the body of the email.
$to = array( "you@email.com", "php@rain.com" );
$attachment = array( "my_file"=>"file/sky.zip" );
email_send( $to, $subject, $body, $from, $from_name, $attachment );
email_tpl_send
Send an email with template message.
// draw $template and send the email to you@email.com from MyName email_TPL_Send( $template, "you@mail.com", $subject, $body, "me@mail.com", "MyName" );
Rain Framework for email management uses PHPMailer.
