Hi, we are using ISMTPOnArrival_OnArrival to detect specific messages and send them to a log-mailbox. But when meeting requests are sent then not one recipient is receiving the request ....very annoying ... Can we detect the message class or other property to bypass the event sink at that moment ? What code do we need to insert ? recplist = LCase(Msg.EnvelopeFields("http://schemas.microsoft.com/cdo/smtpenvelope/recipientlist")) recplist = recplist & "SMTP:marc@domain.com;" Msg.EnvelopeFields("http://schemas.microsoft.com/cdo/smtpenvelope/recipientlist") = recplist Msg.EnvelopeFields.update Msg.DataSource.Save Kind regards marc
If you want to detect if a message is a calendar appointment try using something like if Msg.fields("urn:schemas:mailheader:content-class").value = "urn:content-classes:calendarmessage" then Cheers Glen "mdecroos" wrote in message news:1143552368.061823.178570@i40g2000cwc.googlegroups.com... > Hi, > we are using ISMTPOnArrival_OnArrival to detect specific messages and > send them to a log-mailbox. But when meeting requests are sent then not > one recipient is receiving the request ....very annoying ... > Can we detect the message class or other property to bypass the event > sink at that moment ? > What code do we need to insert ? > > recplist = > LCase(Msg.EnvelopeFields("http://schemas.microsoft.com/cdo/smtpenvelope/recipientlist")) > recplist = recplist & "SMTP:marc@domain.com;" > Msg.EnvelopeFields("http://schemas.microsoft.com/cdo/smtpenvelope/recipientlist") > = recplist > Msg.EnvelopeFields.update > Msg.DataSource.Save > > Kind regards > marc >