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. General Programming
  3. C / C++ / MFC
  4. Email

Email

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminc++comjsonhelp
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.
  • S Offline
    S Offline
    SuperGeek
    wrote on last edited by
    #1

    Hello everyone. My question and current task is kinda simple. All I need to do is to send an email to the network admin from my MFC application that runs 24/7 on the server box. Sometimes, for unknown reason, the server box freezes and the only possible action(if I solve this problem) is to send an "alert" message to the network admins that "box needs to be rebooted ASAP". I know that there are lots of COM components(like ASP mail) out there that facilitate email protocols. As well, there is a number of socket API's and classes. Does anyone know which way is the fastest and easiest for MFC app to send a simple email. Big thanks in advance. Kirill

    A 1 Reply Last reply
    0
    • S SuperGeek

      Hello everyone. My question and current task is kinda simple. All I need to do is to send an email to the network admin from my MFC application that runs 24/7 on the server box. Sometimes, for unknown reason, the server box freezes and the only possible action(if I solve this problem) is to send an "alert" message to the network admins that "box needs to be rebooted ASAP". I know that there are lots of COM components(like ASP mail) out there that facilitate email protocols. As well, there is a number of socket API's and classes. Does anyone know which way is the fastest and easiest for MFC app to send a simple email. Big thanks in advance. Kirill

      A Offline
      A Offline
      Andrew Peace
      wrote on last edited by
      #2

      Use ShellExecute with the program set to a mailto link protocol; i.e mailto:admin@company&subject="blah" etc... using &body. Not a very full answer but I've got some VC problems at the moment so can't access documentation. -- Andrew.

      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