Mail from an NT Service
-
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
-
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
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.
-
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
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
-
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
thanks, giles, i'll have a look at them :)
-
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
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.
-
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.
-
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