Hangup Customer executed automatically after email is sent from agent interface.
email doc formatting git-svn-id: svn://192.168.202.10@1908 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -209,9 +209,15 @@ if ($REPLY)
|
||||
if ($sendmail)
|
||||
{
|
||||
$reply_message=preg_replace('/(\"|\||\'|\;)/', '\\\$1', $reply_message);
|
||||
$log_stmt="insert into vicidial_email_log(email_row_id, lead_id, email_date, user, email_to, message, campaign_id, attachments) VALUES('$email_row_id', '$lead_id', now(), '$user', '$reply_to_address', '$reply_message', '$campaign', '$attachment_str')";
|
||||
$log_stmt="INSERT INTO vicidial_email_log(email_row_id, lead_id, email_date, user, email_to, message, campaign_id, attachments) VALUES('$email_row_id', '$lead_id', now(), '$user', '$reply_to_address', '$reply_message', '$campaign', '$attachment_str')";
|
||||
$log_rslt=mysql_query($log_stmt, $link);
|
||||
echo "<p>mail sent to $to!</p>";
|
||||
echo "<p>mail sent to $to!</p>";
|
||||
|
||||
# Hangup the "call" on the agent screen
|
||||
$stmt="UPDATE vicidial_live_agents set external_hangup='1' where user='$user';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$affected_rows = mysql_affected_rows($link);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user