phpScheduleIt
May 23, 2013, 10:18:54 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Mail sent when I'm joying a reservetion doesn't work  (Read 3905 times)
franky4fingers
Jr. Member
**

Karma: 1
Posts: 53


« on: May 29, 2006, 08:43:39 AM »

When a user books a resource  and click on "Allow registered users to join?" and another user joins the reservation, an email is sent to an wrong address: eg. memberid|user@domain.tld.

Could you verify?

Thanks a lot!

franky4fingers
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #1 on: May 30, 2006, 07:57:17 PM »

That is a bug.  Just fixed it.  If you want to try the changes, just change line 106 in join.php to:

Code:
$info[$user->userid] = $user->email;
$res->invite_users($info, array(), $user, $accept_code);
Logged
franky4fingers
Jr. Member
**

Karma: 1
Posts: 53


« Reply #2 on: June 01, 2006, 09:45:08 AM »

Quote from: "Nick"
That is a bug.  Just fixed it.  If you want to try the changes, just change line 106 in join.php to:

Code:
$info[$user->userid] = $user->email;
$res->invite_users($info, array(), $user, $accept_code);


Hi Nick,
I've commented line 106 of join.php:
Code:
//$res->invite_users(array($user->userid  . '|' . $user->email), array(), $user, $accept_code);

After, I wrote new code on the same line:
Code:
$info[$user->userid] = $user->email;
$res->invite_users($info, array(), $user, $accept_code);

Here what happens:

1) Mr. Brown makes a reservation and flags 'Allow registered users to join?'.
2) Mr. Brown gets an email of 'Reservation Created'.
3) Mr. Pink selects the reservation of Mr. Brown.
4) Mr. Pink clicks on 'Participants' -> 'My Participant Options' -> 'Join'.
5) An email is sent from 'Mr. Brown' to 'Mr. Pink'  (and not viceversa) wiht subject 'Reservation Invitation' and body ' m ' (yes just the letter m).

I think something's wrong.....


franky4fingers
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #3 on: June 02, 2006, 12:33:11 AM »

I'm seeing this issue, too and can't figure out what is going on.  The same call is made when a reservation owner invites a user but the email comes out fine.  I'm digging into this issue now.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!