vtiger.com - Home of vtiger CRM
Home Products Downloads Support Buy Support Partners Company  Community Forums Blogs   Extensions  
Call Us : +1 408-733-3229
 
Log in

Register | Forgot password ?
<<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

 Search this forum

SourceForge.net Logo


Email notification after Lead form is submitted
Post new topic   Reply to topic  Forum Home -> Web Forms Previous topic :: Next topic

Post  scottaparks   Post subject: Email notification after Lead form is submitted
     
Thu Feb 23, 2006 8:02 pm 
Posts: 2 
 
  Reply with quote
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

    View user's profile Send private message

Post  carylt   Post subject: Email notification after Lead form is submitted
     
Fri Mar 10, 2006 2:43 pm 
Posts: 15 
 
  Reply with quote
This is next in my to do list. Have you managed to implement this functionality yet ?

Caryl

    View user's profile Send private message

Post  scottaparks   Post subject: Re: Email notification after Lead form is submitted
     
Fri Mar 10, 2006 3:42 pm 
Posts: 2 
 
  Reply with quote
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

    View user's profile Send private message

Post  jeremym87   Post subject: Re: Email notification after Lead form is submitted
     Guest
Mon Mar 20, 2006 4:25 am 
 
 
  Reply with quote
Do you mind sharing your code i am new at this and would like to have this function.

    

Post  libregeek   Post subject: Re: Email notification after Lead form is submitted
     
Mon Mar 20, 2006 5:36 am 
Posts: 96 
Location: Kerala, India 
  Reply with quote
Hi Scott,
Can u submit your changes in this forum?

thanks
Manilal

_________________
Manilal K M,
eJyothi Services.
http://www.ejyothi.com
http://libregeek.blogspot.com

    View user's profile Send private message

Post  Guest   Post subject: Re: Email notification after Lead form is submitted
     
Thu Oct 12, 2006 6:12 pm 
 
 
  Reply with quote
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)) {

    
Display posts from previous:   
Post new topic   Reply to topic    vtiger Forum Index -> Web Forms All times are GMT
Leave a Testimonial
Page 1 of 1

Jump to: