CI_Email::send()

send([$auto_clear = TRUE])

Parameters:
  • $auto_clear (bool) – Whether to clear message data automatically
Returns:

TRUE on success, FALSE on failure

Return type:

bool

The e-mail sending method. Returns boolean TRUE or FALSE based on success or failure, enabling it to be used conditionally:

if ( ! $this->email->send())
{
        // Generate error
}

This method will automatically clear all parameters if the request was successful. To stop this behaviour pass FALSE:

if ($this->email->send(FALSE))
{
        // Parameters won't be cleared
}

Note

In order to use the print_debugger() method, you need to avoid clearing the email parameters.

doc_CodeIgniter
2016-10-15 16:31:30
Comments
Leave a Comment

Please login to continue.