XMLAPI per fax di esempio

Segue un XMLAPI fax di esempio che invia un fax con l’oggetto Fattura proforma a due destinatari: Giovanni Carboni e Franco Russo. Per questo esempio vengono utilizzati altri due file:

  • Allegato: un allegato mswordfile.doc
  • File del corpo: un file di solo testo bodyfile.txt

Questi file sono archiviati in c:\temp\ prima di archiviare i file XMLAPI nella cartella di prelievo. Saranno eliminati da c:\temp\ quando il fax viene prelevato da GFI FaxMaker.

<?xml version="1.0" encoding="utf-8"?>
<faxmakerdata>
	<fields>
		<subject>Proforma Invoice</subject>
		<schedule>2017-10-10-08:15:00</schedule>
		<priority>high</priority>
		<billingcode>25</billingcode>
		<resolution>high</resolution>
		<coverpage>corporate</coverpage>
		<frontcovernote>letterhead</frontcovernote>
		<faxline demandline="true">3</faxline>
		<faxheader>this is fax header text</faxheader>
		<bodyfile type="text/plain">
			c:\temp\bodyfile.txt
		</bodyfile>
		<attachment>
			c:\temp\mswordfile.doc
		</attachment>
		<uid>3a5a90s7de3g20k9y4d5e7e6fse28se5e097</uid>
	</fields>
	<sender>
		<firstname>John</firstname>
		<lastname>Smith</lastname>
		<company>MyCompany Ltd.</company>
		<department>Sales</department>
		<faxnumber>1234 5678</faxnumber>
		<voicenumber>9876 5432</voicenumber>
		<emailaddress>jsmith@mycompany.com</emailaddress>
	</sender>
	<recipients>
		<fax>
			<recipient>
				<firstname>Joe</firstname>
				<lastname>Bloggs</lastname>
				<company>JohnBloggs Company</company>
				<department>Marketing</department>
				<faxnumber>1122 3344</faxnumber>
				<voicenumber>5566 7788</voicenumber>
				<emailaddress>
					jbloggs@johnbloggs.com
				</emailaddress>
			</recipient>
			<recipient>
				<firstname>Bob</firstname>
				<lastname>Jones</lastname>
				<company>BobJones Company</company>
				<department>Accounts</department>
				<faxnumber>9988 7766</faxnumber>
				<voicenumber>5544 3322</voicenumber>
				<emailaddress>
					bjones@bobjones.com
				</emailaddress>
			</recipient>
		</fax>
	</recipients>
</faxmakerdata>