javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 25;

前端 未结 2 1478
余生分开走
余生分开走 2020-11-29 06:31

The Code I\'m Using to send a simple mail

import javax.mail.*;
import javax.mail.internet.*;
import java.util.*;
import java.io.*;
import javax.activation.Da         


        
2条回答
  •  暖寄归人
    2020-11-29 06:53

    While running in jboss check whether your running using run.bat -b 0.0.0.0.

    If not try and it should work fine.

提交回复
热议问题