Index: publicbookings.public.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/publicbookings/publicbookings.public.inc,v
retrieving revision 1.7
diff -u -p -r1.7 publicbookings.public.inc
--- publicbookings.public.inc	30 Mar 2009 22:18:34 -0000	1.7
+++ publicbookings.public.inc	8 May 2009 10:30:20 -0000
@@ -159,9 +159,14 @@ function publicbookings_request_form_sub
   // no message for BOOKINGSAPI_TIME_CONFLICT, as we should have prevented it before we got here
   switch ($save_result) {
     case SAVED_NEW:
-      $op = t('submitted');
-      $blurb .= '<p>'.t('A confirmation link has been sent to your email address.
+        $op = t('submitted');
+      if (variable_get('publicbookings_sendmail',true)) {
+        $blurb .= '<p>'.t('A confirmation link has been sent to your email address.
             Check your email and visit the link to proceed.').'</p>';
+      }
+      else {
+        $blurb .= '<p>'.t('A confirmation of your booking has been sent to your email address.').'</p>';
+      }
       break;
     case SAVED_UPDATED:
       $op = t('updated');
@@ -269,4 +274,4 @@ function publicbookings_public_disabled_
   $blurb = t('The public booking system is currently disabled. Try again later.');
   $blurb = '<p>'.$blurb.'</p>';
   return $blurb;
-}
\ No newline at end of file
+}
