I have a yii2 project. I make sending email function on it, so I use yii2 swiftmailer. But I have a problem. Sometimes my connection is bad, so when the function is running my application will stop because the time for sending email is just 30 seconds. So, how can I handle the error exception? May be I can use try-catch, but I don't know how to use it for handle time exception.
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together