Skip to content

Commit

Permalink
Merge pull request #796 from openwebwork/hot_fix_sendmail_notificatio…
Browse files Browse the repository at this point in the history
…n_bug

Hot fix sendmail notification bug
  • Loading branch information
pstaabp authored Jul 27, 2017
2 parents d24c023 + 7b0eb0d commit 5458777
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion conf/localOverrides.conf.dist
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ $showeditors{simplepgeditor} = 0;
## Key database, see the Session Managment section
## of defaults.config.dist

## For session management using the key databasse table, uncomment the following line,
## For session management using the key database table, uncomment the following line,
## which will override the setting $session_management_via = "session_cookie"
## set in defaults.config.

Expand Down
5 changes: 5 additions & 0 deletions courses.dist/modelCourse/course.conf
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,10 @@ $dbLayoutName = 'sql_single';
# controls if the Tagging features are displayed. This is mainly used by library editors
# $permissionLevels{modify_tags} = "professor";

# Settings to connect this course to Canvas via LTI.
# $LTIGradeOnSubmit = 1;
# $debug_lti_parameters = 1;
# $LTIBasicConsumerSecret = "xxxxxxxxx";
# $LTIGradeMode = "homework";

1;
16 changes: 9 additions & 7 deletions lib/WeBWorK/ContentGenerator/Instructor/SendMail.pm
Original file line number Diff line number Diff line change
Expand Up @@ -910,13 +910,15 @@ sub email_notification {

my $mailing_errors = "";

my $transport = Email::Sender::Transport::SMTP->new({
host => $ce->{mail}->{smtpServer},
ssl => $ce->{mail}->{tls_allowed}//1, ## turn on ssl security
timeout => $ce->{mail}->{smtpTimeout}
});

$transport->port($ce->{mail}->{smtpPort}) if defined $ce->{mail}->{smtpPort};
# my $transport = Email::Sender::Transport::SMTP->new({
# host => $ce->{mail}->{smtpServer},
# ssl => $ce->{mail}->{tls_allowed}//1, ## turn on ssl security
# timeout => $ce->{mail}->{smtpTimeout}
# });
#
# $transport->port($ce->{mail}->{smtpPort}) if defined $ce->{mail}->{smtpPort};
# createEmailSenderTransportSMTP is defined in ContentGenerator
my $transport = $self->createEmailSenderTransportSMTP();

my $email = Email::Simple->create(
header => [
Expand Down

0 comments on commit 5458777

Please sign in to comment.