Jump to content


Photo

one more thing about HTML emails


  • Please log in to reply
1 reply to this topic

#1 glenelkins

glenelkins
  • Members
  • PipPipPip
  • Advanced Member
  • 760 posts
  • LocationBridlington - East Riding of Yorkshire - United Kingdom

Posted 04 June 2006 - 03:16 PM

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:

$email =
<<< EOF
  file_get_contents($filename);
EOF;

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

any ideas?
http://thewebsolutionprovider.com - A Solution For Everything Web!

#2 poirot

poirot
  • Members
  • PipPipPip
  • Advanced Member
  • 646 posts
  • LocationAustin, TX

Posted 04 June 2006 - 03:29 PM

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.
~ D Kuang




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users