ini_set('sendmail_from', 'sendername@mailserver.com');
$emailaddr="recipient@mailserver.com";
$mailsend = mail($emailaddr, $subj, $mess, $headers);
ASKER
$destination='file_uploads'."/".$_POST[Req_ID].'_'.$passedfile;
$piemail=$_POST[PI_email];
$piname=$_POST[PI_Name];
$subj=$_POST[Req_ID]."_".$_POST[Note_Date]."_".$piname."_".$_POST[group]."_Research Central Project";
$mess='This is an automated email from the Research Central Notes system.
Request ID: '.$_POST[Req_ID].'
Note Date: '.$_POST[Note_Date].'
Note Time: '.$_POST[Note_Time].'
Time Spent: '.$_POST[timespent].'
Author: '.$_POST[Note_Person].'
CCTST Affiliation: '.$_POST[group].'
Ticket Inactive: '.$_POST[activestatus].'
Notes: '.$_POST[Notes];
$headers = '';
//*********************************************************
if ($_POST[Email_CCHMC_Informatics] == "yes")
{
if($_POST[Email_Investigator] == "yes")
{
ini_set('sendmail_from', $piemail);
}
Else
{
ini_set('sendmail_from', 'researchcentral@ucmail.uc.edu');
}
$emailaddr="cchmcinformatics@cctst.cchmc.org";
$mailsend = mail($emailaddr, $subj, $mess, $headers);
// echo "<h1><center>Mail sent</center></h1>";
}
ASKER
PHP is a widely-used server-side scripting language especially suited for web development, powering tens of millions of sites from Facebook to personal WordPress blogs. PHP is often paired with the MySQL relational database, but includes support for most other mainstream databases. By utilizing different Server APIs, PHP can work on many different web servers as a server-side scripting language.
TRUSTED BY
Open in new window