How do i send text and html email at the same time

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
gotornot
Forum Commoner
Posts: 54
Joined: Fri Jul 31, 2009 2:30 am

How do i send text and html email at the same time

Post by gotornot »

H Peeps

Im looking at sending both html and text email at the same time. Im not sure how to do this i can send them both independantly but am not sure on the dual method.

Any ideas?
User avatar
akuji36
Forum Contributor
Posts: 190
Joined: Tue Oct 14, 2008 9:53 am
Location: Hartford, Connecticut

Re: How do i send text and html email at the same time

Post by akuji36 »

Hello

I have php running on my machine so I can use php mail function

to send mail.

Xampp installs php, mysql and apache(your server)

xampp link here:
http://www.apachefriends.org/en/xampp-windows.html#641

php mail function here:

http://email.about.com/cs/phpemailtips/qt/et031202.htm
thanks

Rod
webpagesofease.com
Mark Baker
Forum Regular
Posts: 710
Joined: Thu Oct 30, 2008 6:24 pm

Re: How do i send text and html email at the same time

Post by Mark Baker »

Take a look at this example from php.net
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: How do i send text and html email at the same time

Post by pickle »

SwiftMailer is a pretty good library for simplifying email sending & can take care of all the specifics of sending multipart emails.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply