I'm working with an SMTP protocol sink and am processing in ISmtpInCommandSink.OnSmtpInCommand. I'd like to get the IP address of the connecting server. Any tips would be appreciated. Thanks in advance.
Hi, Use IMMPID_MP_CONNECTION_IP_ADDRESS on the IMailMsgProperties.GetStringA see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/smtpevt/html/3156ada5-33ff-46c2-94f4-de25fd9618bd.asp and http://msdn.microsoft.com/library/default.asp?url=/library/en-us/smtpevt/html/3156ada5-33ff-46c2-94f4-de25fd9618bd.asp for more details. brgds Martin "jwh20" wrote: > I'm working with an SMTP protocol sink and am processing in > ISmtpInCommandSink.OnSmtpInCommand. I'd like to get the IP address of the > connecting server. > > Any tips would be appreciated. > > Thanks in advance.
Martin, Thanks for the reply. I suspected that somehow there needed to be a property retrieval to do this but how did you come upon IMMPID_MP_CONNECTION_IP_ADDRESS? Anyway, I'll give this a try and see what comes up. Thanks again... JH... "nitramsen@nospam.nospam" wrote: > Hi, > > Use IMMPID_MP_CONNECTION_IP_ADDRESS on the IMailMsgProperties.GetStringA see > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/smtpevt/html/3156ada5-33ff-46c2-94f4-de25fd9618bd.asp > and > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/smtpevt/html/3156ada5-33ff-46c2-94f4-de25fd9618bd.asp for more details. > > brgds > Martin > > "jwh20" wrote: > > > I'm working with an SMTP protocol sink and am processing in > > ISmtpInCommandSink.OnSmtpInCommand. I'd like to get the IP address of the > > connecting server. > > > > Any tips would be appreciated. > > > > Thanks in advance.
By the way, I was successful in getting this going. You information was very helpful. Thanks... JH "nitramsen@nospam.nospam" wrote: > Hi, > > Use IMMPID_MP_CONNECTION_IP_ADDRESS on the IMailMsgProperties.GetStringA see > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/smtpevt/html/3156ada5-33ff-46c2-94f4-de25fd9618bd.asp > and > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/smtpevt/html/3156ada5-33ff-46c2-94f4-de25fd9618bd.asp for more details. > > brgds > Martin > > "jwh20" wrote: > > > I'm working with an SMTP protocol sink and am processing in > > ISmtpInCommandSink.OnSmtpInCommand. I'd like to get the IP address of the > > connecting server. > > > > Any tips would be appreciated. > > > > Thanks in advance.
Hi JH, You can get all the documentation about SMTP Sink’s at MSDN Library/Win32 and Com Development/Messaging and Collaboration/SMTP Server. To get directly to the enumerators go to http://msdn.microsoft.com/library/default.asp?url=/library/en-us/smtpevt/html/4dbe60cd-7f2f-48b9-9c91-0360a59ea6da.asp. BRGDS Martin "jwh20" wrote: > Martin, > > Thanks for the reply. I suspected that somehow there needed to be a > property retrieval to do this but how did you come upon > IMMPID_MP_CONNECTION_IP_ADDRESS? > > Anyway, I'll give this a try and see what comes up. > > Thanks again... > > JH... > > "nitramsen@nospam.nospam" wrote: > > > Hi, > > > > Use IMMPID_MP_CONNECTION_IP_ADDRESS on the IMailMsgProperties.GetStringA see > > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/smtpevt/html/3156ada5-33ff-46c2-94f4-de25fd9618bd.asp > > and > > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/smtpevt/html/3156ada5-33ff-46c2-94f4-de25fd9618bd.asp for more details. > > > > brgds > > Martin > > > > "jwh20" wrote: > > > > > I'm working with an SMTP protocol sink and am processing in > > > ISmtpInCommandSink.OnSmtpInCommand. I'd like to get the IP address of the > > > connecting server. > > > > > > Any tips would be appreciated. > > > > > > Thanks in advance.