Page 1 of 1

mail function

Posted: Wed Apr 11, 2007 12:20 pm
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?

Posted: Wed Apr 11, 2007 12:35 pm
by feyd
There are examples all over the place using mail(), do they not work for you for some reason?

re

Posted: Wed Apr 11, 2007 1:01 pm
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.

Posted: Wed Apr 11, 2007 1:12 pm
by feyd
Did you specify the content type being XML?

re

Posted: Wed Apr 11, 2007 1:16 pm
by yshaf13
where would i do that?

Posted: Wed Apr 11, 2007 1:20 pm
by Oren
You might want to check out this: http://www.swiftmailer.org