Take the 2-minute tour ×

I can successfully send emails by using CakeEmail class of CakePHP. But how can I be sure that the email is sent ? Does a response comes when email is sent successfully?

When i take success response, I will redirect visitor to some other page.

share|improve this question

1 Answer 1

up vote 5 down vote accepted

send() method send the content array if the mail send successfully or it throws an exception.

share|improve this answer
Thank you i catch that exception now. Additional info: try { $email->send($fullMessage); } catch (SocketException $e) { debug($e->getMessage()); } –  trante May 16 '12 at 19:58

Your Answer


