Support Forums

MODIFICATION: Receive a copy of the email sent from visitors to listing owners.

This is a discussion on MODIFICATION: Receive a copy of the email sent from visitors to listing owners. within the Modules / Plugins / Modifications forums, part of the Developer Forums category; Is there a way to do the same thing in reverse? I need to send a copy to the customer ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 05-22-2008, 12:15 AM   #11
Senior Member
 
Join Date: Jun 2007
Posts: 110
Rep Power: 15
crystal is on a distinguished road
Default

Is there a way to do the same thing in reverse? I need to send a copy to the customer of an email that is sent by the system to the admin. The email I want to cc to the customer is the "new order" email - it is currently only sent to the admin. The customer gets no receipt of their order after placing an ad, so I want to modify the email template to be a receipt and send to both admin and customer.

If this is possible I would appreciate the help!

Thank you
__________________
Crystal
v4.0.8 Dev
crystal is offline   Reply With Quote
Old 05-22-2008, 07:21 AM   #12
Senior Member
 
cwp's Avatar
 
Join Date: Jun 2007
Posts: 296
Rep Power: 20
cwp is a jewel in the rough
Default

I checked the code I posted (my first post) for version 4x and compared it with the code thats on my copy of contact.php and it's the same. I also tested it again, and it works for me. I'm not sure why it won't work for you guys. Did "anyone" get it to work?

The code I posted several posts down was untested, which was for version 3x. Not sure which one was giving you guys errors.
__________________
Version 4.0.3 Developer
cwp is offline   Reply With Quote
Old 05-22-2008, 07:51 AM   #13
Senior Member
 
cwp's Avatar
 
Join Date: Jun 2007
Posts: 296
Rep Power: 20
cwp is a jewel in the rough
Default

Quote:
Originally Posted by crystal
Is there a way to do the same thing in reverse? I need to send a copy to the customer of an email that is sent by the system to the admin. The email I want to cc to the customer is the "new order" email - it is currently only sent to the admin. The customer gets no receipt of their order after placing an ad, so I want to modify the email template to be a receipt and send to both admin and customer.

If this is possible I would appreciate the help!

Thank you
Crystal,
This was something I suggested (an email that is sent to the customer) after they order a listing for version 4.01 but wasn't put in. Maybe in the future it will be put in.
__________________
Version 4.0.3 Developer
cwp is offline   Reply With Quote
Old 05-22-2008, 01:45 PM   #14
Member
 
Join Date: Dec 2007
Posts: 51
Rep Power: 12
goin4savvy is on a distinguished road
Default

Thanks so much!

Jill B
goin4savvy is offline   Reply With Quote
Old 07-07-2008, 04:51 PM   #15
Customer
 
Join Date: Jan 2007
Posts: 120
Rep Power: 17
HotAir is on a distinguished road
Default

Quote:
Originally Posted by cwp
I checked the code I posted (my first post) for version 4x and compared it with the code thats on my copy of contact.php and it's the same. I also tested it again, and it works for me. I'm not sure why it won't work for you guys. Did "anyone" get it to work?
Yes, it works for me...
__________________
V3.1.10 Developer - live
HotAir is offline   Reply With Quote
Old 07-25-2009, 07:02 AM   #16
Senior Member
 
MrGForce's Avatar
 
Join Date: May 2009
Posts: 219
Rep Power: 10
MrGForce is on a distinguished road
Default

Just wondering if this email notification would work in v4.1.3.

It looks like the first post, by cwp, that indicates putting the sendmail code in the contact.php file, and creating and uploading the contactownercopy.tpl, will send a modified copy to the admin when someone contacts a lister. Would this same code work correctly in v4.1.3, or would there be any issues?

Second, cwp also mentions in a later reply in this same post, that he also does this same thing, but for the user registration (userjoin.php) so that he knows when a new user signs up.

In the v4.1.3 userjoin.php file, the code read as follows. Where and what would need to be added to make this also send a copy or BCC to the admin when someone registers?

Thanks.

///////////////////////////////////////////////////////////////////////////////////

//send email
$to=trim($_POST['email']);
$vars['firstname']=@$_POST['firstname'];
$vars['lastname']=@$_POST['lastname'];
$vars['username']=$_POST['username'];
$vars['password']=$_POST['password'];

$content="welcome.tpl";
$errorText=$Mailer->sendMail($to, $content, $vars);

if($level==3)
{
// Send confirmation email
if ( $Register->sendConfirmation($id) )
{
$msg=LANG_USER_LOGIN_RESENT;
$class_tpl->assign('title',$title);
$class_tpl->assign('msg',$msg);
$class_tpl->assign('body','user/userlogin.tpl');
$class_tpl->display('layout.tpl');
exit;
}
else
{
$errorText=LANG_MAIL_ERROR;
}
}
else
{
$Login = new Login( $db );
$Login->checkLogin(trim($_POST['username']), trim($_POST['password']), FALSE);
$location="userindex.php";
header("Location: $location");
exit;
}

//////////////////////////////////////////////////////////////////////////////////////////////

.
__________________
MrGForce

Currently running 68Classifieds v4.1.5 Developer Edition ... Purple Template
MrGForce is offline   Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 07:21 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0