Email Instance

Simple Email Implementation.


SMTP

Implementation SMTP instance.

$email = new \Samy\Email\Smtp($host, $username, $password, $port);

getDebugLevel

Retrieve debug level.

$debug_level = $email->getDebugLevel();

withDebugLevel

Return an instance with the specific debug level.

$email = $email->withDebugLevel($debug_level);
debug_levelDescription
0no output
1show client -> server messages
2show client -> server and server -> client messages
3show connection status, client -> server and server -> client messages
4show all messages

SendInBlue

Implementation SendInBlue instance.

$email = new \Samy\Email\SendInBlue($api_key);