Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

How To Add Error Log

$
0
0
I wrote one function to send mail in component. I have to add all the email when Email failed. How to add new file and add this error
        if(!$mail->Send()) {
            //echo "Mailer Error: " . $mail->ErrorInfo;
           I need error log here
        }else {
            echo "Message sent!";
        }

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>