/    Sign up×
Community /Pin to ProfileBookmark

Formmail with html question.

I’ve never tried to create a formmail script that had links or any type of html, is there anything I need to add to parse as “HTML” email and not text!?

[code=php]
$user_contact = $_GET[‘contact’];
$comments_question = stripslashes($comments_question);

$subject = “Contact Us – Website.Org”;
$to = “[email protected]”;

$message = “[ATTN]
Contact: $contact
Department: $department

[FROM]
Name: $namen”;

if($agency_business) { $message .= “Agency/Business: $agency_businessnn”; } else { $message .= “n”; }

$message .= “Address: $address_line_1n”;
if($address_line_2) { $message .= “Line 2: $address_line_2n”; }

$message .= “City: $city
State: $state
Zip: $zip_code

Phone Number: ($phone_ac) $phone_pf-$phone_sf
Email Address: <a href=”mailto:$email_address”>$email_address</a>

[COMMENTS/QUESTION]
$comments_question”;

$headers = “To: $contact <[email protected]>rn”;
$headers = “From: $name <$email_address>rn”;

mail($to, $subject, $message, $headers);
[/code]

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @d_brandusa spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...