Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Trusted Contributor
rrr_04
Posts: 167
Registered: ‎03-02-2010
Accepted Solution

Problem in adding attachment pragmatically and invoking email application

Hi

I am trying to invoke email application pragmatically, adding an PDF attachment.

I have used the BB knowledge base article, "How to create an attachment" as the reference.

Now when I run the application, I get an error message saying "Email service does not support these types of attachments. Change the send using fields or remove the attachments".

On clicking the OK button on the above dialog, the messaging client is visible with the file attached, but there is no send option in the menu. I am able to view the attachment but not send it. When the attachment is removed through the menu, the send option is visible again.

I am developing on Eclipse with the Blackberry 4.6 and 4.7  plugin.
Can anyone help me out on this, this is problem only happen is simulator or it may be come in real device??
I do not have real device to test.

Thanks in advance.
Please use plain text.
Trusted Contributor
rrr_04
Posts: 167
Registered: ‎03-02-2010

Re: Problem in adding attachment pragmatically and invoking email application

Bumb?
Please use plain text.
Developer
simon_hain
Posts: 13,796
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: Problem in adding attachment pragmatically and invoking email application

 

while i have never encountered this error there are some specific tips when you search for the error message, both here and on google.

 

for example:

http://supportforums.blackberry.com/t5/Java-Development/Creating-VCard-attachment/m-p/57686

 

the MDS simulator also has limited support for attachments, do you see the issue on a real device?

 

it could also be a permission problem, can you send the attachment from a rim app?

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Trusted Contributor
rrr_04
Posts: 167
Registered: ‎03-02-2010

Re: Problem in adding attachment pragmatically and invoking email application

Hi Simon,

I do not have real device to test. Yes I am able to send email with rim app.

 

I am trying to send PDF file with attachment, when I am sending email using  "Transport.send(message)"

method. It displaying in sent folder but it not sent and appear with "Cross" mark , and when I tried to invoke mail application with attachment I am getting this error. I don,t have any idea how to solve the issue. I did some application with email fictionally but did not faced such type of problem before.

 

Thanks

Please use plain text.
Developer
simon_hain
Posts: 13,796
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: Problem in adding attachment pragmatically and invoking email application

 

MSohm said that the MDS simulator has limited attachment capabilities, i can't say if it is this problem but it looks likely. you should look for a real device to confirm. not everything can be developed with a simulator.

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Trusted Contributor
rrr_04
Posts: 167
Registered: ‎03-02-2010

Re: Problem in adding attachment pragmatically and invoking email application

Thanks Simon, OK I will test it in real device and will let you know what happen.
Please use plain text.
Trusted Contributor
rrr_04
Posts: 167
Registered: ‎03-02-2010

Re: Problem in adding attachment pragmatically and invoking email application

Tested in device and its working...
Please use plain text.