## Forum archive 2000-2006

### John Jones - sending e-mail

by Arnold Pizer -
Number of replies: 0
 sending e-mail topic started 1/21/2003; 2:35:55 PMlast post 1/28/2003; 1:55:16 PM
 John Jones - sending e-mail  1/21/2003; 2:35:55 PM (reads: 1368, responses: 5) Hi, We just started to use the e-mail feature of WeBWorK. Some of my faculty were confused by the From and Reply-to spots (they simply typed their names in which generated faulty e-mail addresses). Leaving them blank is supposed to have them filled with the feedback address, but that didn't seem to work. I think it is because there is no default.msg file. I think the best solution would be to have the feedback address pre-entered into From and Reply-to fields in this circumstance. It just takes 2 lines of code in profSendMail.pl. I can upload the change if this sounds good. John <| Post or View Comments |>

 Michael Gage - Re: sending e-mail  1/22/2003; 8:51:15 PM (reads: 1570, responses: 0) Hi John, I've been getting a bit confused by this myself. A change sounds fine to me, but could you also report to the bulletin board here how these two variables and the Global::feedback variable interact? Thanks much. Take care, Mike <| Post or View Comments |>

 John Jones - Re: sending e-mail  1/23/2003; 5:05:54 PM (reads: 1609, responses: 0) OK, I just uploaded the tiny change. In my first message, I said that the From and Reply-To fields would get the feedback address. That is not quite right; they get what they deserve (Global::defaultFrom and Global::defaultReply respectively). Those, in turn, default to the Global::feedback address, to which mail from the feedback button is sent. So, most people would get the feedback address, but those who have customized the addresses more closely get the right thing. Incidentally, if there is a default.msg file exists and it is empty, then WW goes into an infinite loop. Do you think that is worth fixing? John <| Post or View Comments |>

 Arnold K. Pizer - Re: sending e-mail  1/27/2003; 10:37:35 AM (reads: 1598, responses: 0) Hi John, Sorry I'm coming to this rather late. I think it would be much better to use the Global::smtpSender variable for this. Here's what it does (look at your webworkCourse.ph file): # In addition, the smtp mail sender (defined in Global.pm) requires a valid single# email address. Normally this is set to the address of the course administrator.# Undeliverable email from the Send Mail page will be returned to the smtpSender address.# Uncomment the line below and enter a valid email address (if you leave it commented# out the webmaster's email address from Global.pm will be used).$Global::smtpSender = 'apizer@math.rochester.edu'; If not defined in webworkCourse.ph , it defaults to (from Global.pm) $smtpSender = \$webmaster; # should be redefined for each course in webworkCourse.ph Arnie <| Post or View Comments |>