cloudy

Author Topic: contact us email address  (Read 457 times)

0 Members and 1 Guest are viewing this topic.

Offline Jean-Robert

  • Posts: 807
  • St-Etienne-des-Gres Quebec Canada
    • jean-robert3592
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 11.0
    • Jean-Robert Marion
contact us email address
« on: April 18, 2012, 07:31:40 PM »
Hi

At the bottom of me page you can read "contact us"

My question is where do i enter my email address ?

Thank you

Offline Asobig

  • Posts: 13
  • Uithoorn, The Netherlands
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 20.0.1105.0
    • Weerstation Meerwijk
Re: contact us email address
« Reply #1 on: April 18, 2012, 08:30:59 PM »
In Settings.php

Row 112, starting with:  $SITE['email']

Offline Jean-Robert

  • Posts: 807
  • St-Etienne-des-Gres Quebec Canada
    • jean-robert3592
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 11.0
    • Jean-Robert Marion
Re: contact us email address
« Reply #2 on: April 18, 2012, 09:04:09 PM »
Hi

Well in the setting.php line 112 my email address is already there. When i click on "cntact" in the navigation bar, it work but when i click at the bottom of the page on "contact us" i have a 404 error code !  #-o :?
« Last Edit: April 18, 2012, 09:07:56 PM by Jean-Robert »

Offline saratogaWX

  • Posts: 5,030
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win XP
  • Firefox 11.0
    • Saratoga Weather
Re: contact us email address
« Reply #3 on: April 18, 2012, 09:35:08 PM »
The Settings.php entry is just for a full email address (not usually recommended as it will make you prone to spam email harvesters).

Since you're using the contact form (wxcontact.php) which deliberately hides your real email address, I suggest you change Settings.php to have
Code: [Select]
$SITE['email'] = "wxcontact.php" instead of your real email address.. then clicking on 'Contact' in the footer will invoke the wxcontact.php page instead.

Best regards,
Ken
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline Jean-Robert

  • Posts: 807
  • St-Etienne-des-Gres Quebec Canada
    • jean-robert3592
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 11.0
    • Jean-Robert Marion
Re: contact us email address
« Reply #4 on: April 18, 2012, 10:35:21 PM »
Hi Ken

My email address is not in wxcontact.php so if i ask settings.php to refer to wxcontact.php he will not find my email address !! #-o :?


Offline saratogaWX

  • Posts: 5,030
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win XP
  • Firefox 11.0
    • Saratoga Weather
Re: contact us email address
« Reply #5 on: April 18, 2012, 10:56:16 PM »
You're running the original version of the wxcontact.php where wxcontact-send.php does the real sending.

In wxcontact-send.php there is the line
Code: [Select]
  $toAddr = preg_replace('|mailto:|i','',$SITE['email']);

so if you put in Settings.php
Code: [Select]
$SITE['email'] = 'mailto:yourmail@yoursite.com'; it will find it (replace yourmail@yoursite.com with your real mail address).

Then change footer.php from
Code: [Select]
        <a href="<?php print $SITE['email']; ?>" title="E-mail us"><?php langtrans('Contact Us'); ?></a>
to
Code: [Select]
        <a href="wxcontact.php" title="E-mail us"><?php langtrans('Contact Us'); ?></a> then it should work as you wish (contact form for the Contact Us link).

Best regards,
Ken
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline Jean-Robert

  • Posts: 807
  • St-Etienne-des-Gres Quebec Canada
    • jean-robert3592
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 11.0
    • Jean-Robert Marion
Re: contact us email address
« Reply #6 on: April 19, 2012, 10:46:00 AM »
Hi Ken

I made all the changes you told me to do and it work just fine.

Thank you for your great help ! :D :D

Jean-Robert