Want to add several custom META elements to email html head
-
Hi! I’m using CF7 plus Conditional Fields for CF7 to deliver a nifty branching intake for potential home buyer leads. At this point in the process, I’d like to add several custom meta fields to the resulting email’s html head, per the following structural guidelines from my realtor’s CRM partner:
—————————————————-
Embedding lead metadataFollowing this specification is easy: simply embed key lead information in your lead emails using HTML meta tags. For example, an email that contains lead information should contain header fields as follows:
<!DOCTYPE html … >
<html xmlns= … >
<head>
…
<meta name=”lead_information_version” content=”1.0″ />
<meta name=”lead_source” content=”Realtor.com” />
<meta name=”lead_type” content=”Buyer” />
<meta name=”lead_name” content=”John Smith” />
<meta name=”lead_email” content=”jsmith@gmail.com” />
<meta name=”lead_phone” content=”703-555-1212″ />
…
</head>
<body>
…
</body>
</html>
————————————-I tried adding the relevant metadata to the “Additional Headers” field of the form’s ‘MAIL’ tab … but that adds the metadata to the email header not the (further down the document) <html><head> (test email below for your reference, comments in BOLD):
————————————-
Delivered-To: **SNIPPED for privacy**
Received: by 2002:a59:a768:0:b0:2ae:67b6:7de2 with SMTP id z8csp3854610vqs;
Fri, 29 Apr 2022 08:37:22 -0700 (PDT)**REDACTED lotsa security-related header stuff**
Subject: Attn: Buyer Has No Agent Yet
**REDACTED for privacy**
Date: Fri, 29 Apr 2022 15:37:21 +0000
From: Do Not Reply <wordpress@myziphome.com>
Message-ID: <**REDACTED for privacy**>
X-Mailer: PHPMailer 6.5.3 (https://github.com/PHPMailer/PHPMailer)**THE NEW STRUCTURED METADATA SHOWS UP HERE …**
lead_information_version: 1.0
lead_source: myziphome.com
lead_type: buyer
lead_name: **REDACTED for privacy**
lead_email: **REDACTED for privacy**
lead_phone: **REDACTED for privacy**
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary=”b1_QI3jzOZAh9u8vppAW0ukf2psCNKxBFKbn0vWU5vSfe0″
Content-Transfer-Encoding: 8bit
**REDACTED for privacy**–b1_QI3jzOZAh9u8vppAW0ukf2psCNKxBFKbn0vWU5vSfe0
Content-Type: text/plain; charset=us-asciiBuyer Has No Agent Yet
____________
Name: **REDACTED for privacy**
Email: **REDACTED for privacy**
Phone: **REDACTED for privacy**
____________
–b1_QI3jzOZAh9u8vppAW0ukf2psCNKxBFKbn0vWU5vSfe0
Content-Type: text/html; charset=us-ascii<!doctype html>
<html xmlns=”http://www.w3.org/1999/xhtml” dir=”ltr” lang=”en-US”>
<head>
<title>Attn: Buyer Has No Agent Yet</title>
**… BUT I NEED IT TO SHOW UP HERE**
</head>
<body>
<p>Buyer Has No Agent Yet<br />
____________<br />
Name: **REDACTED for privacy**<br />
Email: **REDACTED for privacy**<br />
Phone: **REDACTED for privacy**</p>
<p>____________</p>
</body>
</html>The page I need help with: [log in to see the link]
- The topic ‘Want to add several custom META elements to email html head’ is closed to new replies.