Announcement

Collapse
No announcement yet.

contact form to a different email than the receipt email

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    contact form to a different email than the receipt email

    One of my clients has asked that the contact form goes to a sales@company.co.uk email rather than the orders@company.co.uk that the customer receipts have as their from address.

    Can anyone give me a pointer as to which perl script needs to be edited.(presumably MailForm.pl)

    I had a quick look and changed the following line.

    my @Response = ACTINIC::SendMail($::g_sSmtpServer, $$::g_pSetupBlob{EMAIL}, $sSubject, $sTextMailBody, $sEmailRecpt);
    to

    my @Response = ACTINIC::SendMail($::g_sSmtpServer, "sales@company.co.uk", $sSubject, $sTextMailBody, $sEmailRecpt);
    however this didn't work and threw the servers generic error page - presumably the function is expecting $$::g_pSetupBlob{EMAIL} to return something other than a string?

    Anybody got any ideas?
    Wayne Theisinger

    The Web's just settling in. We got the tech, now let's put up something that matters.

    #2
    Anyone? - all I really need to know is what MailForm.pl is expecting to be returned by $$::g_pSetupBlob{EMAIL};
    Wayne Theisinger

    The Web's just settling in. We got the tech, now let's put up something that matters.

    Comment


      #3
      Close, try single quotes. This worked for me:

      my @Response = ACTINIC::SendMail($::g_sSmtpServer, $$::g_pSetupBlob{EMAIL}, $sSubject, $sTextMailBody, $sEmailRecpt);

      change this to:

      my @Response = ACTINIC::SendMail $::g_sSmtpServer, 'youremail@yourdomain.co.uk', $sSubject, $sTextMailBody, $sEmailRecpt);
      Regards,

      Toby Blanchard

      Comment


        #4
        smashing thanks Toby, I'll give it a go.
        Wayne Theisinger

        The Web's just settling in. We got the tech, now let's put up something that matters.

        Comment

        Working...
        X