in Search
 
Home Blogs Forums Marketplace Files
 
 
 

Email body

Last post 12-08-2006, 2:03 PM by archive. 7 replies.
Sort Posts: Previous Next
  •  12-08-2006, 2:03 PM 11347

    Email body

    I know that I can assign the email subject, but can I designate what is to appear in the email body? If so how?
  •  12-08-2006, 2:03 PM 11348 in reply to 11347

    RE: Email body

    Hi,

    Take a look at the newFax.Attachments.AddNativeDocument signature, at least in v8.7 it has a boolean .IsDocumentMailBody parm.

    Greg
  •  12-08-2006, 2:03 PM 11349 in reply to 11347

    RE: Email body

    Did either of you get this to work? My email goes thru properly and gets sent, but it is always an attachment in the e-mail.. nothing in the body. I used to AddNativeDoc() method with the IsDocumentMailBody parameter = true, but didn't seem to make any difference for me. I tried with a word doc and a pcl file..

    thanks
  •  12-08-2006, 2:03 PM 11350 in reply to 11347

    RE: Email body

    I had the same experience. This appears to allow you to have a document type that is supported by the conversion process be emailed without conversion.
  •  12-08-2006, 2:03 PM 11351 in reply to 11347

    RE: Email body

    This will only work with HTML and/or Text documents, those that can be rendered by most mail readers. Possibly RTF but that is dependant on the mail reader the recipient is using and I have not tested this format.

    Typically, if they cannot render the body it will be added as a normal attachment.
  •  12-08-2006, 2:03 PM 11352 in reply to 11347

    RE: Email body

    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 11353 in reply to 11347

    RE: Email body

    I had the same problem. If you leave the optional "FileDescription" property empty, it will put the text from the txt file in the message body. I am still having issues with the html file in that it is inserting the raw html.
  •  12-08-2006, 2:03 PM 11354 in reply to 11347

    RE: Email body

    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.
View as RSS news feed in XML
  Privacy    Site Terms   Contact Administrator