Home arrow Hacks arrow 4.5.1x arrow Change contact reply e-mail address  
Main Menu
Home
Site News
Search
Contact Us
About Us
Mambo Notes
Administration
Installation
Hacks
Site Layout / CSS
Other
Website Stories
Mambo 101
Mambo Links
Author Login
Username

Password

Remember me
Password Reminder
Change contact reply e-mail address Print E-mail
Image* This has been fixed in 4.5.2.

When someone uses the contact form on a Mambo 4.5.1x site, the e-mail that is sent uses the "FROM" address set in the Mambo Global Configuration.  Often, we forget this fact and simply hit reply instead of getting the user's address from the e-mail text (sending our response to the site administrator).  To solve this problem and make the reply address in the e-mail from your Mambo site be the one that the user entered, make the following change:

In the com_contact folder in the contact.php file.  Find the line that looks like this:
mosMail( $mosConfig_mailfrom, $mosConfig_fromname, $email_to, $subject, $text );

Change it to look like this:
mosMail( $email, $mosConfig_fromname, $email_to, $subject, $text );  

This change will send the user entered e-mail address to the mosMail function as the reply address.  When mosMail sends the message, the user's entered e-mail address will be the "FROM" address allowing us to simply hit reply to respond to the e-mail.


Last Updated ( Wednesday, 02 March 2005 )
Bookmark Us
 
 
Popular
Latest Content
Content Copyright 2004 - 2005 KABAM, Inc. All Rights Reserved.

Mambo Copyright 2000 - 2004 Miro International Pty Ltd. All rights reserved.
Mambo is Free Software released under the GNU/GPL License.