OE New Message with Attachment from MIME

Environment: Visual C++

This program is very useful when you want to send a message with an attachment if you use Outlook Express like your default program for sending or receiving messages. It is also useful in case of sending your documents from database, because it writes your attachment and puts it in a message.

In the EMail dialog there is the edit multiline control where you can type the text of the attachment. On the Email button you can save this text like a *.txt file and that text file is to be the attachment.

This function is similar to the function CDocument::OnFileSendMail(), except that using my function you may also put a subject and a note text in a message. In general, you can fill the MapiMessage structure as you like.

MapiMessage message;
memset(&message, 0, sizeof(message));
message.nFileCount = 1;
message.lpFiles = &fileDesc;
message.lpszSubject="Test";
message.lpszNoteText=
          "This program send message with *.txt attachment";

Downloads

Download demo project - 70 Kb


Comments

  • Ghd Fladjern Metallic Collection Limited Edition nu tilgængelig pÃ¥ Hair Booth Danmark

    Posted by carpinteyrobxz on 06/15/2013 03:51am

    [url=http://glattejern-ghd.weebly.com/]Glattejern ghd[/url] ghd glattejern er kvindens smukke frisure hemmelige våben. Den berømte GHD er charmen ved hvordan at erobre de kræsne kvinde og stylist? Vi har først forstå ghd håret under de vigtigste funktioner.GHD glattejern vigtigste produkter, primært keramik varmeteknik, brugen af produktionen af keramiske varmelegeme og Sydkorea, produktion af varmt plade, og implanteret nano-teknologi, infrarød teknologi og negative ion-teknologi, er produkter, oftest håndteres af overflade lys , elegant fremragende kvalitet. Alle produkter er fremstillet i overensstemmelse med British Standard GS, sikker og pålidelig. pink ghd er stadig den bedst sælgende produkt i 2011, denne GHD Hvad charme? [url=http://glattejernghdpris.webs.com/]glattejern ghd pris[/url] Du kan manuelt styre temperaturen i ghd glattejern. Hvis du ønsker en høj temperatur kontakt dit hår, så du kan varme lang tid at nå dine ønskede temperatur. Du kan bruge. Bemærk: når du bruger ghd glattejern, skal du være opmærksom på deres egen sikkerhed, for at undgå at blive brændt. Let at bruge ghd glattejern, godt modelleringsværktøjer.Perfekt hår tænketank til at hjælpe dig med at ændre dit udseende, kan du finde online DVD præsentation af måder at opnå varme ghd glat hår stilarter trin for trin instruktioner. Såsom hands-on lære dig, så snart som muligt fortrolig med brugen af billige ghd glattejern. [url=http://www.ghdfladjerntilbud.webeden.co.uk/]ghd fladjern tilbud [/url] Populære ghd glattejern er det bedste hårpleje eksperter, hvilket gør det et godt udvalg af stilarter du vil. Kan altid ændre din frisure. Lad alle dine udseende er blevet mere fremragende.Mange stjerner kan også godt lide styling værktøjer. Fordi det er let at bære. Kan være godt udnyttet. Enkel betjening, det forvandlet. Professionel ghd glattejern har også brug for professionelle folk til at sælge det. I forstår ikke, hvordan man bruger den samme tid, kan du bede dem om spørgsmål, kan du kende på et andet tidspunkt og sted du ønsker viden. Vi sælger ghd glattejern er det bedste, fordi vi har været igennem mange års drift og praksis. Folk skal forstå, hvad stil ghd glattejern. Til personlig pleje. Derfor mener vi, på vi vil være den bedste partner.

    Reply
  • Here's Some Of The Solution That Is Actually Allowing nike-professionals Grow

    Posted by BobHotgloff on 05/01/2013 02:11pm

    Quick post explains the most important inner workings on nike as well as exactly what one need to do right away. [url=http://www.mizunogoruhujp.com/]mizuno[/url] The Keys For mizuno [url=http://www.mizunogoruhujp.com/ミズノ-ゴルフクラブ-c-1.html]ミズノ アイアン[/url] Brief write-up will show you all the cogs and wheels on mizuno and consequently everything you ought to do right now. [url=http://www.mizunogoruhujp.com/ゴルフグローブ-c-33.html]グローブ ミズノ[/url] All that the competition does with regard to mizuno and exactly what youwant to do different. [url=http://www.mizunogoruhujp.com/ゴルフバッグ-c-7.html]ミズノゴルフ[/url] Neutral article unveil Seven new things regarding nike that nobody is bringing up. [url=http://www.mizunogoruhu.com/]ミズノ グローブ[/url] A double turn on mizuno [url=http://www.mizunogoruhu.com/ミズノmizuno-クラブ-c-4.html]ミズノ mp[/url] Resources and manufacturing throughout Indiana - nike basically leaves without any good bye [url=http://www.mizunogoruhu.com/ミズノmizuno-アイアン-c-3.html]ミズノ[/url] Robust tactics for nike you can use beginning straight away. [url=http://www.mizunogoruhu.com/ミズノmizuno-バッグ-c-5.html]ミズノゴルフ[/url] Short review disclose the undeniable information regarding nike and the way it could may affect your business.

    Reply
  • How can you attach multi-files at Outlook Express?

    Posted by Legacy on 03/17/2003 12:00am

    Originally posted by: Kit

    How can you attach multi-files at Outlook Express?

    Help me!

    Reply
  • more information about mail ( smtp, imap, pop, mime)

    Posted by Legacy on 03/18/2002 12:00am

    Originally posted by: anna

    a lot of information are available here :
    
    

    http://www.salemioche.com/us

    Reply
  • E-Mail

    Posted by Legacy on 01/09/2002 12:00am

    Originally posted by: Maya

    Hi,
    If you save *.txt attachment in other and not in current directory, you get error "Send mail failed to send message".
    The bug is in the line :

    if (file.Open(m_strPathName/*m_strTitle*/, CFile::modeReadWrite | CFile::modeCreate, NULL) == 0) {
    str.Format("Can't Write %s File!", m_strPathName);
    AfxMessageBox(str, MB_ICONEXCLAMATION);
    }

    (m_strPathName instead m_strTitle)

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • On-demand Event Event Date: September 10, 2014 Modern mobile applications connect systems-of-engagement (mobile apps) with systems-of-record (traditional IT) to deliver new and innovative business value. But the lifecycle for development of mobile apps is also new and different. Emerging trends in mobile development call for faster delivery of incremental features, coupled with feedback from the users of the app "in the wild." This loop of continuous delivery and continuous feedback is how the best mobile …

  • Webinar on September 23, 2014, 2 p.m. ET / 11 a.m. PT Mobile commerce presents an array of opportunities for any business -- from connecting with your customers through mobile apps to enriching operations with mobile enterprise solutions. Join guest speaker, Michael Facemire, Forrester Research, Inc. Principal Analyst, as he discusses the new demands of mobile engagement and how application program interfaces (APIs) play a crucial role. Check out this upcoming webinar to learn about the new set of …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds