Jump to content

Where does "Pre-sales" form's email goes?


johnh

Recommended Posts

hi,

 

I have noticed that I don't and not sure where

"If you have pre-sales questions, click here to contact us."'s form's email goes?

 

does this form send email to where? because I don't see where to set email address for this.. I only see that enable this link or not on setting..

 

anyone know?

 

thanks

Link to comment
Share on other sites

Why not just link to the Sales Department or whatever department you like? That way it creates a ticket as well for better tracking. Heck, you could call the department Pre-Sales. This would be very helpful for tracking leads. I think Matt is going to enable the ability to assign tickets to accounts as well. So once the lead becomes a client, you could associate those tickets with them so that you would have a better history of contact with a client.

 

Basically you would change the pre-sales contact form link to something like this:

 

http://demo.whmcs.com/submitticket.php?step=2&deptid=002

Link to comment
Share on other sites

Actually I am gong to pipe emails for only registered users for billing, sales, support like that and like to create pre-sales to contact with public and potential customers (that is what I am doing on current system MB and kayako, I am middle of intergration for WHMCS)

 

and as you know once, I check only "registered user only" on setting, it won't take any emails from non-customers.

 

that's why..

 

bedot, are you able to share your contact that you have? if it is okay, could you pm me?

 

thanks

Link to comment
Share on other sites

Contact.tpl

 


{$LANG.contactheader}</p>
{if $sent}
<p align=center>[b]{$LANG.contactsent}[/b]</p>
{else}
<form method="post" action="submit.php">
{if $errormessage}


<font style="color:#cc0000">{$LANG.clientareaerrors}</font>
<ul>
{$errormessage}
[/list]</p>
{/if}
<table width=100% align=center>
<tr><td width="224">{$LANG.contactname}</td><td width="488"><input type="text" name="Name" size="30" value="{$name}">
<font size="2" face="Arial" color="#0195FE">*</font></td>
<td rowspan="13" style="padding-left: 10px" valign="bottom"> 

<font size="2" face="Arial">[b]
<font color="#0195FE">Mail:</font>[/b]

Company Name

Company Address



[b]<font color="#0195FE">Phone:</font>[/b]

Company Telephone



[b]<font color="#0195FE">Email:</font>[/b]

Company Email </font> </td>
</tr>
<tr>
<td width="224">{$LANG.contactcompany}</td><td width="488">
<input type="text" name="Company" size="30" value="{$company}">
</td>
</tr>

<tr>
<td width="224">{$LANG.contactaddress}</td><td width="488">
<textarea name="Address" rows=8 cols="53">{$message}</textarea>
</td>
</tr>

<tr><td width="224">{$LANG.contactemail}</td><td width="488"><input type="text" name="Email" size="30" value="{$email}">
<font color="#0195FE" size="2" face="Arial">*</font></td></tr>

<tr><td width="224">{$LANG.contactphone}</td><td width="488"><input type="text" name="Phone" size="30" value="{$name}">
<font color="#0195FE" size="2" face="Arial">*</font></td></tr>

<tr><td width="224">{$LANG.contactmobile}</td><td width="488"><input type="text" name="Mobile" size="30" value="{$name}"></td></tr>

<tr><td width="224" valign="top">{$LANG.contactinterested}</td><td width="488">
<table border="0" width="100%" id="table2" style="border-collapse: collapse">
	<tr>
		<td><font size="1" face="Arial"><input type="checkbox" name="HostingSolution" value="HostingSolution"></font><font face="Arial" size="2"> 
		Hosting Solution</font></td>
		<td><font size="1" face="Arial"><input type="checkbox" name="WebsiteDevelopment" value="WebsiteDevelopment"></font><font face="Arial" size="2"> 
		Website Development</font></td>
	</tr>
	<tr>
		<td><font size="1" face="Arial"><input type="checkbox" name="RemoteBackups" value="RemoteBackups"></font><font face="Arial" size="2"> 
		Remote Backups</font></td>
		<td><font size="1" face="Arial"><input type="checkbox" name="EcommerceSolutions" value="EcommerceSolutions"></font><font face="Arial" size="2"> 
		Ecommerce Solutions</font></td>
	</tr>
	<tr>
		<td><font size="1" face="Arial"><input type="checkbox" name="SiteRelocation" value="SiteRelocation"></font><font face="Arial" size="2"> 
		Site Relocation</font></td>
		<td><font size="1" face="Arial"><input type="checkbox" name="ProactiveMonitoring" value="ProactiveMonitoring"></font><font face="Arial" size="2"> 
		Proactive Monitoring</font></td>
	</tr>
	<tr>
		<td><font size="1" face="Arial"><input type="checkbox" name="SuperFlexible" value="SuperFlexible"></font><font face="Arial" size="2"> 
		Super Flexible File Sync</font></td>
		<td><font size="1" face="Arial"><input type="checkbox" name="ServersAlive" value="ServersAlive"></font><font face="Arial" size="2"> 
		Servers Alive</font></td>
	</tr>
</table>
</td></tr>

<tr><td width="224">{$LANG.contactprefer}</td><td width="488">
<table border="0" width="100%" id="table3" style="border-collapse: collapse">
	<tr>
		<td><font size="1" face="Arial">
		<input type="checkbox" name="pref_phone" value="Phone"></font><font face="Arial" size="2"> 
		Phone</font></td>
		<td><font size="1" face="Arial">
		<input type="checkbox" name="pref_email" value="Email"></font><font face="Arial" size="2"> 
		Email</font></td>
		<td><font size="1" face="Arial">
		<input type="checkbox" name="pref_mail" value="Mail"></font><font face="Arial" size="2">Mail 
		/ Brochure</font></td>
	</tr>
</table>
</td></tr>

<tr><td width="224">{$LANG.contacthearaboutus}</td><td width="488"><input type="text" name="Hearofus" size="30" value="{$name}"></td></tr>

<tr>
<td width="224" valign="top">{$LANG.contactmessage}</td>
<td width="488" valign="top">
<font color="#0195FE">
<textarea name="Message" rows=8 cols="53">{$message}</textarea><font size="2" face="Arial"> *</font></font>
</td>
</tr>

<tr>
<td width="224" valign="top"></td><td width="488">
<p align=left><input type="submit" value="{$LANG.contactsend}"></p>
</td>
</tr>

<tr>
<td width="224" valign="top"></td><td width="488">
<p align="right"><font size="2" face="Arial" color="#0195FE">* </font>
<font size="2" face="Arial">Required Fields</font>
</td>
</tr>

</table>
</form>
{/if}

 

Submit.php

 

<?php 

// get posted data into local variables
$EmailFrom = Trim(stripslashes($_POST['Email'])); 
$EmailTo = "your email address here";
$Subject = "Contact From Website";

$Name = Trim(stripslashes($_POST['Name'])); 
$Company = Trim(stripslashes($_POST['Company'])); 
$Address = Trim(stripslashes($_POST['Address']));
$Phone = Trim(stripslashes($_POST['Phone']));
$Mobile = Trim(stripslashes($_POST['Mobile']));

$HostingSolutions = Trim(stripslashes($_POST['HostingSolutions']));
$WebsiteDevelopment = Trim(stripslashes($_POST['WebsiteDevelopment']));
$RemoteBackups = Trim(stripslashes($_POST['RemoteBackups']));
$EcommerceSolutions = Trim(stripslashes($_POST['EcommerceSolutions']));
$SiteRelocation = Trim(stripslashes($_POST['SiteRelocation']));
$ProactiveMonitoring = Trim(stripslashes($_POST['ProactiveMonitoring']));
$SuperFlexible = Trim(stripslashes($_POST['SuperFlexible']));
$ServersAlive = Trim(stripslashes($_POST['ServersAlive']));


$pref_phone = Trim(stripslashes($_POST['pref_phone']));
$pref_email = Trim(stripslashes($_POST['pref_email']));
$pref_mail = Trim(stripslashes($_POST['pref_mail']));

$Hearofus = Trim(stripslashes($_POST['Hearofus'])); 

$Message = Trim(stripslashes($_POST['Message'])); 

// validation
$validationOK=true;
if (Trim($EmailFrom)=="") $validationOK=false;
if (Trim($Name)=="") $validationOK=false;
if (Trim($Phone)=="") $validationOK=false;
if (Trim($Message)=="") $validationOK=false;
if (!$validationOK) {
 print "<meta http-equiv=\"refresh\" content=\"0;URL=contact.php\">";
 exit;
}

// prepare email body text
$Body = "";
$Body .= "Name: ";
$Body .= $Name;
$Body .= "\n";
$Body .= "\n";
$Body .= "Company: ";
$Body .= $Company;
$Body .= "\n";
$Body .= "\n";
$Body .= "Address:\n";
$Body .= $Address;
$Body .= "\n";
$Body .= "\n";
$Body .= "Phone: ";
$Body .= $Phone;
$Body .= "\n";
$Body .= "\n";
$Body .= "Mobile: ";
$Body .= $Mobile;
$Body .= "\n";
$Body .= "\n";
$Body .= "Interested In:\n";
$Body .= $HostingSolutions;
$Body .= "\n";
$Body .= $WebsiteDevelopment;
$Body .= "\n";
$Body .= $RemoteBackups;
$Body .= "\n";
$Body .= $SiteRelocation;
$Body .= "\n";
$Body .= $ProactiveMonitoring;
$Body .= "\n";
$Body .= $SuperFlexible;
$Body .= "\n";
$Body .= $ServersAlive;
$Body .= "\n";
$Body .= "\n";
$Body .= "How would you like to be contacted:\n";
$Body .= $pref_phone;
$Body .= "\n";
$Body .= $pref_email;
$Body .= "\n";
$Body .= $pref_mail;
$Body .= "\n";
$Body .= "\n";
$Body .= "How did you hear of us: ";
$Body .= $Hearofus;
$Body .= "\n";
$Body .= "\n";
$Body .= "Message:\n";
$Body .= $Message;
$Body .= "\n";

// send email 
$success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>");

require("dbconnect.php"); 
require("includes/functions.php"); 

$pagetitle = $_LANG['contactareatitle'];
$pageicon = "images/support/contact.gif";
$breadcrumbnav=''.$_LANG['supportlink'].$_LANG['globalsystemname'].$_LANG['supportlinkclose'].$_LANG['custombreadcrum'].$_LANG['contactlink'].$_LANG['contacttitle'].$_LANG['contactlinkclose'].''; 

require("init.php"); 

if ($_SESSION['loggedinstatus']=="true") {
# User is Logged In - put any code you like here
} 

# Define the template filename to be used without the .tpl extension
$templatefile = "submit"; 

/*
To assign variables in Smarty use the following syntax. 
$smarty->assign('variablename', '$value');
This can then be used as {$variablename} in the template
*/ 

include("display.php"); 

?> 

 

Submit.tpl

 

Take the contact page, and delete the form :) put a lovely message...

 

----

 

Sorry about formatting :) but thats it, hope thats helpful.

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated