Getting standard mail client in Ruby


SUBMITTED BY: Guest

DATE: May 21, 2015, 10 a.m.

FORMAT: Ruby

SIZE: 260 Bytes

HITS: 4105

  1. require 'win32/registry'
  2. def get_mail_client
  3. Win32::Registry::HKEY_CLASSES_ROOT.open('.386\PerceivedType') do |reg|
  4. reg_typ, reg_val = reg.read('')
  5. return reg_val
  6. end
  7. end
  8. mail_client = get_mail_client

comments powered by Disqus