 |
| << | September 2010 | >> |
| Su |
Mo |
Tu |
We |
Th |
Fr |
Sa |
| |
|
|
1 |
2 |
3 |
4 |
| 5 |
6 |
7 |
8 |
9 |
10 |
11 |
| 12 |
13 |
14 |
15 |
16 |
17 |
18 |
| 19 |
20 |
21 |
22 |
23 |
24 |
25 |
| 26 |
27 |
28 |
29 |
30 |
|
|
|
|
|
 |
 |
|
|
scottaparks Post subject: Email notification after Lead form is submitted
|
Thu Feb 23, 2006 8:02 pm Posts: 2
|
| |
|
Hello.
I would like to compose an email to our sales department after a lead form is filled out successfully, sent and the data populated into vTiger. Is there a mod for this or some documentation for this?
Thank you!
-Scott
|
|
|
|
|
 |
carylt Post subject: Email notification after Lead form is submitted
|
Fri Mar 10, 2006 2:43 pm Posts: 15
|
| |
|
This is next in my to do list. Have you managed to implement this functionality yet ?
Caryl
|
|
|
|
scottaparks Post subject: Re: Email notification after Lead form is submitted
|
Fri Mar 10, 2006 3:42 pm Posts: 2
|
| |
|
| carylt wrote: | This is next in my to do list. Have you managed to implement this functionality yet ?
Caryl |
Hi Caryl-
Yes I was, not the way I wanted to do it, but it works. Basically I took the script that vTiger provides to drop a new lead into the system and added code above it to email our sales department when it is submitted.
In other words - I wrote my own code above the code that is available from vTiger for leads from the website.
-Scott
|
|
|
|
jeremym87 Post subject: Re: Email notification after Lead form is submitted Guest
|
Mon Mar 20, 2006 4:25 am
|
| |
|
| Do you mind sharing your code i am new at this and would like to have this function.
|
|
|
|
libregeek Post subject: Re: Email notification after Lead form is submitted
|
Mon Mar 20, 2006 5:36 am Posts: 96 Location: Kerala, India
|
|
|
|
|
Guest Post subject: Re: Email notification after Lead form is submitted
|
Thu Oct 12, 2006 6:12 pm
|
| |
|
Here is how I did it, I put the following code in the send_data.php file between the $result = $client->call & if($result) lines (which are both included here as a reference):
$result = $client->call('create_lead_from_webform', $params, $Server_Path, $Server_Path);
// ------------- CONFIGURABLE SECTION ------------------------
$mailto = 'myemail@mydomain.com' ;
$subject = "A New Lead has been added to Vtiger" ;
$uself = 0;
// -------------------- END OF CONFIGURABLE SECTION ---------------
$headersep = (!isset( $uself ) || ($uself == 0)) ? "\r\n" : "\n" ;
$http_referrer = getenv( "HTTP_REFERER" );
$messageproper =
"------------------------------------------------------------\n" .
"A new Lead has been added to vTiger" .
"\n\n------------------------------------------------------------\n" ;
mail($mailto, $subject, $messageproper,
"From: Web Contact Form z" . $headersep . "Reply-To: \"$name\" <$email>" . $headersep . "X-Mailer: chfeedback.php 2.07" );
if ($result['faultstring'] != '' && is_array($result)) {
|
|
|
|
|
|
| |