Why can't i send email from my servlet?

前端 未结 5 629
逝去的感伤
逝去的感伤 2020-12-22 13:12

I am trying to send an email from my servlet. There is no exception but i am not getting email in my account. I am using the following code:

 public class Se         


        
5条回答
  •  鱼传尺愫
    2020-12-22 13:49

    Read https://developers.google.com/appengine/docs/java/mail/overview Basically stop including any JavaMail libraries in your app and don't try to connect to a host. Build the message and jump straight to Transport.send(msg);

提交回复
热议问题