春季发送电子邮件

时间:2015-04-27 10:04:24

标签: java spring email spring-mvc

我阅读了所有相关主题,但在所有相关主题中都有这一行:

private function onSelectedDateChanged(event:Event):void { // Set the filterFunction for the tasks data. tasksHierarchical.filterFunction = tasksFilterFunction; // Refresh the tasks AdvancedDataGrid data source. tasksHierarchical.refresh(); } private function tasksFilterFunction(obj:Object):Boolean{ //the logic to decide if an element needs to be shown or not. var _task:VoTask = VoTask(obj); var _returnValue:Boolean; if (_task.taskEndDate < model.selectedDate) { _returnValue = false; } else { _returnValue = true; } return _returnValue; }

http://www.mkyong.com/spring/spring-sending-e-mail-via-gmail-smtp-server-with-mailsender/

但根本没有mailSender.send(message);,我看到send()方法带有这个参数:

mailSender.sendMail()

这是我的代码:

String s, String[] string,String[] string1,String[] string2,String s1,String s2

这是什么论点?

2 个答案:

答案 0 :(得分:2)

尝试使用邮件发件人的完整路径

private  org.springframework.mail.MailSender  mailSender;

答案 1 :(得分:0)

接口mod(x,7)=0提供了两种方法:

  • org.springframework.mail.MailSender
  • void send(SimpleMailMessage simpleMessage) throws MailException;

所以你错了(“......但是根本没有send()......”)并且教程是正确的!

仔细检查您的void send(SimpleMailMessage[] simpleMessages) throws MailException;MailSender

中的org.springframework.mail