Please help!
I'm building a CMS at the minute based around a newsletter which can be sent by adding articles, images etc. to a database and then bringing them all together into an email.
However, I'm not quite sure how to put these articles into an email.
I've explored several ideas, but I'm getting to the point now where it's either gonna take 2 seconds or 2 years to do!
If anyone has any ideas, or even pseudo code, any help would be much appreciated.
Thank you
PHP Email Processing
Moderator: General Moderators
- mikeeeeeeey
- Forum Contributor
- Posts: 130
- Joined: Mon Jul 03, 2006 4:17 am
- Location: Huddersfield, UK
something like this?
Code: Select all
$r = mysql_query("SELECT `fields`,`you`,`need` FROM `table`");
$a = mysql_fetch_assoc($r);
$body = $a['fields'].$a['you'].$a['need'];
mail('recipient@x.com','subject',$body,$headers);Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
- mikeeeeeeey
- Forum Contributor
- Posts: 130
- Joined: Mon Jul 03, 2006 4:17 am
- Location: Huddersfield, UK