Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../var/softacul.../chamilo
File: mail.conf.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* This file holds the configuration settings
[2] Fix | Delete
* for phpmailer Class.
[3] Fix | Delete
*
[4] Fix | Delete
* The settings can use an optional index at the first level to represent the ID of the
[5] Fix | Delete
* URL in case you use multi-url for example: $platform_email[2]['SMTP_HOST'] = 'awesome.mail.server'.
[6] Fix | Delete
*
[7] Fix | Delete
* @package chamilo.configuration
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
$platform_email['SMTP_FROM_EMAIL'] = ''; //See the function __construct() in main/inc/lib/notification.lib.php for more details on how the SMTP FROM email is defined and what to indicate here if needed to override users configuration
[11] Fix | Delete
$platform_email['SMTP_FROM_NAME'] = '';
[12] Fix | Delete
$platform_email['SMTP_HOST'] = 'localhost'; // If using SMTP use the domain name example: mywebmail.example.net
[13] Fix | Delete
$platform_email['SMTP_PORT'] = 25;
[14] Fix | Delete
$platform_email['SMTP_MAILER'] = 'mail'; // mail, sendmail or smtp (Windows probably only supports smtp)
[15] Fix | Delete
$platform_email['SMTP_AUTH'] = 0;
[16] Fix | Delete
$platform_email['SMTP_USER'] = '';
[17] Fix | Delete
$platform_email['SMTP_PASS'] = '';
[18] Fix | Delete
$platform_email['SMTP_CHARSET'] = 'UTF-8';
[19] Fix | Delete
$platform_email['SMTP_UNIQUE_SENDER'] = 0; // to send all mails from the same user
[20] Fix | Delete
$platform_email['SMTP_DEBUG'] = 0; // change to 1 to enable smtp debug
[21] Fix | Delete
$platform_email['SMTP_SECURE'] = 'tls'; // if you're using SSL: ssl; or TLS: tls. (only used if SMTP_AUTH==1)
[22] Fix | Delete
$platform_email['SMTP_UNIQUE_REPLY_TO'] = 0; // to use AWS SMS service, SMTP_UNIQUE_SENDER and this have to be = 1
[23] Fix | Delete
// If you have certificate problems see:
[24] Fix | Delete
// https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting#updating-ca-certificates
[25] Fix | Delete
/*$platform_email['SMTPOptions'] = [
[26] Fix | Delete
'ssl' => [
[27] Fix | Delete
'verify_peer' => false,
[28] Fix | Delete
'verify_peer_name' => false,
[29] Fix | Delete
'allow_self_signed' => true,
[30] Fix | Delete
],
[31] Fix | Delete
];*/
[32] Fix | Delete
// DKIM requires the generation of a public/private keypair and the configuration of a TXT record in your DNS
[33] Fix | Delete
// The TXT record should look like this: chamilo._domainkey.yourdomain.ext IN TXT "v=1; k=rsa; s=chamilo; p=PubKey..."
[34] Fix | Delete
// to match the following selector
[35] Fix | Delete
// Also, using SMTP_UNIQUE_SENDER is required if users have e-mails from different domains
[36] Fix | Delete
$platform_email['DKIM'] = 0; //enable DKIM by setting this to 1
[37] Fix | Delete
$platform_email['DKIM_SELECTOR'] = 'chamilo'; // an indicator of the application sending the e-mail through this specific DKIM key
[38] Fix | Delete
$platform_email['DKIM_DOMAIN'] = 'mydomain.com'; //the domain for e-mail sending, not necessarily api_get_path(WEB_PATH)
[39] Fix | Delete
$platform_email['DKIM_PRIVATE_KEY_STRING'] = ''; //the private key in a string format
[40] Fix | Delete
$platform_email['DKIM_PRIVATE_KEY'] = ''; //the private key as the path to a file. The file needs to be accessible to PHP!
[41] Fix | Delete
$platform_email['DKIM_PASSPHRASE'] = ''; //the passohrase for the private key defined in the last 2 lines
[42] Fix | Delete
// Some e-mail clients do not understand the descriptive LD+JSON format,
[43] Fix | Delete
// showing it as a loose JSON string to the final user. If this is your case,
[44] Fix | Delete
// you might want to set the variable below to 'false' to disable this header.
[45] Fix | Delete
$platform_email['EXCLUDE_JSON'] = false;
[46] Fix | Delete
[47] Fix | Delete
// Fill the following only for mail services with OAuth2.0 authentication. Otherwise leave untouched.
[48] Fix | Delete
$platform_email['XOAUTH2_METHOD'] = false;
[49] Fix | Delete
$platform_email['XOAUTH2_URL_AUTHORIZE'] = 'https://provider.example/oauth2/auth';
[50] Fix | Delete
$platform_email['XOAUTH2_URL_ACCES_TOKEN'] = 'https://provider.example/token';
[51] Fix | Delete
$platform_email['XOAUTH2_URL_RESOURCE_OWNER_DETAILS'] = 'https://provider.example/userinfo';
[52] Fix | Delete
$platform_email['XOAUTH2_SCOPES'] = '';
[53] Fix | Delete
$platform_email['XOAUTH2_CLIENT_ID'] = '';
[54] Fix | Delete
$platform_email['XOAUTH2_CLIENT_SECRET'] = '';
[55] Fix | Delete
$platform_email['XOAUTH2_REFRESH_TOKEN'] = '';
[56] Fix | Delete
[57] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function