@@ -25,4 +25,11 @@ $sugar_config['passwordsetting']['systexpirationtime'] = '';
|
||||
$sugar_config['passwordsetting']['SystemGeneratedPasswordON'] = '1';
|
||||
$sugar_config['passwordsetting']['systexpirationtype'] = '1';
|
||||
$sugar_config['verify_client_ip'] = false;
|
||||
$sugar_config['GMail_address'] = "system@e5.pl";
|
||||
$sugar_config['GMail_password'] = "upkb sxxb pmxw lsaj";
|
||||
$sugar_config['GMail_host'] = "smtp.gmail.com";
|
||||
$sugar_config['GMail_SMTPAuth'] = true;
|
||||
$sugar_config['GMail_SMTPSecure'] = 'tls';
|
||||
$sugar_config['GMail_port'] = 587;
|
||||
$sugar_config['GMail_CharSet'] = 'UTF-8';
|
||||
/***CONFIGURATOR***/
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
global $sugar_config;
|
||||
error_reporting(E_ERROR);
|
||||
ini_set('display_errors', 1);
|
||||
|
||||
@@ -12,7 +13,6 @@ chdir(realpath(dirname(__FILE__)));
|
||||
require_once('include/entryPoint.php');
|
||||
require_once("include/database/MysqliManager.php");
|
||||
|
||||
global $sugar_config;
|
||||
$config = $sugar_config['dbconfig'];
|
||||
|
||||
$GLOBALS['db']->connect($config, true, $config['db_name']);
|
||||
@@ -25,7 +25,8 @@ return;
|
||||
|
||||
function checkEDISales()
|
||||
{
|
||||
require_once('modules/EcmSales/EcmSale.php');
|
||||
global $sugar_config;
|
||||
require_once('modules/EcmSales/EcmSale.php');
|
||||
require_once('modules/EcmSales/readXML.php');
|
||||
|
||||
require_once 'include/phpMailer2/class.phpmailer.php';
|
||||
@@ -114,14 +115,14 @@ function checkEDISales()
|
||||
|
||||
$mail = new PHPMailer2();
|
||||
$mail->isSMTP();
|
||||
$mail->setFrom('system@e5.pl', 'Usługa importu EDI');
|
||||
$mail->Host = 'smtp.gmail.com';
|
||||
$mail->SMTPAuth = true;
|
||||
$mail->Username = 'system@e5.pl';
|
||||
$mail->Password = 'upkb sxxb pmxw lsaj';
|
||||
$mail->SMTPSecure = 'tls';
|
||||
$mail->Port = 587;
|
||||
$mail->CharSet = 'UTF-8';
|
||||
$mail->setFrom($sugar_config['GMail_address'], 'Usługa importu EDI');
|
||||
$mail->Host = $sugar_config['GMail_host'];
|
||||
$mail->SMTPAuth = $sugar_config['GMail_SMTPAuth'];
|
||||
$mail->Username = $sugar_config['GMail_address'];
|
||||
$mail->Password = $sugar_config['GMail_password'];
|
||||
$mail->SMTPSecure = $sugar_config['GMail_SMTPSecure'];
|
||||
$mail->Port = $sugar_config['GMail_port'];
|
||||
$mail->CharSet = $sugar_config['GMail_CharSet'];
|
||||
$mail->addAddress('mz@bim-it.pl', 'Michał Zieliński');
|
||||
$mail->addAddress('rl@e5.pl', 'Ryszard Lisiecki');
|
||||
$mail->addAddress('mf@e5.pl', 'Małgorzata Franiewska');
|
||||
|
||||
@@ -184,15 +184,15 @@ $mail = new PHPMailer2 ();
|
||||
$mail->From = $defaults['email'];
|
||||
$mail->FromName = $defaults['name'];
|
||||
$mail->isSMTP(); // Set mailer to use SMTP
|
||||
$mail->Host = 'smtp.gmail.com';
|
||||
$mail->SMTPAuth = true;
|
||||
$mail->Username = 'system@e5.pl';
|
||||
$mail->Password = 'upkb sxxb pmxw lsaj';
|
||||
$mail->Host = $sugar_config['GMail_host'];
|
||||
$mail->SMTPAuth = $sugar_config['GMail_SMTPAuth'];
|
||||
$mail->Username = $sugar_config['GMail_address'];
|
||||
$mail->Password = $sugar_config['GMail_password'];
|
||||
|
||||
$mail->CharSet = 'UTF-8';
|
||||
$mail->charSet = "UTF-8";
|
||||
$mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
|
||||
$mail->Port = 587;
|
||||
$mail->CharSet = $sugar_config['GMail_CharSet'];
|
||||
$mail->charSet = $sugar_config['GMail_CharSet'];
|
||||
$mail->SMTPSecure = $sugar_config['GMail_SMTPSecure']; // Enable TLS encryption, `ssl` also accepted
|
||||
$mail->Port = $sugar_config['GMail_port'];
|
||||
$mail->Subject = from_html($emailTemp->subject);
|
||||
if ($emailTemp->text_only != 1) {
|
||||
$mail->IsHTML(true);
|
||||
|
||||
Reference in New Issue
Block a user