To: Tamara Konrad
Subject: Someone sent you a Message through EdmontonBroadcasters.com
Once you click the Send e-mail button, your e-mail will be sent to the member.
You will also immediately receive a copy of the notification to the e-mail address that you provided. Be sure to check your e-mail, including your Junk Mail (spam) folder. If you do not receive this copy, you may have mistyped your e-mail address above.
If you receive any error messages stating that your e-mail could not be delivered, please forward them to the Edmonton Broadcasters Club webmaster at webmaster@edmontonbroadcasters.com to ensure that we keep our database of e-mail addresses up to date.
function my_cforms_logic($cformsdata,$oldvalue,$setting) {
if ($setting == “adminEmailTXT”) {
$uniqueid = $cformsdata[‘data’][‘uniqueid’];
$subject = “Someone sent you a Message through EdmontonBroadcasters.com”;
// Do the bcc to the sender first. It also notifies someone that their e-mail was used to send a message.
mail($cformsdata[‘data’][‘Your Name’] . ” <” . $cformsdata[‘data’][‘Your e-mail address’] . “>”, $subject,
$cformsdata[‘data’][‘Message’], “From: ” . $cformsdata[‘data’][‘Your e-mail address’]);
}
return $oldvalue;
}// TEST ONLY — need valid values!
$uniqueid = 22; // ebc database Unique ID for the Member to whom the message is being sent
$membername = “test name”;$fields = array();
$n = 0;
$fields[‘label’][$n] = “uniqueid|$uniqueid”;
$fields[‘type’][$n] = “hidden”;
$n += 1;
$fields[‘label’][$n] = “Your Name”;
$fields[‘type’][$n] = “textfield”;
$fields[‘isreq’][$n] = 1;
$n += 1;
$fields[‘label’][$n] = “Your e-mail address”;
$fields[‘type’][$n] = “textfield”;
$fields[‘isreq’][$n] = 1;
$fields[‘isemail’][$n] = 1;
$n += 1;
$fields[‘label’][$n] = “Message”;
$fields[‘type’][$n] = “textarea”;
$fields[‘isreq’][$n] = 1;
insert_custom_cform($fields,”);