--- loncom/interface/lonmsg.pm 2022/01/18 17:33:13 1.248 +++ loncom/interface/lonmsg.pm 2022/09/18 22:33:45 1.249 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines for messaging # -# $Id: lonmsg.pm,v 1.248 2022/01/18 17:33:13 raeburn Exp $ +# $Id: lonmsg.pm,v 1.249 2022/09/18 22:33:45 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -510,12 +510,8 @@ sub sendnotification { $text=~s/\<\;/\/gs; - my $homeserver = &Apache::lonnet::homeserver($touname,$toudom); - my $hostname = &Apache::lonnet::hostname($homeserver); - my $protocol = $Apache::lonnet::protocol{$homeserver}; - $protocol = 'http' if ($protocol ne 'https'); -#FIXME - my $url = $protocol.'://'.$hostname. + my $touhome = &Apache::lonnet::homeserver($touname,$toudom); + my $url = &Apache::lonnet::url_prefix('',$toudom,$touhome,'email'). '/adm/email?username='.$touname.'&domain='.$toudom. '&display='.&escape($msgid); my ($sendtime,$shortsubj,$fromname,$fromdomain,$status,$fromcid,