|
|
Email body
Last post 12-08-2006, 2:03 PM by archive. 7 replies.
-
-
-
-
-
-
12-08-2006, 2:03 PM |
-
archive
-
-
-
Joined on 09-26-2006
-
-
Posts 11,955
-
-
|
I tried a .txt and .htm file but still no luck, it just appears as a regular file attachment.. are there any specific rightfax components required for this to function?
here is the code i am using to create and send the email:
fax = svr.CreateObject2("SJDUNNE", RFCOMAPILib.CreateObjectType.coFax)
fax.IsINLJob = RFCOMAPILib.BoolType.True
fax.IsProductionFax = RFCOMAPILib.BoolType.True
fax.EmailSubject = txtSubject.Text
'-- COVER PAGE
'fax.OriginalFCSFilename = "rfinvc.pcl"
fax.HasCoversheet = RFCOMAPILib.BoolType.True
'attachment in body
fax.Attachments.AddNativeDocument("c:\\altheim\\rfinvc.txt", "rfinvc.txt", RFCOMAPILib.BoolType.True)
'-- email attachments
For Each row In datAtt.Rows
' fax.Attachments.AddNativeDocument(row("File"), row("File"), RFCOMAPILib.BoolType.False)
Next
'--email recipients
grp = svr.CreateObject2("SJDUNNE", RFCOMAPILib.CreateObjectType.coPhoneItemGroup)
For Each rowv In dv
rcp = svr.CreateObject2("SJDUNNE", RFCOMAPILib.CreateObjectType.coPhoneItemElement)
rcp.IsEmailRecipient = RFCOMAPILib.BoolType.True
rcp.EmailAddress = rowv("Target")
rcp.Name = rowv("Name")
grp.Add(rcp)
Next
fax.Recipients = grp
fax.Send()
|
|
-
-
12-08-2006, 2:03 PM |
-
archive
-
-
-
Joined on 09-26-2006
-
-
Posts 11,955
-
-
|
That is how most of the mailreaders will render the email, including Outlook ans Outlook Express. The same behaviour can be reproduced by sending an email from FaxUtil and speficying an attachment as both a Native Document and the Email Body.
This is the informational dialog that appears:
~~~
The Alternate Body check box specifies that the attachment is an alternative file format. Alternative file formats can be specified when you want to choose the format that the recipient's e-mail software will display.
For example, you can send a text file and a rich text file. Generally, the recipient's e-mail software will display the file in the format that it supports. It will not display both files.
The attachment you select as the alternate body will display to the recipient as the e-mail message, not as an attachment.
The sequence of Alternate Body attachments determines the file format that the recipient's e-mail software will display. Generally, it will display the first file format that it supports. For example, if you specify HTML and text format, a software program that supports both formats will display HTML first.
~~~
Using this method you should be able to get a call started with Captaris Support, let them know you are using FaxUil to send the email and not the API.
|
|
|
|