Jump to content

Archived

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

glenelkins

one more thing about HTML emails

Recommended Posts

Ok so i can get html emails working if i write the html between <<<EOF ... EOF; but what is i want to get the html code from a file and send in the email. i use:

[code]
$email =
<<< EOF
  file_get_contents($filename);
EOF;
[/code]

but all it does is send: "file_get_contents($filename)" to the email address

any ideas?

Share this post


Link to post
Share on other sites
I don't like the [a href=\"http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc\" target=\"_blank\"]heredoc syntax[/a], but anyway.

Try to use $email = file_get_contents($filename); instead.

Share this post


Link to post
Share on other sites

×

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.