Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Getting standard mail client in Ruby
SUBMITTED BY:
Guest
DATE:
May 21, 2015, 10 a.m.
FORMAT:
Ruby
SIZE:
260 Bytes
Raw
Download
Tweet
HITS:
4105
Go to comments
Report
require
'win32/registry'
def
get_mail_client
Win32
::
Registry
::
HKEY_CLASSES_ROOT
.
open
(
'.386\PerceivedType'
)
do
|
reg
|
reg_typ
,
reg_val
=
reg
.
read
(
''
)
return
reg_val
end
end
mail_client
=
get_mail_client
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus