Update v1.0.7.8
This commit is contained in:
@@ -326,8 +326,8 @@ class TemplateController extends Controller
|
||||
$mail->SetFrom($email_details->email_address, $email_details->email_name); // sender details
|
||||
$address = $request->to; // receiver email
|
||||
$mail->AddAddress($address);
|
||||
$mail->Subject = $request->subject; // subject of the email
|
||||
$body = $request->message; // body of the email
|
||||
$mail->Subject = utf8_decode($request->subject); // subject of the email
|
||||
$body = utf8_decode($request->message); // body of the email
|
||||
$mail->MsgHTML($body);
|
||||
if (!$mail->Send()) {
|
||||
$return = Lang::get('lang.mailer_error').': '.$mail->ErrorInfo;
|
||||
@@ -355,7 +355,7 @@ class TemplateController extends Controller
|
||||
$mail->setFrom($email_details->email_address, $email_details->email_name);
|
||||
$mail->addAddress($request->to, ''); // Add a recipient
|
||||
$mail->isHTML(true); // Set email format to HTML
|
||||
$mail->Subject = $request->subject;
|
||||
$mail->Subject = utf8_decode($request->subject);
|
||||
$mail->Body = utf8_decode($request->message);
|
||||
if (!$mail->send()) {
|
||||
$return = Lang::get('lang.mailer_error').': '.$mail->ErrorInfo;
|
||||
|
@@ -98,14 +98,14 @@ class InstallerApiController extends Controller
|
||||
$ENV['QUEUE_DRIVER'] = 'sync';
|
||||
|
||||
$config = '';
|
||||
|
||||
foreach ($ENV as $key => $val) {
|
||||
$config .= "{$key}={$val}\n";
|
||||
}
|
||||
// Write environment file
|
||||
$fp = fopen(base_path().DIRECTORY_SEPARATOR.'example.env', 'w');
|
||||
$fp = fopen(base_path().DIRECTORY_SEPARATOR.'.env', 'w');
|
||||
fwrite($fp, $config);
|
||||
fclose($fp);
|
||||
rename(base_path().DIRECTORY_SEPARATOR.'example.env', base_path().DIRECTORY_SEPARATOR.'.env');
|
||||
|
||||
return ['response' => 'success', 'status' => '1'];
|
||||
} else {
|
||||
@@ -213,8 +213,6 @@ class InstallerApiController extends Controller
|
||||
File::put($install, $datacontent);
|
||||
|
||||
// Applying email configuration on route
|
||||
$smtpfilepath = "\App\Http\Controllers\Common\SettingsController::smtp()";
|
||||
$lfmpath = "url('photos').'/'";
|
||||
$link = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
|
||||
$pos = strpos($link, 'final');
|
||||
$link = substr($link, 0, $pos);
|
||||
|
Reference in New Issue
Block a user