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. Mail from an NT Service

Mail from an NT Service

Scheduled Pinned Locked Moved C / C++ / MFC
7 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.
  • N Offline
    N Offline
    Nick Blumhardt
    wrote on last edited by
    #1

    Hi all, I'm having great problems sending email from an NT service- the only place I've found it mentioned was in MSDN referring to Extended MAPI X| Given that I don't want to go to such great lengths to do it, can anyone let me know of a way to send email from a service? All I need to do is send a simple message to a recipient. Thanks very much for any help. Cheers NB

    N G 2 Replies Last reply
    0
    • N Nick Blumhardt

      Hi all, I'm having great problems sending email from an NT service- the only place I've found it mentioned was in MSDN referring to Extended MAPI X| Given that I don't want to go to such great lengths to do it, can anyone let me know of a way to send email from a service? All I need to do is send a simple message to a recipient. Thanks very much for any help. Cheers NB

      N Offline
      N Offline
      Nick Blumhardt
      wrote on last edited by
      #2

      I've tried using CDO's IMessage (in a very simple manner), but for some reason it calls int 3 ... ? ... and just generally dies with a message about an invalid heap pointer deep in the cdo code.

      1 Reply Last reply
      0
      • N Nick Blumhardt

        Hi all, I'm having great problems sending email from an NT service- the only place I've found it mentioned was in MSDN referring to Extended MAPI X| Given that I don't want to go to such great lengths to do it, can anyone let me know of a way to send email from a service? All I need to do is send a simple message to a recipient. Thanks very much for any help. Cheers NB

        G Offline
        G Offline
        Giles
        wrote on last edited by
        #3

        You can try using SMTP. Here are some Classes designed to get around problems associated with services : http://www.codeproject.com/internet/csmtpconn.asp I think there is a newer version at the authors site. They are really easy to use, and work well. Giles

        N 2 Replies Last reply
        0
        • G Giles

          You can try using SMTP. Here are some Classes designed to get around problems associated with services : http://www.codeproject.com/internet/csmtpconn.asp I think there is a newer version at the authors site. They are really easy to use, and work well. Giles

          N Offline
          N Offline
          Nick Blumhardt
          wrote on last edited by
          #4

          thanks, giles, i'll have a look at them :)

          1 Reply Last reply
          0
          • G Giles

            You can try using SMTP. Here are some Classes designed to get around problems associated with services : http://www.codeproject.com/internet/csmtpconn.asp I think there is a newer version at the authors site. They are really easy to use, and work well. Giles

            N Offline
            N Offline
            Nick Blumhardt
            wrote on last edited by
            #5

            BTW, there are some classes available through PJ Naughter's site that port Naughter's code from MFC to STL, which saved me a great hassle. As you said, very easy to use, did the trick fantastically.

            G 1 Reply Last reply
            0
            • N Nick Blumhardt

              BTW, there are some classes available through PJ Naughter's site that port Naughter's code from MFC to STL, which saved me a great hassle. As you said, very easy to use, did the trick fantastically.

              G Offline
              G Offline
              Giles
              wrote on last edited by
              #6

              Which ones? That could be very useful. Thanks, Giles

              N 1 Reply Last reply
              0
              • G Giles

                Which ones? That could be very useful. Thanks, Giles

                N Offline
                N Offline
                Nick Blumhardt
                wrote on last edited by
                #7

                all of the classes from 1.21, I believe, also compiled into a dll that exports a 'quick & easy' PJSendMail() function (perfect for what I needed to do!) you can download the code at http://naughter.com/download/pj\_smtp\_stl.zip

                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