[ruby]用163的smtp服务器发送邮件
require 'net/smtp'
msg =
From: someone@163.com
To: anotherone@163.com
Subject: this is subject
Time is #{Time.now} ##前面一定要空一行表示写内容
MESSAGE_END
Net::SMTP.start('smtp.163.com', 25, "163.com", "y
原创
2015-09-27 22:49:51 ·
1520 阅读 ·
0 评论