Author Topic: Email Notifaction  (Read 15917 times)

0 Members and 1 Guest are viewing this topic.

pmcdermott

  • Jr. Member
  • **
  • Posts: 1
Email Notifaction
« on: January 21, 2009, 01:45:35 PM »
To have an email sent to a pre determined email address when a user clicks on "Ask your Question" button, add a line after line 57 in client.php:

mail("$to","$subject","$message","From: $from\r\n");

$to -> recipient's email address (rfc822 address)
$subject -> email subject
$message -> email message
$from -> sender's email address (rfc822 address)

This is assuming that php.ini/email server has been setup correctly!!

This functionality allows me to monitor the inbound requests easily and not have the need to have the agent page constantly visible
« Last Edit: January 29, 2009, 04:31:35 PM by pmcdermott »

TotalInternet

  • Full Member
  • ***
  • Posts: 7
Re: Email Notifaction
« Reply #1 on: January 28, 2009, 08:28:36 PM »
Where is chats.php

the build i have, 1.5.1,

has these files with chat in the filename:

chat.css
chat.js
chat.php
wmchat.png
wmchat.png
agentchat.tpl
agentrochat.tpl
chatsimple.tpl
chat.tpl
nochat.tpl
wmchat.png
agentchat.tpl
agentrochat.tpl
chatsimple.tpl
chat.tpl
nochat.tpl

Also, where is the "Ask a Question" button?

Thanks.
~Lance
www.totalinternethosting.com