Open jberanek opened 8 years ago
Debug:
[Wed Sep 21 11:35:25.352483 2016] [:error] [pid 12764:tid 920] [client 127.0.0.1:11370] [DEBUG] Preparing email for new or changed booking ..., referer: http://127.0.0.1:81/reserva/web/edit_entry.php?area=1&room=1&hour=7&minute=0&year=2016&month=9&day=22 [Wed Sep 21 11:35:25.418527 2016] [:error] [pid 12764:tid 920] [client 127.0.0.1:11370] [DEBUG] Preparing to send email ..., referer: http://127.0.0.1:81/reserva/web/edit_entry.php?area=1&room=1&hour=7&minute=0&year=2016&month=9&day=22 [Wed Sep 21 11:35:25.470562 2016] [:error] [pid 12764:tid 920] [client 127.0.0.1:11370] [DEBUG] Using backend 'mail', referer: http://127.0.0.1:81/reserva/web/edit_entry.php?area=1&room=1&hour=7&minute=0&year=2016&month=9&day=22 [Wed Sep 21 11:35:25.470562 2016] [:error] [pid 12764:tid 920] [client 127.0.0.1:11370] [DEBUG] Recipients: 'dcantos@dominio.com,cmolina@dominio.com', referer: http://127.0.0.1:81/reserva/web/edit_entry.php?area=1&room=1&hour=7&minute=0&year=2016&month=9&day=22 [Wed Sep 21 11:35:26.481238 2016] [:error] [pid 12764:tid 920] [client 127.0.0.1:11370] Could not instantiate mail function., referer: http://127.0.0.1:81/reserva/web/edit_entry.php?area=1&room=1&hour=7&minute=0&year=2016&month=9&day=22 [Wed Sep 21 11:35:26.481238 2016] [:error] [pid 12764:tid 920] [client 127.0.0.1:11370] Error sending email: Could not instantiate mail function., referer: http://127.0.0.1:81/reserva/web/edit_entry.php?area=1&room=1&hour=7&minute=0&year=2016&month=9&day=22 [Wed Sep 21 11:35:26.481238 2016] [:error] [pid 12764:tid 920] [client 127.0.0.1:11370] [DEBUG] Failed to send email: Could not instantiate mail function., referer: http://127.0.0.1:81/reserva/web/edit_entry.php?area=1&room=1&hour=7&minute=0&year=2016&month=9&day=22
Original comment by: *anonymous
I'd have a read of:
Original comment by: jberanek
[Wed Sep 21 11:50:16.820437 2016] [:error] [pid 12764:tid 920] [client 127.0.0.1:13512] [DEBUG] Preparing email for new or changed booking ..., referer: http://127.0.0.1:81/reserva/web/edit_entry.php?area=1&room=1&hour=12&minute=30&year=2016&month=9&day=22 [Wed Sep 21 11:50:16.845454 2016] [:error] [pid 12764:tid 920] [client 127.0.0.1:13512] [DEBUG] Preparing to send email ..., referer: http://127.0.0.1:81/reserva/web/edit_entry.php?area=1&room=1&hour=12&minute=30&year=2016&month=9&day=22 [Wed Sep 21 11:50:16.850458 2016] [:error] [pid 12764:tid 920] [client 127.0.0.1:13512] [DEBUG] Using backend 'smtp', referer: http://127.0.0.1:81/reserva/web/edit_entry.php?area=1&room=1&hour=12&minute=30&year=2016&month=9&day=22 [Wed Sep 21 11:50:16.850458 2016] [:error] [pid 12764:tid 920] [client 127.0.0.1:13512] [DEBUG] Recipients: 'dcantos@dominio.com,cmolina@dominio.com', referer: http://127.0.0.1:81/reserva/web/edit_entry.php?area=1&room=1&hour=12&minute=30&year=2016&month=9&day=22 [Wed Sep 21 11:50:16.851458 2016] [:error] [pid 12764:tid 920] [client 127.0.0.1:13512] Extension missing: openssl, referer: http://127.0.0.1:81/reserva/web/edit_entry.php?area=1&room=1&hour=12&minute=30&year=2016&month=9&day=22 [Wed Sep 21 11:50:16.851458 2016] [:error] [pid 12764:tid 920] [client 127.0.0.1:13512] Error sending email: Extension missing: openssl, referer: http://127.0.0.1:81/reserva/web/edit_entry.php?area=1&room=1&hour=12&minute=30&year=2016&month=9&day=22 [Wed Sep 21 11:50:16.851458 2016] [:error] [pid 12764:tid 920] [client 127.0.0.1:13512] [DEBUG] Failed to send email: Extension missing: openssl, referer: http://127.0.0.1:81/reserva/web/edit_entry.php?area=1&room=1&hour=12&minute=30&year=2016&month=9&day=22
Original comment by: *anonymous
I have these settings. /**
// WHO TO EMAIL // ------------ // The following settings determine who should be emailed when a booking is made, // edited or deleted (though the latter two events depend on the "When" settings below). // Set to TRUE or FALSE as required // (Note: the email addresses for the room and area administrators are set from the // edit_area_room.php page in MRBS) $mail_settings['admin_on_bookings'] = TRUE; // the addresses defined by $mail_settings['recipients'] below $mail_settings['area_admin_on_bookings'] = TRUE; // the area administrator $mail_settings['room_admin_on_bookings'] = TRUE; // the room administrator $mail_settings['booker'] = TRUE; // the person making the booking $mail_settings['book_admin_on_approval'] = TRUE; // the booking administrator when booking approval is enabled // (which is the MRBS admin, but this setting allows MRBS // to be extended to have separate booking approvers)
// WHEN TO EMAIL // ------------- // These settings determine when an email should be sent. // Set to TRUE or FALSE as required // // (Note: (a) the variables $mail_settings['admin_on_delete'] and // $mail_settings['admin_all'], which were used in MRBS versions 1.4.5 and // before are now deprecated. They are still supported for reasons of backward // compatibility, but they may be withdrawn in the future. (b) the default // value of $mail_settings['on_new'] is TRUE for compatibility with MRBS 1.4.5 // and before, where there was no explicit config setting, but mails were always sent // for new bookings if there was somebody to send them to)
$mail_settings['on_new'] = TRUE; // when an entry is created $mail_settings['on_change'] = TRUE; // when an entry is changed $mail_settings['on_delete'] = TRUE; // when an entry is deleted
// WHAT TO EMAIL // ------------- // These settings determine what should be included in the email // Set to TRUE or FALSE as required $mail_settings['details'] = TRUE; // Set to TRUE if you want full booking details; // otherwise you just get a link to the entry $mail_settings['html'] = TRUE; // Set to true if you want HTML mail $mail_settings['icalendar'] = FALSE; // Set to TRUE to include iCalendar details // which can be imported into a calendar. (Note: // iCalendar details will not be sent for areas // that use periods as there isn't a mapping between // periods and time of day, so the calendar would not // be able to import the booking)
// HOW TO EMAIL - LANGUAGE // -----------------------------------------
// Set the language used for emails (choose an available lang.* file). $mail_settings['admin_lang'] = 'es'; // Default is 'en'.
// HOW TO EMAIL - ADDRESSES // ------------------------ // The email addresses of the MRBS administrator are set in the config file, and // those of the room and area administrators are set though the edit_area_room.php // in MRBS. But if you have set $mail_settings['booker'] above to TRUE, MRBS will // need the email addresses of ordinary users. If you are using the "db" // authentication method then MRBS will be able to get them from the users table. But // if you are using any other authentication scheme then the following settings allow // you to specify a domain name that will be appended to the username to produce a // valid email address (eg "@domain.com"). $mail_settings['domain'] = '@dominio.com'; // If you use $mail_settings['domain'] above and username returned by mrbs contains extra // strings appended like domain name ('username.domain'), you need to provide // this extra string here so that it will be removed from the username. $mail_settings['username_suffix'] = '';
$mail_settings['admin_backend'] = 'smtp'; //$mailsettings['adminbackend'] = 'sendmail';
/***
// These settings are only used with the "smtp" backend" $smtp_settings['host'] = 'mail.dominio.com'; // SMTP server $smtp_settings['port'] = 25; // SMTP port number $smtp_settings['auth'] = TRUE; // Whether to use SMTP authentication //$smtp_settings['secure'] = 'tls'; // Encryption method: 'tls' or 'ssl' $smtp_settings['username'] = 'dcantos@dominio'; // Username (if using authentication) $smtp_settings['password'] = '****'; // Password (if using authentication)
// EMAIL - MISCELLANEOUS // ---------------------
// Set the email address of the From field. Default is 'admin_email@your.org' $mail_settings['from'] = 'alertas@asiservy.com';
// Set the recipient email. Default is 'admin_email@your.org'. You can define // more than one recipient like this "john@doe.com,scott@tiger.com" $mail_settings['recipients'] = 'dcantos@dominio.com';
// Set email address of the Carbon Copy field. Default is ''. You can define // more than one recipient (see 'recipients') $mail_settings['cc'] = '';
// Set to TRUE if you want the cc addresses to be appended to the to line. // (Some email servers are configured not to send emails if the cc or bcc // fields are set) $mail_settings['treat_cc_as_to'] = FALSE;
// The filename to be used for iCalendar attachments. Will always have the // extension '.ics' $mail_settings['ics_filename'] = "booking";
// Set this to TRUE if you want MRBS to output debug information to the browser // when you are sending email. If you are not getting emails it can be helpful // by telling you (a) whether the mail functions are being called in the first place //(b) whether there are addresses to send email to and (c) the result of the mail // sending operation. $mail_settings['debug'] = TRUE; // Set this to TRUE if you do not want any email sent $mail_settings['disabled'] = FALSE;
Original comment by: *anonymous
Again I'd have to say that the debug is quite clear. You need PHP's openssl extension in order to send email with TLS/SSL.
Original comment by: jberanek
If you really can't get the openssl extension enabled you may need to edit the function sendMail() in functions_mail.inc to add the line:
$mail->SMTPAutoTLS = false;
as otherwise PHPMailer will attempt to use TLS if the server is TLS capable.
Original comment by: jberanek
I had to do this too to stop PHP trying to use SSL
$mail->SMTPAuth = false;
$mail->SMTPSecure = false;
Original comment by: *anonymous
Dear,
I'm using the latest version 1.5.0 but I want to know how to configure sending mails for example, add a new booking calendar for sala1 but I want to send a notification mail to users involved in the meeting as I would. I have an internal mail zimbra . your help
Reported by: *anonymous
Original Ticket: mrbs/support-requests/1065