通过Scala发送邮件

时间:2018-07-18 19:30:50

标签: scala

如何在Scala中发送邮件?我尝试了这段代码,但出现错误:

  

未找到:对象邮件导入邮件。_^

import mail._

object demoformail {
  def main(args: Array[String]) {        
    send a new mail(
      from = "rupesh.kumar@.com" -> "Rupesh kumar",
      to = "xxxxxxx@.com",
      subject = "Our 5-year plan",
      message = "Here is the presentation with the stuff we're going to for the next five years."    
    )    
  }
}

0 个答案:

没有答案