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.
 
L

lhhlkh

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

"mdlister" wrote

here's how I do this

1. based on words in subject line "Install Software", I send back an autoreply
2. the autoreply contains a small .exe attachment with directions to run it.
3. when the user runs it, it captures the environ variables and emails results to me
 
Top