如何在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."
)
}
}