Welcome Guest, Not a member yet? Register   Sign In
Update send_email helper function?
#1

[eluser]Gabriel Jones[/eluser]
Any chance we can update send_email to include the '$sender' parameter?
Code:
/**
* Send an email
*
* @access   public
* @param    string    Recipient email address
* @param    string    Subject
* @param    string    Message
* @param    string    Sender email address
* @return   boolean
*/
if(!function_exists('send_email'))
{
    function send_email($recipient, $subject = 'Test Email', $message = 'Hello World', $sender)
    {
        $header = "From: $sender";
        return mail($recipient, $subject, $message, $header);
    }
}
#2

[eluser]Gabriel Jones[/eluser]
I really should learn to read documentation.... already taken care of in Email Class as opposed to the email_helper file..




Theme © iAndrew 2016 - Forum software by © MyBB