<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Mail; use Illuminate\Support\Facades\Mail; class MailUtil { public static function send($VjXez, $POE6d, $pwVFJ, $OQfgJ = array(), $s2vDf = null, $aY5Ol = array(), $DOMdu = null) { goto IwG_J; sBeYt: Mail::send($jFJYP, $OQfgJ, function ($qFdbi) use($VjXez, $s2vDf, $POE6d, $aY5Ol) { $qFdbi->to($VjXez, $s2vDf)->subject($POE6d); if (!empty($aY5Ol['attachment'])) { foreach ($aY5Ol['attachment'] as $p1p8K => $qBhw8) { $qFdbi->attach($qBhw8, array('as' => $p1p8K)); } } }); goto XQ4PH; Ki53n: if (!$vNpAA) { goto TBjtC; YdrCO: config(array('mail' => array('driver' => 'smtp', 'host' => $DxXWh->getWithEnv('systemEmailSmtpServer'), 'port' => $DxXWh->getWithEnv('systemEmailSmtpSsl', false) ? 465 : 25, 'encryption' => $DxXWh->getWithEnv('systemEmailSmtpSsl', false) ? 'ssl' : 'tls', 'from' => array('address' => $DxXWh->getWithEnv('systemEmailSmtpUser'), 'name' => $DxXWh->getWithEnv('systemEmailFromName', $DxXWh->getWithEnv('siteName') . ' @ ' . $DxXWh->getWithEnv('siteDomain'))), 'username' => $DxXWh->getWithEnv('systemEmailSmtpUser'), 'password' => $DxXWh->getWithEnv('systemEmailSmtpPassword')))); goto fagAk; TBjtC: $vNpAA = true; goto we7NF; we7NF: $DxXWh = modstart_config(); goto YdrCO; fagAk: } goto GYfM0; chn87: static $vNpAA = false; goto Ki53n; Z85tB: if (!view()->exists($jFJYP)) { $jFJYP = 'theme.' . modstart_config('siteTemplate', 'default') . '.mail.' . $pwVFJ; if (!view()->exists($jFJYP)) { $jFJYP = 'theme.default.mail.' . $pwVFJ; if (!view()->exists($jFJYP)) { if ($DOMdu) { $jFJYP = 'module::' . $DOMdu . '.View.mail.' . $pwVFJ; } if (!view()->exists($jFJYP)) { $jFJYP = 'module::Vendor.View.mail.' . $pwVFJ; } } } } goto bSc0c; GYfM0: $jFJYP = $pwVFJ; goto Z85tB; bSc0c: if (!view()->exists($jFJYP)) { throw new \Exception('mail view not found : ' . $jFJYP); } goto UKVbM; UKVbM: if (null === $s2vDf) { $s2vDf = $VjXez; } goto sBeYt; IwG_J: if (!modstart_config('systemEmailEnable', false)) { return; } goto chn87; XQ4PH: } }