/home/sharedstore/public_html/prestashop.sharedstore.ma/src/Adapter/Mail
Edit: /home/sharedstore/public_html/prestashop.sharedstore.ma/src/Adapter/Mail/MailingInformation.php (1801B)
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
namespace PrestaShop\PrestaShop\Adapter\Mail;
use Configuration;
/**
* Retrieve mailing information.
*/
class MailingInformation
{
/**
* @return bool
*/
public function isNativeMailUsed()
{
return Configuration::get('PS_MAIL_METHOD') == 1;
}
/**
* @return array
*/
public function getSmtpInformation()
{
return [
'server' => Configuration::get('PS_MAIL_SERVER'),
'user' => Configuration::get('PS_MAIL_USER'),
'password' => Configuration::get('PS_MAIL_PASSWD'),
'encryption' => Configuration::get('PS_MAIL_SMTP_ENCRYPTION'),
'port' => Configuration::get('PS_MAIL_SMTP_PORT'),
];
}
}