capturing data on sending emails

  • Thread starter Thread starter mdlister
  • Start date Start date
M

mdlister

Afternoon, is it possible to capture the user's IP address or Hostnam
and add it to an email when clicking send?

I only ask as i work on a software deployment team and i get request
to install software for users and 9times out of 10 they forget to leav
the detail about there machine and sometimes even the software the
want

Thank
 
You need to handle the Application.ItemSend event in Outlook. For example
put this code in your 'ThisOutlookSession' code window and try it out:-

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Item.Body = Item.Body + vbCrLf & "Sent From " & Environ("computername")
End Sub
 
Thanks, that works really well on my machine, but if i send an email to
someone and they reply is it possible to capture it at there end or is
this not possible?
 
A recipient would have to be running your software for that to be possible.
 
Back
Top