Announcement

Collapse
No announcement yet.

Append Subject in Contact Form email

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

    Append Subject in Contact Form email

    I'm using the Contact Us form, which is great. I've added an extra field and that's working fine.

    I really want to append the subject field so in the email, the subject field would say something like "Website enquiry: the users subject"

    Anyone know how to do that?
    Web . Design . Multimedia . Branding

    #2
    In my form, I add the customer's name after the subject by changing the line

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

    Code:
    my @Response = ACTINIC::SendMail($::g_sSmtpServer, $$::g_pSetupBlob{EMAIL}, $sSubject . " (" . $sName . ")", $sTextMailBody, $sEmailRecpt);
    I don't know if that is the correct or best way to do it, but it works. Using the same logic, you would probably need something like:

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

    Comment


      #3
      Your code worked perfectly. Many thanks!
      Web . Design . Multimedia . Branding

      Comment

      Working...
      X