glenelkins Posted June 4, 2006 Share Posted June 4, 2006 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 addressany ideas? Link to comment https://forums.phpfreaks.com/topic/11160-one-more-thing-about-html-emails/ Share on other sites More sharing options...
poirot Posted June 4, 2006 Share Posted June 4, 2006 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. Link to comment https://forums.phpfreaks.com/topic/11160-one-more-thing-about-html-emails/#findComment-41737 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.