Re: Pocket PC 2003 MAPI Attachments

From: David Bergeron (daveberg_at_Adelphia.net)
Date: 03/31/04


Date: Wed, 31 Mar 2004 07:17:55 -0500

Are you using the VOMAPI classes?

"Chris Anderson" <pssupport@NOSPAM.ecspl.com.au> wrote in message
news:e37Ho1rFEHA.692@TK2MSFTNGP09.phx.gbl...
> Hi all
>
> I'm having a problem sending attachments to emails using MAPI under the
> Pocket PC 2003 environment. My code worked fine under Pocket PC 2002, but
> in 2003 attachments don't end up being sent properly. After I send a
> message and go to the Outbox of the Pocket PC Inbox, I can see and open
the
> attachment without any problems. However, when it's synchronised with the
> POP3 server, the attachment doesn't appear to the recipient, but instead a
> string such as the following:
>
> _000_0009_01C41353.658A6B00--
>
> is appended to the body text of the message.
>
> However, if I open the message in the Pocket PC Inbox before it is
> synchronised with the server and press Send, the attachment will be sent
to
> the recipient correctly the next time I synchronise with the POP3 server.
> So obviously I am attaching the file correctly, I must be just missing
some
> new flag or property that is required. At the bottom of this post I have
> attached the source of the messages once they have reached the recipient
(if
> that will help anyone), of one that had the attachment sent successfully
> (sent from the Pocket PC Inbox), and one that didn't (sent from my
program).
> Please note that I have removed the headers.
>
> I've tried comparing the following properties of the message and its
> attachment without pressing Send from the Pocket PC Inbox, and with it
> pressed, and they match exactly:
>
> PR_HASATTACH
> PR_MESSAGE_FLAGS
>
> PR_ATTACH_SIZE
> PR_ATTACH_METHOD
> PR_MSG_STATUS
>
> So there must be some other property that I'm not aware of that I now have
> to set?
>
> There seems to be no documentation at all on the Internet that can help me
> with this problem. I was hoping someone could help me with this, because
I
> have spent the last couple of days on this problem and got absolutely
> nowhere. Has anyone been able to send attachments successfully in Pocket
PC
> 2003? Does anybody know what might have changed from 2002? Does anyone
> have any suggestions? Any help will be very much appreciated.
>
> Regards
>
> Chris Anderson
>
>
> --------------------------------------------------------------------------

--
> ---
> MSG SOURCE WHERE ATTACHMENT NOT SENT PROPERLY:
>
> <HEADER REMOVED>
> Subject: From Program
> Date: Fri, 26 Mar 2004 16:57:17 -0800
> MIME-Version: 1.0
> Content-Type: multipart/mixed;
>  boundary="----=_NextPart_000_0009_01C41353.658A6B00"
> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.1432.1
>
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_0009_01C41353.658A6B00
> Content-Type: text/plain;
>  charset="iso-8859-1"
> Content-Transfer-Encoding: 7bit
>
> --------------------------------------------------------------------------
--
> ---
> MSG SOURCE WHERE ATTACHMENT NOT SENT PROPERLY:
>
> <HEADER REMOVED>
> Subject: From Inbox
> Date: Fri, 26 Mar 2004 16:57:15 -0800
> MIME-Version: 1.0
> Content-Type: multipart/mixed;
>  boundary="----=_NextPart_000_0006_01C41353.64593E00"
> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.1432.1
>
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_0006_01C41353.64593E00
> Content-Type: text/plain;
>  charset="iso-8859-1"
> Content-Transfer-Encoding: base64
>
> ------=_NextPart_000_0006_01C41353.64593E00
> Content-Type: text/plain;
>  name="TextDoc.txt"
> Content-Transfer-Encoding: 7bit
> Content-Disposition: attachment;
>  filename="TextDoc.txt"
>
> ------=_NextPart_000_0006_01C41353.64593E00--
>
>


Relevant Pages

  • RE: Problems with datagrid/viewstate on pocket explorer
    ... A Pocket PC is a resource-challenged device in many ... Problems with datagrid/viewstate on pocket explorer ... | Content-Type: text/plain; ... | data in grid from Windows CE-based device" on your support site. ...
    (microsoft.public.dotnet.framework.aspnet.mobile)
  • Re: Exchange Encoding...
    ... The Plain Text setting will ensure the content-type of the messages are ... text/plain, but the content-transfer-encoding will be Quoted-Printable. ... If you are sending attachments and also writing some text in the message, ... > If I have use Plain Text checked on Internet Message Formats, ...
    (microsoft.public.exchange2000.admin)
  • Re: Kids bypassing firewall via web proxy sites
    ... Don Kelloway wrote: ... Is it possible to reach www.dingens.org on port 80? ... And the word was Content-type: text/plain ...
    (comp.security.firewalls)
  • Re: GD Error on displaying png image
    ... you can change the header to ... "Content-type: text/plain" temporarily. ... This will dump the contents to the ...
    (comp.lang.php)
  • Re: French adjectives Re: All agglutinative languages are SOV-ordered?
    ... accompanying header "Content-Type: text/plain; ...
    (sci.lang)