Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Public Forum / Main Forum / Send a copy of email to sender with contact module

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

× OLD Forum post could be checked here : forum.joomprod.com

Send a copy of email to sender with contact module

More
10 years 10 months ago #17488 by ginorossi
Hi!
As I wrote in the subject, I would like to send a copy of the email that the user write when use contact form in ads details.

this because I would like that the sender receives the recipient's email address.

if there is a better solution I'm open to best ideas

Many thanks!
More
10 years 10 months ago #17506 by loic
Hello,

I'm not sure to understand what you wish to do.

You want a copy of the message sent to an ad's owner to the user who send the message ?

Best regards.
More
10 years 10 months ago #17595 by ginorossi
Hi!
I would like that a copy of the message sento to the user who send the message.
So he can have also the mail of the ad's owner
Many thanks!
More
10 years 10 months ago #17608 by loic
Hello,

Ok I understand.

To do that, you need to open the file 'components/com_adsmanager/controller.php' and find the function sendmessage().

In this function, you need to add a step where you will send the message to the sender.

The code to recover the user is the following:
//To recover the user information
$user = JFactory::getUser();
 
//To recover the user email
$userEmail = $user->email;

Best regards.
More
10 years 10 months ago #17640 by ginorossi
Hi, when I try to add that rows my form doesn't send the email at all.
there is something wrong in what I do ?

Beyond this , to send a copy of the mail just I add $userEmail to the $fieldMail ?
or I have to copy the all function and change %fieldMail with $userEmail?

thanks for your patience!
More
10 years 10 months ago #17668 by loic
Hello,

In the function, you have this line:
$sendEmail = TMail::sendMail($email,$name,$fieldMail,$subject,$body,1);

You need to duplicate this line and change the $email variable. You just have to replace it with the email of the current user.

Best regards.
Moderators: perry
Time to create page: 0.116 seconds
Powered by Kunena Forum