'') {
// Email field has been populated
require ('reg/phpmailer/class.phpmailer.php');
$cemail = $_POST['cemail'];
$nemail = $_POST['nemail'];
$message = '';
$mailhost="mail.pharma-bio-med.com";
$mailfrom = 'admin@pharma-bio-med.com';
$fromname = 'Pharma-Bio-Med';
$mailer ="smtp";
$subject = 'Pharma-Bio-Med';
$body = '';
if (isset($nemail) && isset($message)) {
$body = "Your colleague, $nemail, has sent you this message: ".chr(10).chr(10);
$body .= stripslashes($message).chr(10);
$sender_name = 'Colleague of '.$nemail;
} else {
$sender_name = 'Pharma Colleague';
}
$body .= "
Save the Date for Pharma-Bio-Med 2008, 2nd - 5th November in Dubrovnik, Croatia.
For future planning purposes, please join our discussion list so that you may stay informed on the latest conference developments with regard to the preliminary programme, exhibitor/sponsorship opportunities, speakers, Early Registration discounts, etc. The sign-up process takes only a moment. You may join the discussion list at http://mail.pharma-bio-med.com/mailman/listinfo/discussions_pharma-bio-med.com.
The Pharma-Bio-Med Conference & Exposition aims to bring together Information Professionals, Medical Librarians, and Competitor Information Professionals working within the pharmaceutical, biotechnology, biomedical, medical and health sciences industries. Pharma-Bio-Med provides a multifaceted international forum for professional development, continuing education, networking, the exchange of experiences, and sharing/benchmarking of information best practices amongst practitioners and managers.
";
$body .= chr(10)."Please visit http://www.Pharma-Bio-Med.com ";
$body .= chr(10).'['.$cemail.']';
// Send this to Colleague and BCC to Admin
$mail = new PHPMailer();
$mail->AddAddress($cemail, $sender_name);
$mail->AddBcc($mailfrom, $fromname);
$mail->AddBcc('Tracy.Piner@pharma-bio-med.com', 'Tracy Piner');
$mail->AddBcc('Andrea.Eckenrode@pharma-bio-med.com', 'Andrea Eckenrode');
$mail->AddBcc('ford.khorsandian@pharma-bio-med.com', 'Ford Khorsandian');
$mail->From = $mailfrom;
$mail->FromName = $fromname;
$mail->Host = $mailhost;
$mail->Mailer = $mailer;
$mail->Subject = $subject;
$mail->AltBody = $body;
$mail->Body = str_replace(chr(10),' ',$body);
$result = $mail->Send();
if ($result=='1') {
$result_msg = 'Message sent! Tell another colleague.';
} else {
$result_msg = 'Sorry. We could not send your message to that address.';
}
} else {
$result_msg = '';
}
$message = stripslashes($message);
?>
Tell a Colleague
The following text will appear in the message to your colleague.
The next annual Pharma-Bio-Med will be held this coming November.
For future planning purposes, please join our discussion list so that you may stay informed on the latest conference developments with regard to the preliminary programme, exhibitor/sponsorship opportunities, speakers, Early Registration discounts, etc. The sign-up process takes only a moment. You may join the discussion list at http://mail.pharma-bio-med.com/mailman/listinfo/discussions_pharma-bio-med.com.
The Pharma-Bio-Med Conference & Exposition aims to bring together Information Professionals, Medical Librarians, and Competitor Information Professionals working within the pharmaceutical, biotechnology, biomedical, medical and health sciences industries. Pharma-Bio-Med provides a multifaceted international forum for professional development, continuing education, networking, the exchange of experiences, and sharing/benchmarking of information best practices amongst practitioners and managers.