mail function

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
yshaf13
Forum Commoner
Posts: 72
Joined: Mon Apr 03, 2006 7:59 pm

mail function

Post by yshaf13 »

hi, i have a xml coded email that i would like to send using the mail() function. how do i go about this?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

There are examples all over the place using mail(), do they not work for you for some reason?
yshaf13
Forum Commoner
Posts: 72
Joined: Mon Apr 03, 2006 7:59 pm

re

Post by yshaf13 »

i know how to use mail() but i want to put xml in to the body of the email. is that possible? this i s what i have now:

Code: Select all

$a="<?xml version=\"1.0\" encoding=\"UTF-8\" ?>
<w:wordDocument xmlns:w=\"http://schemas.microsoft.com/office/word/2003/wordml\....the rest of the xml"
but when i send it it just shows the raw xml.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Did you specify the content type being XML?
yshaf13
Forum Commoner
Posts: 72
Joined: Mon Apr 03, 2006 7:59 pm

re

Post by yshaf13 »

where would i do that?
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

You might want to check out this: http://www.swiftmailer.org
Post Reply