Jump to content

sending email from a form.


the_oliver

Recommended Posts

Hello.
I have a from, which when submited sends the infomation as an email. to do this i use this code

[code]$success = mail($EmailTo, $Subject, $Body, "From: <$From>");[/code]

However i want to be able to include HTLM code in the $Body part.  At the moment im doing it by starting the body with:

[code]$Body = "
 
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"
    \"http://www.w3.org/TR/html4/loose.dtd\">

<html>......[/code]

However the emails always show the actual code, no the effects!

What am i doing wrong?

Thanks.
Link to comment
https://forums.phpfreaks.com/topic/29684-sending-email-from-a-form/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.