mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 16:44:28 +00:00
- Added new parameter $email_from_system to MailJob controller
- Added library MailLib to manage the sending of the email - Changed configuration file mail.php - Changed configuration file message.php - Changed library MessageLib to get a better separation between the messaging system and sending e-mail
This commit is contained in:
+12
-15
@@ -2,32 +2,29 @@
|
||||
|
||||
// Define constants
|
||||
define("EMAIL_CONFIG_INDEX", "mail");
|
||||
define("EMAIL_KONTAKT_TYPE", "email");
|
||||
define("SENT_INFO_NEWLINE", "\n");
|
||||
|
||||
// Define configuration parameters
|
||||
$config["email_number_to_sent"] = 1000; // Number of emails to sent each time sendAll is called
|
||||
$config["email_number_per_time_range"] = 1; // Number of emails to sent before pause
|
||||
$config["email_time_range"] = 1; // Length of the pause in seconds
|
||||
$config["email_from_system"] = "[email protected]";
|
||||
$config["email_send_immediately"] = false;
|
||||
|
||||
// Smtp: if the CI email library has to connect to a smtp server
|
||||
// Mail: if the system is setup to send emails with the standard php mail function
|
||||
// Sendmail: if the system is setup to send email via Sendmail (or similar)
|
||||
$config['protocol'] = 'smtp'; // mail, sendmail, or smtp
|
||||
$config["protocol"] = ""; // mail, sendmail, or smtp
|
||||
|
||||
// If protocol is set to sendmail
|
||||
$config['mailpath'] = ''; // SThe server path to Sendmail (or similar)
|
||||
$config["mailpath"] = ""; // SThe server path to Sendmail (or similar)
|
||||
|
||||
// If protocol is set to smtp
|
||||
$config['smtp_host'] = 'localhost'; // SMTP Server Address
|
||||
$config['smtp_port'] = 25;
|
||||
$config['smtp_timeout'] = 5; // in seconds
|
||||
$config['smtp_keepalive'] = false; // Enable persistent SMTP connections
|
||||
$config['smtp_user'] = '';
|
||||
$config['smtp_pass'] = '';
|
||||
$config['wordwrap'] = true; // {unwrap}http://example.com/a_long_link_that_should_not_be_wrapped.html{/unwrap}
|
||||
$config['wrapchars'] = 76; // Character count to wrap at.
|
||||
$config['mailtype'] = 'html'; // html or text
|
||||
$config['priority'] = 3; // Email Priority. 1 = highest. 5 = lowest. 3 = normal
|
||||
$config["smtp_host"] = "localhost"; // SMTP Server Address
|
||||
$config["smtp_port"] = 25;
|
||||
$config["smtp_timeout"] = 5; // in seconds
|
||||
$config["smtp_keepalive"] = false; // Enable persistent SMTP connections
|
||||
$config["smtp_user"] = "";
|
||||
$config["smtp_pass"] = "";
|
||||
$config["wordwrap"] = true; // {unwrap}http://example.com/a_long_link_that_should_not_be_wrapped.html{/unwrap}
|
||||
$config["wrapchars"] = 76; // Character count to wrap at.
|
||||
$config["mailtype"] = "html"; // html or text
|
||||
$config["priority"] = 3; // Email Priority. 1 = highest. 5 = lowest. 3 = normal
|
||||
Reference in New Issue
Block a user