hgbarrett Posted March 24, 2007 Share Posted March 24, 2007 Please forgive me if this sounds like something simple, but I have only been trying out PHP for a few days now. Anyhow, I bought a book on PHP/MySQL with a number of projects. One of which is creating a PHP HTML email to send to a group of recipients (I want a nice, colorful HTML flyer to go to my mailing list). I understand the HTML formatting and the PHP code. What I don't understand is what to do with it once the PHP script is coded - the book doesn't describe this and I can't find this on the internet (maybe it's just something too obvious). I have a local server (Mac, Apache, PHP, MYSQL), but would like to send it through my webhost server (IX Hosting) where I can maintain folders with the newsletter images. So, do I put the PHP script up on the server along with the rest of my website? Then, how do I actually send the email newsletter? Do you just go directly to the script, for example, http://www.testsite.com/email_newsletter.php and it just automatically sends the message? The script uses the mail($Recipient, $MsgSubject, $MsgBody, $MsgHeader); to send the mail. Anyway, help would be appreciate if this makes sense to anyone. Link to comment https://forums.phpfreaks.com/topic/44178-php-html-newsletter/ Share on other sites More sharing options...
DeathStar Posted March 24, 2007 Share Posted March 24, 2007 Since you are new we wont blame you but.. Google is your friend search first ask later! just make it like : $MsgBody = " <html> <body> <img src='blah.png'> <b>Your email body here</b> </body> </html>"; Link to comment https://forums.phpfreaks.com/topic/44178-php-html-newsletter/#findComment-214517 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.