Have you got your mail settings in the config file *before* the lines

 

// This next section must come at the end of the config file - ie after any

// language and mail settings, as the definitions are used in the included file

require_once "language.inc";   // DO NOT DELETE THIS LINE

 

Campbell

 

 

From: Md. Abdur Razzak Ali Sorker [mailto:sorker@icddrb.org]
Sent: 26 March 2011 13:16
To: 'General purpose list (support/developers/users)'
Subject: Re: [MRBS-general] smtp mail does not work after upgrade from 1.4.4.1 to 1.4.6

 

I tried with putting die(“About to send mail”); but did not get anything. And our mail server is working for other applications and it was working for mrbs 1.4.4.1 as well.

 

Mail server is in production and using for our organization email.

 

Appreciate if you kindly can help me to find out the reason why it does not work for the latest version.

 

Regards
Razzak

 

From: Campbell Morrison [mailto:campbell.morrison@gmail.com]
Sent: Thursday, March 24, 2011 5:00 PM
To: 'General purpose list (support/developers/users)'
Subject: Re: [MRBS-general] smtp mail does not work after upgrade from 1.4.4.1 to 1.4.6

 

The config looks OK as far as I can see.    Can you try inserting the following line

 

  die("About to send mail");

 

at the beginning of the function sendMail() in functions_mail.in – about line 981.

 

If it gets that far then it means there’s probably something wrong with your server mail configuration.  If it doesn’t get that far it will be an MRBS problem.

 

Campbell

 

 

 

From: Md. Abdur Razzak Ali Sorker [mailto:sorker@icddrb.org]
Sent: 24 March 2011 10:39
To: 'General purpose list (support/developers/users)'
Cc: mail@campbellmorrison.co.uk
Subject: RE: [MRBS-general] smtp mail does not work after upgrade from 1.4.4.1 to 1.4.6

 

Hi Campbell

I tried all of them but do not work at all. For your information no one can get email and mail server is located at different server, so smtp may be the only option.

 

 

Thanks
Razzak

From: Campbell Morrison [mailto:campbell.morrison@gmail.com]
Sent: Thursday, March 24, 2011 4:34 PM
To: 'General purpose list (support/developers/users)'
Subject: Re: [MRBS-general] smtp mail does not work after upgrade from 1.4.4.1 to 1.4.6

 

Can you try setting

 

$mail_settings['admin_on_bookings']      =  TRUE; 

 

If that doesn’t produce any email, can you try one of the other backends (eg ‘mail’ or ‘sendmail’)?

 

Campbell

 

 

 

From: Md. Abdur Razzak Ali Sorker [mailto:sorker@icddrb.org]
Sent: 24 March 2011 09:45
To: mrbs-general@lists.sourceforge.net
Subject: [MRBS-general] smtp mail does not work after upgrade from 1.4.4.1 to 1.4.6

 

Hello

We have upgraded mrbs from 1.4.4.1 to 1.4.6 but now the email does not work. we are get getting any email.

 

The config are as bellow:

 

/**********************************************

 * Email 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']      = FALSE;  // the addresses defined by $mail_settings['recipients'] below

$mail_settings['area_admin_on_bookings'] = FALSE;  // 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'] = FALSE;  // 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 - CHARACTER SET AND LANGUAGE

// -----------------------------------------

// You can override the charset used in emails if you like, but be sure

// the charset you choose can handle all the characters in the translation

// and that anyone may use in a booking description

//$mail_charset = "iso-8859-1";

 

// Set the language used for emails (choose an available lang.* file).

$mail_settings['admin_lang'] = 'en';   // 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'] = '';

// 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'] = '';

 

 

// HOW TO EMAIL - BACKEND

// ----------------------

// Set the name of the backend used to transport your mails. Either 'mail',

// 'smtp' or 'sendmail'. Default is 'mail'. See INSTALL for more details.

 

$mail_settings['admin_backend'] = 'smtp';

 

 

 

/*******************

 * SMTP settings

 */

 

// These settings are only used with the "smtp" backend"

 

$smtp_settings['host'] = 'mail.icddrb.org';  // SMTP server

$smtp_settings['port'] = 25;           // SMTP port number

$smtp_settings['auth'] = FALSE;        // Whether to use SMTP authentication

$smtp_settings['username'] = '';       // 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'] = 'no-reply@icddrb.org';

 

// 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'] = 'admin_email@your.org';

 

// Set email address of the Carbon Copy field. Default is ''. You can define

// more than one recipient (see 'recipients')

$mail_settings['cc'] = 'safiqul@icddrb.org';

 

// 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'] = TRUE;

 

// The filename to be used for iCalendar attachments.   Will always have the

// extension '.ics'

$mail_settings['ics_filename'] = "booking";

 

Can anyone help me in this regards.

 

Thanks
Razzak