PDA

View Full Version : "Contact Us" e-mail and "Sales" e-mail the same ?


simonwar
15-May-2007, 08:39 AM
Hi,

On my site which is a Digital Download site, i have two mail addresses set up

sales@esafetysigns.co.uk, and
contactus@esafetysigns.co.uk

In my business settings i list the e-mail sales@esafetysigns.co.uk and when someone buys something, the e-mail they get comes from Sales.... great!!!!!

However, when someone uses the Contact Us page they also get a mail from Sales ... not so great??

How can i change this e-mail address??

Thanks, S.

acompton
15-May-2007, 09:38 AM
The 'thank you' email is generated by the following code in MailForm.pl:


#
# Send the same message to the sender
# Withe a "thank you" prefix
#
$sTextMailBody = ACTINIC::GetPhrase(-1, 2379) . "\r\n\r\n" . $sTextMailBody;
my @Response = ACTINIC::SendMail($::g_sSmtpServer, $sEmailRecpt, $sSubject, $sTextMailBody, $$::g_pSetupBlob{EMAIL});
if ($Response[0] != $::SUCCESS)
{
ACTINIC::RecordErrors($Response[1], ACTINIC::GetPath());
$sError = $Response[1];
}


The 'sender' is set by $$::g_pSetupBlob{EMAIL} which is the shop's email in the configuration data. This will be set to the 'sales' email.
You could edit MailForm.pl to replace $$::g_pSetupBlob{EMAIL} with the contactus email (in double-quotes).
See other posts about spam arising from this automatically generated email.

Alan Compton
www.greenknightgames.co.uk
Great board games and cards games you won't find in the High Street