Commit 988d507c authored by Karl Kornel's avatar Karl Kornel
Browse files

Trying using SMTP instead of sendmail

parent 8fed11e9
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -545,9 +545,16 @@ EOF

	# Send the email
	my $email_sender = Email::Send->new({
		mailer => 'sendmail',
		mailer      => 'SMTP',
		mailer_args => [
			Host => 'smtp.stanford.edu',
		],
	});
	$email_sender->send($email->as_string);
	my $send_result = $email_sender->send($email->as_string);
	if (!$send_result) {
		log_msg("Error sending email: $send_result\n");
		return 0;
	}

	# Finally, done!
	return 1;