Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: ad email on message from Contact Advertiser form

ad email on message from Contact Advertiser form 9 months 2 days ago #6219

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
The administrator has disabled public write access.

ad email on message from Contact Advertiser form 9 months 1 day ago #6222

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 2756
  • Thank you received: 291
  • Karma: 40
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.
The administrator has disabled public write access.

ad email on message from Contact Advertiser form 5 months 2 weeks ago #6663

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.
The administrator has disabled public write access.

ad email on message from Contact Advertiser form 5 months 2 weeks ago #6666

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 2756
  • Thank you received: 291
  • Karma: 40
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.
The administrator has disabled public write access.

ad email on message from Contact Advertiser form 4 months 4 weeks ago #6705

  • GemaL
  • GemaL's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
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.
The administrator has disabled public write access.

ad email on message from Contact Advertiser form 4 months 3 weeks ago #6708

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 2756
  • Thank you received: 291
  • Karma: 40
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.
Last Edit: 4 months 3 weeks ago by Super User.
The administrator has disabled public write access.
The following user(s) said Thank You: GemaL
  • Page:
  • 1
  • 2
Time to create page: 0.233 seconds