/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Formatting Emails

How can I format emails? Basically all I want is there to be bold headings.

I have tried using <b></b> and using [ b][ /b], but it doesn’t work.

Any Ideas?

[code=php]<?php

$emailadd=”[email protected]”;
$subject=$_REQUEST[“sub”];
$contact= “<b>Contact Method:</b> “;

$info= “<b>Get Info On:</b> “;

$message=$_REQUEST[“name”]
.”n”.$_REQUEST[“email”]
.”n”.$_REQUEST[“phone”]
.”nn”.$contact
.”n”.$_REQUEST[“sendEmail”]
.”n”.$_REQUEST[“sendPhone”]
.”nn”.$info
.”n”.$_REQUEST[“children”]
.”n”.$_REQUEST[“graduation”]
.”n”.$REQUEST[“seniors”]
.”n”.$_REQUEST[“weddings”]
.”nn”.$_REQUEST[“message”];

$headers = “From: memories by michael rn” . “X-Mailer: PHP/” . phpversion();

$result = mail(“$emailadd”, “$subject”, $message, $headers);

?>

Your message has been sent

<a href=”http://www.memoriesbymichael-mn.com/scripts/email.php”>back</a>[/code]

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@omnicityApr 18.2006 — I'm not an expert on PHP, but it doesn't look to me as though you are sending out a Mime-type header, which in this instance you want to set to 'text/html' or something similar.

If PHP is sending a Mime-type header by default, it is probably using 'test/plain'.
×

Success!

Help @The_Little_Guy 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.28,
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,
)...