This is a discussion on MODIFICATION: Receive a copy of the email sent from visitors to listing owners. within the Module Release forums, part of the v4 Help & Support category; Ever wanted to monitor messages that are sent from the contact form through the listing pages? I do this myself ...
|
|||||||
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
Ever wanted to monitor messages that are sent from the contact form through the listing pages? I do this myself to monitor spam send to listing owners. I also use these emails to count how many messages were sent from website visitors each month. This is how I monitor conversions.
You need the developer edition to do this modification. Open contact.php. Its located yourdomain.com/contact.php Find this: Code:
$msg=$Mailer->sendMail($to, $content, $vars); Code:
//now make a copy for the admin $to="[email protected]"; $content="contactownercopy.tpl"; $msg=$Mailer->sendMail($to, $content, $vars); Notice that the email you receive will be the template "contactownercopy.tpl". You will need to upload this template to your email template folder. You can use the template I made shown below. It is a slightly modified copy of contactowner.tpl Code:
{assign var='subject' value='New message sent from your website'}
{include file="emails/html/mail_header.tpl"}
<h2>New Message</h2>
Hi Admin,
<p>The following message has been sent to the listing owner from a visitor on your website.</p>
<div class="hr"><hr /></div>
<strong>Name:</strong> {$name}<br />
<strong>Email:</strong> {$fromemail}<br />
<strong>Message:</strong><br />
{$comments}<br /><br />
<strong>Listing URL: </strong><a href="{$listing_url}">{$listing_url}</a>
<div class="hr"><hr /></div>
<br />
{include file="emails/html/mail_footer.tpl"}
__________________
Version 4.0.3 Developer Last edited by cwp; 04-04-2008 at 10:24 AM. |
|
#2
|
|||
|
|||
|
I've tried this on my site, but doesn't seem to forward the copy. Any other settings I have to touch-up on back-end maybe?
__________________
Arch / v4.0.1 Developer HyeClassifieds Marketplace | ningboClassifieds Marketplace | ningboSites Directory | a613 Web Solutions |
|
#3
|
||||
|
||||
|
Did you upload the new template? Without having a template you won't receive anything.
__________________
Version 4.0.3 Developer |
|
#4
|
|||
|
|||
|
hi,
i need to implement this operation in 3.1 but i dont have "$msg=$Mailer->sendMail($to, $content, $vars);" or part thereof in my contact.php. can this be done in ver 3.1 dev? thanks |
|
#6
|
||||
|
||||
|
Quote:
I believe this is as simple as this. Open your "contact.php" file and around line 121 you should see this: Code:
$mail = new Mailer(); $mail->AddAddress($to); $mail->From = $from; $mail->FromName = $name; $mail->Subject = $subject; $mail->IsHTML(true); $mail->Body = $htmlContent; $mail->AltBody = $textContent; Code:
$mail->AddBCC("email@yourdomain");
I do this same thing, but for the user registration (userjoin.php) so that we know when a new user signs up.
__________________
Version 4.0.3 Developer |
|
#7
|
||||
|
||||
|
Not sure, you'll have to hire someone to custom code this in for you.
__________________
Version 4.0.3 Developer |
|
#8
|
|||
|
|||
|
Quote:
userjoin sounds like a good ider as well, do you get both emails when someone joins up? i tried it and it woks great! thanks Last edited by paulsra; 05-20-2008 at 09:51 AM. |
|
#9
|
|||
|
|||
|
Hi,
I followed all of the instructions and this is the error that I got in my email box. Warning: Smarty error: unable to read resource: "emails/html/modifylisting.tpl" in /var/www/vhosts/naturalhorseforsale.com/httpdocs/includes/classes/smarty/Smarty.class.php on line 1095 Anything I can do? I did create and upload the template as stated. Thanks, Jill B |
|
#10
|
||||
|
||||
|
I'll look into this once I'm able to view my website (dns). It's possible this won't work with the newest version.
__________________
Version 4.0.3 Developer |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Modification: Civs Similar Listings keeps visitors longer | civ | v3.1 Modules & Modifications | 13 | 05-25-2008 08:17 PM |
| Modification: Civs Feedback for emailing users that delete a listing | civ | v3.1 Modules & Modifications | 1 | 05-25-2008 08:16 PM |
| Modification: Site-Wide Listing Status Reminder for customers having unpaid listings | civ | v3.1 Modules & Modifications | 21 | 10-18-2007 01:12 PM |
| Email notify users of new or modified listing | abkeller | v3.1 Modules & Modifications | 9 | 07-03-2007 04:23 PM |
| Direct link to user listing in contact email | SkGold | v3.1 Questions & Support | 2 | 07-10-2006 02:42 PM |