--- trunk/lib/App/RoomReservation/Reservation.pm 2009/06/30 15:10:55 1133 +++ trunk/lib/App/RoomReservation/Reservation.pm 2009/07/01 17:35:48 1147 @@ -11,6 +11,8 @@ extends 'App::RoomReservation'; +with 'App::RoomReservation::Email'; + use lib 'lib'; use Frey::PPI; @@ -135,6 +137,17 @@ my $sth = $self->dbh->prepare( $sql ); $sth->execute( @vals ); + my $url = $self->url_for( 'Confirmation/verify_as_markup?token=' . $self->token ); + + $self->send( $self->email, + 'Confirm your reservation for lecture', <<__EMAIL__ +Please click following link to confirm your reservation for lecture +and get seat assigned to you. + +$url +__EMAIL__ + ); + return $self->ime . ' ' . $self->prezime . qq| we have accepted your registration!| @@ -144,13 +157,6 @@ by clicking on link which should be in your e-mail INBOX shortly | - . qq|verify| - . ' or ' - . qq|cancel| ; }