Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic e-mail settings to config.php #1568

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions application/config/email.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
// Example: $config['smtp_host'] = 'smtp.gmail.com';
// @link https://codeigniter.com/user_guide/libraries/email.html

$config['useragent'] = 'Easy!Appointments';
$config['protocol'] = 'mail'; // or 'smtp'
$config['mailtype'] = 'html'; // or 'text'
// $config['smtp_debug'] = '0'; // or '1'
// $config['smtp_auth'] = TRUE; //or FALSE for anonymous relay.
// $config['smtp_host'] = '';
// $config['smtp_user'] = '';
// $config['smtp_pass'] = '';
// $config['smtp_crypto'] = 'ssl'; // or 'tls'
// $config['smtp_port'] = 25;
// $config['from_name'] = '';
// $config['from_address'] = '';
// $config['reply_to'] = '';
$config['useragent'] = Config::EMAIL_USERAGENT;
$config['protocol'] = Config::EMAIL_PROTOCOL;
$config['mailtype'] = Config::EMAIL_MAILTYPE;
$config['smtp_debug'] = Config::EMAIL_SMTP_DEBUG;
$config['smtp_auth'] = Config::EMAIL_SMTP_AUTH;
$config['smtp_host'] = Config::EMAIL_SMTP_HOST;
$config['smtp_user'] = Config::EMAIL_SMTP_USER;
$config['smtp_pass'] = Config::EMAIL_SMTP_PASS;
$config['smtp_crypto'] = Config::EMAIL_SMTP_CRYPTO;
$config['smtp_port'] = Config::EMAIL_SMTP_PORT;
$config['from_name'] = Config::EMAIL_FROM_NAME;
$config['from_address'] = Config::EMAIL_FROM_ADDRESS;
$config['reply_to'] = Config::EMAIL_REPLY_TO;
$config['crlf'] = "\r\n";
$config['newline'] = "\r\n";
33 changes: 33 additions & 0 deletions config-sample.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,37 @@ class Config
const GOOGLE_SYNC_FEATURE = false; // Enter TRUE or FALSE
const GOOGLE_CLIENT_ID = '';
const GOOGLE_CLIENT_SECRET = '';

// ------------------------------------------------------------------------
// E-MAIL SETTINGS
// ------------------------------------------------------------------------

// Add custom values by settings them to the $config array in application/config/email.php.
// @link https://codeigniter.com/user_guide/libraries/email.html

const EMAIL_USERAGENT = 'Easy!Appointments';
const EMAIL_PROTOCOL = 'mail'; // or 'smtp'
const EMAIL_MAILTYPE = 'html'; // or 'text'
const EMAIL_SMTP_DEBUG = '0'; // or '1'
const EMAIL_SMTP_AUTH = TRUE; //or FALSE for anonymous relay.
const EMAIL_SMTP_HOST = '';
const EMAIL_SMTP_USER = '';
const EMAIL_SMTP_PASS = '';
const EMAIL_SMTP_CRYPTO = 'ssl';
const EMAIL_SMTP_PORT = 25;
const EMAIL_FROM_NAME = '';
const EMAIL_FROM_ADDRESS = '';
const EMAIL_REPLY_TO = '';


/* Example Exchange OnPremise 2019
const EMAIL_PROTOCOL = 'smtp'; // or 'smtp'
const EMAIL_SMTP_AUTH = TRUE; //or FALSE for anonymous relay.
const EMAIL_SMTP_HOST = ''; // hostname
const EMAIL_SMTP_USER = ''; // e-mail
const EMAIL_SMTP_PASS = ''; // password
const EMAIL_SMTP_CRYPTO = 'tls'; // STARTTLS necessary
const EMAIL_SMTP_PORT = 587;
const EMAIL_FROM_ADDRESS = ''; // e-mail
*/
}