capturing data on sending emails

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
 
A

Alan Moseley

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
 
M

mdlister

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?
 
K

Ken Slovak - [MVP - Outlook]

A recipient would have to be running your software for that to be possible.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top