HTML e-mail with PHP, through outlook

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bytte
Forum Commoner
Posts: 75
Joined: Sun Nov 23, 2003 8:20 am
Location: Belgium

HTML e-mail with PHP, through outlook

Post by bytte »

I'm currently coding some kind of CMS. All goes fairly well, but now I'm facing some problems. The company wants to send HTML e-mail to the people that subscribed to their e-mail list.
The easy way would be to use the PHP mail() function to send the e-mail to the e-mailaddresses that are stored in a database. However, there are no e-mailaddresses stored in a database and they do not want to store them in a database in the future either. Instead, they are keeping track of their e-mail list in MS Outlook in a folder called "LIST" (or something like that).

So basically I need to send a HTML e-mail (with css, images and text) from within the CMS through MS Outlook. So I figured out I needed to use "mailto:LIST" to make the e-mail open in MS Outlook. But how can I make the body of the e-mail display a HTML message?

I thought of letting the company fill in the text of their e-mail in the CMS, when clicking the "send" button it would generate a PHP page on the server that shows the page that needs to be show in the e-mail body. But how do I send that page to MS Outlook?

I hope you understand what I mean.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

I've had this problem in the past...

It can't be done with mailto: - but it can with mail() [as you know]

Is Outlook running on a microsoft exchange server?

If so... they probably have access to a GAL (Global Address List)... I'd be surprised if nobody has written a class for working with Microsft Exchange GAL's :?
bytte
Forum Commoner
Posts: 75
Joined: Sun Nov 23, 2003 8:20 am
Location: Belgium

Post by bytte »

Okay, thanks for the information.
It is running on an exchange server. So I might try searching for some of these classes.

Thanks
Post Reply