How Do I Add an Attachment to an Email I Send? (Magic xpa 3.x)
When you send an email using Magic xpa functions, you will use the MailSend() function. The syntax of that function is:
MailSend (From, To, Cc, Bcc, Subject, Message, Attachment)
To send an attachment, you only need to specify the Attachment parameter of the MailSend function.
You can send multiple attachments by stringing the file names together, separated by commas.
So one example might be:
MailSend ('jenny@frigates.com', 'fred@aaawidgets.com', '', '', 'May Invoice', 'Attached is your May invoice', 'F:\Invoices\aaa_11_2007.pdf')
In this instance, the file 'F:\Invoices\aaa_11_2007.pdf' is the attachment.
How Do I Send an Email?
The Online and Rich Client Samples projects (program EL02 and REL02)