Installation

Email From WeBWorK Not Working

Email From WeBWorK Not Working

by Doug Tinklenberg -
Number of replies: 2
When trying to email the instructor, I get this error:

Failed to open the mailer: 5.5.2 : Sender address rejected: need fully-qualified address for ""Mike Janssen" " on host "smtp.domain.edu"@dordt.edu>

The maillog on our SMTP server gives this error:

RCPT from webwork.domain.edu[198.97.44.92]: 504 5.5.2 <linuxadmin.edu>: Sender address rejected: need fully-qualified address

@dordt.edu>
It appears that webwork when sending the email is stripping the @domain from the SMTP sender when sending the email even though I have it entered in site.conf.@dordt.edu>

@dordt.edu>
$mail{smtpSender} = "linuxadmin@domain.edu";


Is this a bug or do I have something not configured correctly?

Thanks
@dordt.edu>
In reply to Doug Tinklenberg

Re: Email From WeBWorK Not Working

by Davide Cervone -
I suspect the the issue is the Perl is doing variable substitution thinking @domain is an array variable (empty). Try using single quotes rather than double quotes:

$mail{smtpSender} = 'linuxadmin@domain.edu';

The should prevent the variable substitution and give you the address you want.