PC Nerd Posted July 3, 2007 Share Posted July 3, 2007 Hi, i want to have a nicely formatted email, which ive got in email.html. What i want to do is to have that emailed to a specific email, as the actual email content. Eventually it would become a php file, as its the confirmation email for signup. Thanks Quote Link to comment Share on other sites More sharing options...
True`Logic Posted July 3, 2007 Share Posted July 3, 2007 $eml = fread(fopen("email.html", "r"), filesize("email.html")); mail($eml) normally, emails just display html, send it as normal text... unless your emailing to g..... i mean Aol.. Quote Link to comment Share on other sites More sharing options...
PC Nerd Posted July 3, 2007 Author Share Posted July 3, 2007 well thats what i want to do, except its almost like a proper page........... the html file is the content of the email, which is why it will be php eventually..... how can i have the HTML or PHP doc as tehactual email and not an attachment. thanks Quote Link to comment Share on other sites More sharing options...
teng84 Posted July 4, 2007 Share Posted July 4, 2007 http://w3schools.com/php/func_mail_mail.asp Quote Link to comment Share on other sites More sharing options...
PC Nerd Posted July 4, 2007 Author Share Posted July 4, 2007 ok. i know how to send the email, and how to use HTML, howeever i have many lines of HTML. its as i said, an entire file. what im looking for is a method of sendign this file as the actual email. fo i have to use a meathod like reading the file for its contents, or can i simply go $content = require(FILE); mail(stuff, $content); thanks Quote Link to comment Share on other sites More sharing options...
teng84 Posted July 4, 2007 Share Posted July 4, 2007 have you tried file_get_contents Quote Link to comment Share on other sites More sharing options...
PC Nerd Posted July 4, 2007 Author Share Posted July 4, 2007 i havent, but ill look at it, thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.