mtest.py 241 B

1234567891011
  1. # -*- coding: utf-8 -*-
  2. import rpyc
  3. mailobj={}
  4. mailobj['toaddr']='mia@choozmo.com'
  5. mailobj['title']='testdd'
  6. mailobj['totext']='mail content...\nNew line content你.'
  7. conn = rpyc.connect("192.168.192.80", 12345)
  8. conn.root.mailto(mailobj)