Click here to Skip to main content
15,921,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: easy translation for c# . Pin
Christian Graus6-Jul-05 11:55
protectorChristian Graus6-Jul-05 11:55 
GeneralChanging cursor Pin
Atlence6-Jul-05 10:02
Atlence6-Jul-05 10:02 
GeneralRe: Changing cursor Pin
David Crow6-Jul-05 11:04
David Crow6-Jul-05 11:04 
GeneralRe: Changing cursor Pin
Atlence6-Jul-05 23:52
Atlence6-Jul-05 23:52 
GeneralRe: Changing cursor Pin
David Crow7-Jul-05 2:39
David Crow7-Jul-05 2:39 
GeneralRe: Changing cursor Pin
Atlence7-Jul-05 6:52
Atlence7-Jul-05 6:52 
GeneralRe: Changing cursor Pin
David Crow7-Jul-05 6:56
David Crow7-Jul-05 6:56 
QuestionIMailMsgProperties - getting to email attachments? Pin
dandy726-Jul-05 10:00
dandy726-Jul-05 10:00 
Hi all,

I wrote an SMTP sink based on Microsoft's KB288098 sample ("How to use SMTP Transport Events to Add a Disclaimer to Outgoing SMTP Messages"). I've now successfully modified the sample so my sink gets called when a new email comes in (via IMailTransportSubmission::OnMessageSubmission). I started off creating a small log file in the otherwise empty function--I can confirm my sink gets called.

Now...the function receives a pointer to an IMailMsgProperties. I need to get to any attachment to save it/them locally to the hard drive (as well as retrieve the sender's name and email address). I don't care about getting the subject line or the message body.

I'm afraid my ATL/COM knowledge is severely limited at this point. Given nothing but this interface (IMailMsgProperties), how do I get to these values?

AnswerRe: IMailMsgProperties - getting to email attachments? Pin
dandy726-Jul-05 10:47
dandy726-Jul-05 10:47 
GeneralRe: IMailMsgProperties - getting to email attachments? Pin
dandy728-Jul-05 9:53
dandy728-Jul-05 9:53 
Questionaudio mux directshow filter? Pin
Taiwu Chiang6-Jul-05 9:51
Taiwu Chiang6-Jul-05 9:51 
GeneralThread Profiling of of c++ components at runtime Pin
rajandpayal6-Jul-05 9:27
rajandpayal6-Jul-05 9:27 
Generalcommunicate with vb.net using sockets Pin
boy2126-Jul-05 7:59
boy2126-Jul-05 7:59 
GeneralRe: communicate with vb.net using sockets Pin
Tom Wright6-Jul-05 8:16
Tom Wright6-Jul-05 8:16 
Generalautomation timeout Pin
Tom Wright6-Jul-05 7:39
Tom Wright6-Jul-05 7:39 
GeneralReading a text file Pin
Andrew Admire6-Jul-05 6:08
Andrew Admire6-Jul-05 6:08 
GeneralRe: Reading a text file Pin
David Crow6-Jul-05 6:20
David Crow6-Jul-05 6:20 
GeneralRe: Reading a text file Pin
Martial Spirit6-Jul-05 6:53
Martial Spirit6-Jul-05 6:53 
GeneralRe: Reading a text file Pin
Andrew Admire6-Jul-05 8:14
Andrew Admire6-Jul-05 8:14 
GeneralRe: Reading a text file Pin
David Crow6-Jul-05 8:30
David Crow6-Jul-05 8:30 
GeneralRe: Reading a text file Pin
Andrew Admire6-Jul-05 8:35
Andrew Admire6-Jul-05 8:35 
GeneralRe: Reading a text file Pin
David Crow6-Jul-05 9:31
David Crow6-Jul-05 9:31 
GeneralRe: Reading a text file Pin
Andrew Admire6-Jul-05 9:41
Andrew Admire6-Jul-05 9:41 
GeneralRe: Reading a text file Pin
David Crow6-Jul-05 11:03
David Crow6-Jul-05 11:03 
GeneralRe: Reading a text file Pin
Anonymous6-Jul-05 19:33
Anonymous6-Jul-05 19:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.