It does not work in Yii2
It does not work in the Yii2 system.Here is the part of the code that is responsible for sending the letters, and the problem may be in something else.You need to find the problem and fix it.Save your option of the amount of payment for that job.---------------
public static function sendEmail($message, $subject, $mailTo, $replyTo) {
The result is true.
try {
Yii::app()->mailer->IsSMTP();
Yii::app()->mailer->Host = Yii::app()->params['adminEmailHost'];
Yii::app()->mailer->Username = Yii::app()->params['smtpUser'];
Yii::app()->mailer->Password = Yii::app()->params['adminEmailPass'];
//Yii::app()->mailer->SMTPSecure = 'ssl';
Yii::app()->mailer->Port = Yii::app()->params['adminEmailPort'];
Yii::app()->mailer->SMTPAuth = true;
Yii::app()->mailer->From = Yii::app()->params['adminEmail'];
Yii::app()->mailer->IsHTML(true)
Yii::app()->mailer->FromName = 'System';
Yii::app()->mailer->AddReplyTo($replyTo);
Yii::app()->mailer->AddAddress('hqSOBAKAtestcom');
Yii::app()->mailer->AddAddress('serviceSOBAKAtest.com');
Yii::app()->mailer->AddAddress($mailTo)
Yii::app()->mailer->CharSet = 'UTF-8';
Yii::app()->mailer->Subject = utf8_encode($subject);
Yii::app()->mailer->Body = utf8_encode($message);
//Yii::app()->mailer->SMTPDebug = 2;
Yii::app()->mailer->Send();
} catch (Exception $exc) {
//echo $exc->getMessage();
The result is false.
The
return $result;
The
• • • • • •
-
3961 33 0 Good day, great experience of working with Yii2. I'll solve the problem with the mail and explain what it was about =)
-
471 36 2 1 A professional in the development of applications on Yii2, I work with him since 2015, during this period implemented many projects of different degree of complexity, from the simplest to the complexest business systems with flexible logic, I’m sure I’ll be able to solve your problem, I’m waiting for access.
-
Включіть дебаг режим та подивіться логи
-
Current freelance projects in the category PHP
Website auditTask for technical debugging of OpenCart 3 (ocStore). I need a fixed budget for the result, not hourly payment. List of tasks 1. Fixing 500 error: A conflict occurs when updating modifiers (likely between system/seo_package.ocmod.xml and unixml.ocmod.xml). It is necessary to… Content Management Systems, PHP ∙ 12 hours 12 minutes back ∙ 33 proposals |
Development of a single project based on the refinement and integration of 4 scriptsHello. I need to combine 4 scripts from different authors into a single environment. The composition includes a forum, a video portal, an article portal, and a classifieds board. I will provide the scripts. Detailed specifications are in the attached files. Please think about… PHP, Web Programming ∙ 13 hours 40 minutes back ∙ 26 proposals |
A WordPress site using the Kadence theme and Kadence Blocks.
225 USD
We need to create a website on WordPress using the Kadence theme and Kadence Blocks. There will be no online store (although it may be added in the future). We need a homepage and several internal pages. The graphics are already prepared, the layout structure is mostly defined,… Content Management Systems, PHP ∙ 17 hours 7 minutes back ∙ 31 proposals |
Development of 2 SEO-oriented websites for selling spare parts (ATVs and special equipment)Development of Two Specialized Websites for Selling Spare PartsGeneral Information It is necessary to develop two specialized websites: Spare parts for ATVs, UTVs, SSVs, and other similar equipment. Spare parts for special equipment. Existing company website:… PHP, Web Programming ∙ 1 day 14 hours back ∙ 67 proposals |
Looking for a white-label solution for a betting company for rent. |