Welcome, Guest
Username: Password: Remember me

TOPIC: In adverts "Contact Advertiser" use a "wrong" mail

In adverts "Contact Advertiser" use a "wrong" mail 11 months 3 weeks ago #6074

Hi, now in adverts module if you clic on Contact Advertiser, the php code now send the mail to the author of the ads, and not send any mail to the mail inserted in the ad.

My authors of ads, deal with a lot ok adverts and doesn't like to forward each mail of theyr customers, so please, can you tell me if I can I change the "Contact advertiser" panel code? I only need to know what's the php file and whats the name of "login cuspomer" and "adverts customer" (in my case they are not the same, so I'd like to change that code, but I don't know where it is, and what's the names you give to them).

I know there's other solutions, but next days I have to make a lot of new ads, and it take lot of more time to publish each ads if I have to create a new account for each customers (slow solution for me)!!!!! :sick:

I'll have so many ads to put in my site that i prefer make things more quikly.

Can you help me in this?
I only need to know the name you give to "Logged Email Customer" and "Advertiser mail customer" and what file I've to change.

It will be wonderful for the future if you can choose where you want to receive conctact, on your login mail or your ad mail. Not only for me but for each user of jomClassifieds, of course!

It's not indispensable, but really useful for me.

Thank you in advance, and have a nice day!!!
The administrator has disabled public write access.

In adverts "Contact Advertiser" use a "wrong" mail 11 months 2 weeks ago #6076

  • Super User
  • Super User's Avatar
  • Online
  • Administrator
  • Posts: 2765
  • Thank you received: 292
  • Karma: 40
File - Root->components->com_jomclassifieds->etc->email.php

Function - public static function doContact($item) {
}


Logged Email Customer -- $from = $item->email;
Advertiser mail customer -- $to = $user->email;

Thanks.
The administrator has disabled public write access.

In adverts "Contact Advertiser" use a "wrong" mail 11 months 2 weeks ago #6081

hi,

I have received your quick answer, thank you so much. :cheer:

I write a new php code.

I discovered that $item is the logged mail customer and it's fine to me, works perfectly and doesn't need any change. :cheer:

I have a problem with Advertiser mail customer, couse I have two (or more) different mail:

$user is the advertiser's mail, and it's ok, but, in my case, it's NOT the mail that advertiser insert in his Advert (and that is the mail to which he want to be contacted) :sick:

I need to write the php code to send mail from advert form using
NOT the Advertiser mail that advertiser used to register himself in my site,
BUT the specific mail that advertiser put in his single advert!!! ;)
(It's the mail that is visible in Advertiser details on the rigth in advert page).

Can you help me to make this little change on your php code?

It's not a life matter, but really useful for my customers.
The administrator has disabled public write access.

In adverts "Contact Advertiser" use a "wrong" mail 11 months 2 weeks ago #6084

  • Super User
  • Super User's Avatar
  • Online
  • Administrator
  • Posts: 2765
  • Thank you received: 292
  • Karma: 40
Dear Customer,

Sorry, for custom works kindly contact our customization team at This email address is being protected from spambots. You need JavaScript enabled to view it. .

Thanks.
The administrator has disabled public write access.
Time to create page: 0.232 seconds