πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #959

Re: How display MAPIMAIL

#959
From: RS
Date: Tue, 28 Feb 2006 21:12
70 lines
2716 bytes
Hello,
I'm finally finding the following code :

But I don't know how I can integrated an attachment !   (for example : 
Edit1->Text = "c:\file.txt")
And how can I integrated the recipient email address (Edit2->Text = " 
address@company.com")

//-----------------------------------------  
TART  -----------------------------------
  TMapiMessage MapiMessage;
   Cardinal MError;

   MapiMessage.ulReserved = 0;
   MapiMessage.lpszSubject = "this is a test";
   MapiMessage.lpszNoteText = RichEdit1->Lines->Text.c_str();        // 
RichEdit1 contains the body message
   MapiMessage.lpszMessageType = NULL;
   MapiMessage.lpszDateReceived = NULL;
   MapiMessage.lpszConversationID = NULL;
   MapiMessage.flFlags = 0;
   MapiMessage.lpOriginator = NULL;
   MapiMessage.nRecipCount = 0;
   MapiMessage.lpRecips = NULL;        // How to put Edit2->Text on lpRecips 
???
   MapiMessage.nFileCount = NULL;
   MapiMessage.lpFiles = NULL;          // How to put Edit1->Text on lpFiles 
???


   MError = MapiSendMail(0, reinterpret_cast<unsigned 
int>(Application->Handle),
                 MapiMessage, MAPI_DIALOG | MAPI_LOGON_UI | 
MAPI_NEW_SESSION, 0);

   if (MError)
    ShowMessage("Error !");

//-----------------------------  
END -----------------------------------------------



I search on the net, but I don't find the solution !

Thanks ;)
RS

I'm using Borland  C++ Builder 6 enterprise



"RS" <rs.reloaded@wanadoo.fr> a οΏ½crit dans le message de news: 
4402040f@newsgroups.borland.com...
> Hello !
>
> How to display MAPIMAIL window with attachment ? (Microsoft Outlook or
> Outlook Express new message window)
>
> Like this :
>
> http://www.hawaii.rr.com/rrhelp/email/PC/IE5/addressbook/media/6click%20to%20from%20new%20message%20window.gif
>
>
> Thanks ;)
>
>
>
>
> 
Technical Details
Message-ID: <4404bbf5$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4402040f@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,b415d4e666b19fd4
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII
From: "RS" <rs.reloaded@wanadoo.fr>
Newsgroups: borland.public.cppbuilder.internet.web
References: <4402040f@newsgroups.borland.com>
Subject: Re: How display MAPIMAIL
Date: Tue, 28 Feb 2006 22:12:53 +0100
Lines: 72
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 83.194.199.88
Message-ID: <4404bbf5$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1141160949 83.194.199.88 (28 Feb 2006 13:09:09 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail