Donate Share

VMime

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Can't attach ANY file with messageBuilder

You are viewing a single message from this topic. View all messages.

  1. 2008-01-24 14:47:18 UTC
    Hi there,

    first of all i am quite impressed how gently vmime usage is.
    I managed to get working all i need EXCEPT the possibility to
    attach a file via path. I always receive the no_encoder_available
    exception when i try to attach:
    -pdfs
    -jpgs-
    -PLAIN text files
    of course setting the mediatype respectivly to
    -application/octet-stream
    -image/jpeg
    -text/plain
    with the mentioned result above.

    Btw. the mail to be generated will be/shall be composed of
    a plain text part, a html text part, some embedded jpegs and
    one attachment.

    My sequence of operations is as follows:
    -create Messagebuilder Instance
    -set subject/expeditor/recipients
    -constructTextPart
    -embed object (jpeg in this case)
    -setText
    -setPlainText
    -ATTACH
    -messagbuilder.construct()
    -send away (AND NOW EXCEPTION!)

    I carefully looked over the example code on vmime home but i
    fail to discover any mistakes i may have done in call sequence
    or others.

    So i humbly beg for help :)
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.