From WeBWorK

Jump to: navigation


NAME

WeBWorK::PG::IO::WW1 - Private functions used by WeBWorK::PG::Translator for file IO under WeBWorK 1.x.

FUNCTIONS

send_mail_to($user_address,'subject'=>$subject,'body'=>$body)

Returns true if the address is ok, otherwise a fatal error is signaled using die.

Sends $body to the address specified by $user_address provided that the address appears in @{$Global::PG_environment{'ALLOW_MAIL_TO'}}.

This subroutine is likely to be fragile and to require tweaking when installed in a new environment. It uses the Net::SMTP module.

surePathToTmpFile($path)

Calls &main::surePathToTmpFile.