Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. C / C++ / MFC
  3. how to implement "mail it" button or menuitem

how to implement "mail it" button or menuitem

Scheduled Pinned Locked Moved C / C++ / MFC
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Konstantin S Diguine
    wrote on last edited by
    #1

    I need to make the following (very common I think) thing: an edit box for the e-mail address and a button "create new mail" using entered address. The existing implementation of this function does not suit me because it's not working without properly setup e-mail client :( . The implementation is call to ShellExecute function with URL like "mailto:a@a.com..." I've examined winzip using regmon (by sysinternals, Mark Russinovich & Bryce Cogswell). It opens key HKLM\Software\Clients\Mail, takes default client name, opens its key right here and uses the specified dll :eek: Then "create new mail" window of the e-mail client opens. May be there's some one else knows how to do that??? konst

    T 1 Reply Last reply
    0
    • K Konstantin S Diguine

      I need to make the following (very common I think) thing: an edit box for the e-mail address and a button "create new mail" using entered address. The existing implementation of this function does not suit me because it's not working without properly setup e-mail client :( . The implementation is call to ShellExecute function with URL like "mailto:a@a.com..." I've examined winzip using regmon (by sysinternals, Mark Russinovich & Bryce Cogswell). It opens key HKLM\Software\Clients\Mail, takes default client name, opens its key right here and uses the specified dll :eek: Then "create new mail" window of the e-mail client opens. May be there's some one else knows how to do that??? konst

      T Offline
      T Offline
      Tomasz Sowinski
      wrote on last edited by
      #2

      The HKLM\Software\Clients\Mail registry key is used by MAPI - I think it's not necessary to read the settings and call DLL 'manually'. CDocument::OnFileSendMail creates a message with serialized document as an attachment and opens a default email client - have a look on this method. Tomasz Sowinski -- http://www.shooltz.com.pl

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups