Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
langhtml
borderStylesolid

function send_email ($requesting_page, $arg1, $arg2, $arg3, $arg4) {

The variables for primary contact ($sender), Communications contactcommunications contact ($emp_comm_email), and URL of host website ($domain2) must be declared within the function:

Code Block
langhtml
borderStylesolid


$sender='kdez@mit.edu';
$emp_comm_email='nadamsx@mit.edu';
$domain2='seagrant.mit.edu';

Code Block
langhtml
titlecode system-generated email triggered by successful registration
borderStylesolid


//register
if ($requesting_page=='register.php') {

mail ("$arg1", "MIT Sea Grant Online Proposal Submission Registration",
"
You have successfully registered for MIT Sea Grant Online Proposal Submission.\n
Please use the information provided below to log-in and begin the Preliminary Proposal phase of the submission process.\n
URL : [https://$domain2/RFP/proposals/cpanel_login.php\n]
PI First Name : $arg2\n
PI Last Name : $arg3\n
Password: $arg4","From: $sender");
}