ad email on message from Contact Advertiser form

ad email on message from Contact Advertiser form was created by Andres Portillo

How can I ad the email address in the body of the message the advertiser gets when the "contact advertiser form" is used?

For example, as an advertiser this is the message that I get:

John sent a mail using the contact form at hidroavisos.com/electronicos/advert/39-plasma-tv-samsung-42
Ad here e-mail address from person who fill the "Contact Advertiser Form"
Testing contact form 1 2 3


Regards
4 years 8 months ago#6219

Please Log in or Create an account to join the conversation.

Replied by Super User on topic ad email on message from Contact Advertiser form

Currently we don't display the email address. But when you click reply, the email address of the person who contacted will added in recipient mail. If you need t o add this in email body, Kindly send your site FTP details and Joomla admin details to This email address is being protected from spambots. You need JavaScript enabled to view it.. So that we will add it for you.

Thanks.
4 years 8 months ago#6222

Please Log in or Create an account to join the conversation.

Replied by Timo Stubenrauch on topic ad email on message from Contact Advertiser form

hi is it possible to use sender data with smtp data and not mail server sender data?
each time when i contact a Advertiser over the form than read the server sender data.
4 years 5 months ago#6663

Please Log in or Create an account to join the conversation.

Replied by Super User on topic ad email on message from Contact Advertiser form

Dear Customer,

Kindly send your site URL, FTP details and Joomla admin username and password to This email address is being protected from spambots. You need JavaScript enabled to view it.. So that we will check and fix it and update you.

Thanks.
4 years 5 months ago#6666

Please Log in or Create an account to join the conversation.

Replied by GemaL on topic ad email on message from Contact Advertiser form

I am having the same issue ... why not post the solution here?

Timo Stubenrauch wrote: hi is it possible to use sender data with smtp data and not mail server sender data?
each time when i contact a Advertiser over the form than read the server sender data.

4 years 4 months ago#6705

Please Log in or Create an account to join the conversation.

Replied by Super User on topic ad email on message from Contact Advertiser form

Hi,

Open the below file,

Root -> components -> com_jomclassifieds -> etc -> email.php

Find the function "doContact" and replace it with the below one,
public static function doContact($item) {
$host = JFactory::getURI()->getHost();if($host == 'localhost') {return 0;}
$config = JFactory::getConfig();$siteName = $config->get('sitename');$emailSubject = $item->subject.' - '.$siteName;$userid = JomclUtils::getColumn('adverts', 'userid', $item->id);$user = JFactory::getUser($userid);$emailBody = JText::sprintf('CONTACT_ADVERTISER_EMAIL_BODY', $item->name, base64_decode($item->url), $item->message);$from= $item->email;$to= $user->email;$subject = $emailSubject;$message = $emailBody;$headers = 'From:YOURMAIL@YOURDOMAIN.COM' . "\r\n" .
'Reply-To:'.$from. "\r\n" .
'X-Mailer: PHP/' . phpversion();return mail($to, $subject, $message, $headers);}


If still you have any issues, please send your site backend access and FTP details to This email address is being protected from spambots. You need JavaScript enabled to view it..


Thanks.
The following user(s) said Thank You: GemaL
Last edit: 4 years 4 months ago by Super User.
4 years 4 months ago#6708

Please Log in or Create an account to join the conversation.

Time to create page: 0.182 seconds

Contact us

  No.2/A, Venkateshwara Nagar,
1st Main Road, 100 Feet Road, SBM Towers, Velachery,Chennai - 600 042,India.
 admin@jomclassifieds.com
 skype.jomclassifieds
Copyright © 2013-2020 Jomclassifieds.com. All rights reserved. The Joomla! name, and logo are used under a limited license granted in the United States and other countries.