Support Forums

Old 04-08-2006, 04:02 AM   #1
Senior Member
 
SkGold's Avatar
 
Join Date: Mar 2006
Location: Best city in the World � Calgary, Canada
Posts: 468
Rep Power: 24
SkGold has a spectacular aura about
Default �Contact The Owner� form and Junk Mail

When contacting the ad owner by using �Contact The Owner� form in almost every case email ends up in junk folder, especially for hotmail. I guess it happened because the form sending mail by using [email protected] but when email arriving to the ad owner in �From� filed it showing the address [email protected] that contactor putting when filling the form.

Is it possible to use [email protected] as a sender address all the time when somebody using �Contact The Owner� forms? And [email protected] email insert in mail body? If yes how can I do it?

I guess it will solve the problem of getting the �Contact The Owner� emails in junk folder.
__________________
Thanks,
Sergey

Bargain Finder in Calgary, Alberta, Canada.
Calgary Business Directory V3.1.10 Dev - Calgary Classifieds V3.1.10 Dev - Calgary Real Estate V3.1.10 Dev - Calgary Used Cars V3.1.10 Dev - Calgary Rent V3.1.10 Dev - Calgary Dating V3.1.5 Dev

A website without well-done Internet Marketing and Search Engine Optimization is as good as non-existent.
SkGold is offline  
Old 04-08-2006, 09:17 AM   #2
Moderator
 
juven14's Avatar
 
Join Date: Mar 2006
Location: Texas
Posts: 2,213
Rep Power: 61
juven14 is a jewel in the rough
Default

Open contact.php

find:
PHP Code:
$mail->From $from;
$mail->FromName $name
edit as needed. Let me know if this isn't enough.
__________________
John Snyder
PHP Developer
juven14 is offline  
Old 04-08-2006, 03:30 PM   #3
Senior Member
 
SkGold's Avatar
 
Join Date: Mar 2006
Location: Best city in the World � Calgary, Canada
Posts: 468
Rep Power: 24
SkGold has a spectacular aura about
Default

Hi John,
I will appreciate if you could tell me more.
What do I need to insert instead to make the form going from [email protected]?
Also how to get the contactor email address in mail body?
__________________
Thanks,
Sergey

Bargain Finder in Calgary, Alberta, Canada.
Calgary Business Directory V3.1.10 Dev - Calgary Classifieds V3.1.10 Dev - Calgary Real Estate V3.1.10 Dev - Calgary Used Cars V3.1.10 Dev - Calgary Rent V3.1.10 Dev - Calgary Dating V3.1.5 Dev

A website without well-done Internet Marketing and Search Engine Optimization is as good as non-existent.
SkGold is offline  
Old 04-08-2006, 05:02 PM   #4
Moderator
 
juven14's Avatar
 
Join Date: Mar 2006
Location: Texas
Posts: 2,213
Rep Power: 61
juven14 is a jewel in the rough
Default

Open contact.php

find this:

PHP Code:
$mail = new PHPMailer();
$mail->AddAddress($to);
$mail->From $from;
$mail->FromName $name
Replace with this:

PHP Code:
$htmlContent str_replace("##email##"$from$htmlContent);
$textContent str_replace("##email##"$from$textContent);

$mail = new PHPMailer();
$mail->AddAddress($to);
$mail->From $from;
$mail->FromName $from
Then go into your admin panel and add this line to the contact owner email template where you need it:

Code:
##email##
__________________
John Snyder
PHP Developer
juven14 is offline  
Old 04-08-2006, 08:20 PM   #5
Senior Member
 
SkGold's Avatar
 
Join Date: Mar 2006
Location: Best city in the World � Calgary, Canada
Posts: 468
Rep Power: 24
SkGold has a spectacular aura about
Default

Thanks a lot John. I probably didn�t explain it clear. But you point me in right direction and I made it work. I actually change:
Quote:
$mail->From = $from;
$mail->FromName = $name;
To
Quote:
$mail->From = ADMIN_EMAIL;
$mail->FromName = $title;
Same way as "Account Activation" or "New User Registration" emails work.

Now for people who interesting:
In my Welcome email I am asking new customers to add my Admin email [email protected] to their address book. And if they do so all contacts from my site will be delivered to customers Inbox and not to Junk folder.

Once again thanks a lot John.
__________________
Thanks,
Sergey

Bargain Finder in Calgary, Alberta, Canada.
Calgary Business Directory V3.1.10 Dev - Calgary Classifieds V3.1.10 Dev - Calgary Real Estate V3.1.10 Dev - Calgary Used Cars V3.1.10 Dev - Calgary Rent V3.1.10 Dev - Calgary Dating V3.1.5 Dev

A website without well-done Internet Marketing and Search Engine Optimization is as good as non-existent.
SkGold is offline  
Old 04-08-2006, 08:28 PM   #6
Moderator
 
juven14's Avatar
 
Join Date: Mar 2006
Location: Texas
Posts: 2,213
Rep Power: 61
juven14 is a jewel in the rough
Default

Cool, glad it worked out. Probably me, my head hasn't really been on right today.
__________________
John Snyder
PHP Developer
juven14 is offline  
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 06:40 AM.


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