k9webdesign Posted June 22, 2011 Share Posted June 22, 2011 Hi all, I have made my own script to generate an xml using the following format: $xmlsm = "<srs>\n" . " <affiliate_code>MyAffCode</affiliate_code>\n" . " <batch_id>".$batchid."</batch_id>\n" . " <sr>\n" . " <data>\n" . etc etc which is used to then send this using mailto command. However, the company has requested that it be sent as an attachment, is there any way to send the output as attachment without having to physically create the xml file on disk? If not, what is the simplest solution here? Thanks very much. Andy Quote Link to comment https://forums.phpfreaks.com/topic/240110-converting-php-variables-to-xml-attachment/ Share on other sites More sharing options...
redixx Posted June 22, 2011 Share Posted June 22, 2011 You can do this with the mail() function. There are many tutorials and snippets floating around the web to show you how. Quote Link to comment https://forums.phpfreaks.com/topic/240110-converting-php-variables-to-xml-attachment/#findComment-1233357 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.