/
email.php
51 lines (40 loc) · 2.7 KB
/
email.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
* LimeSurvey
* Copyright (C) 2007-2011 The LimeSurvey Project Team / Carsten Schmitz
* All rights reserved.
* License: GNU/GPL License v2 or later, see LICENSE.php
* LimeSurvey is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// ===== CAUTION - DO NOT EDIT THIS FILE ======
// This file contains the default email settings for LimeSurvey
// Do not edit this file as it may change in future revisions of the software.
//
// Correct procedure to set up LimeSurvey is the following:
// 1.) copy the lines corresponding to the parameter you want to change
// from this file to the config.php file
// 2.) edit these lines in config.php
// Email Settings
// These settings determine how LimeSurvey will send emails
$config = array();
$config['siteadminemail'] = 'your-email@example.net'; // The default email address of the site administrator
$config['siteadminbounce'] = 'your-email@example.net'; // The default email address used for error notification of sent messages for the site administrator (Return-Path)
$config['siteadminname'] = 'Your Name'; // The name of the site administrator
$config['emailmethod'] = 'mail'; // The following values can be used:
$config['protocol'] = $config['emailmethod'];
// mail - use internal PHP Mailer
// sendmail - use Sendmail Mailer
// smtp - use SMTP relaying
$config['emailsmtphost'] = 'localhost'; // Sets the SMTP host. You can also specify a different port than 25 by using
// this format: [hostname:port] (e.g. 'smtp1.example.com:25').
$config['emailsmtpuser'] = ''; // SMTP authorisation username - only set this if your server requires authorization - if you set it you HAVE to set a password too
$config['emailsmtppassword'] = ''; // SMTP authorisation password - empty password is not allowed
$config['emailsmtpssl'] = ''; // Set this to 'ssl' or 'tls' to use SSL/TLS for SMTP connection
$config['emailsmtpdebug'] = 0; // Settings this to 1 activates SMTP debug mode
$config['maxemails'] = 50; // The maximum number of emails to send in one go (this is to prevent your mail server or script from timeouting when sending mass mail)
$config['charset'] = "utf-8";
return $config; // You can change this to change the charset of outgoing emails to some other encoding - like 'iso-8859-1'