Jump to content

Converting php variables to XML attachment


k9webdesign

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.