I am trying to insert an image in the emails I send via SFS2x, I use this code:
Code: Select all
private void sendEmailToken(String address, String token) throws Exception
{
Email myEmail = new SFSEmail(
sender,
address,
"New Password Request Notification",
//"<img src=https://images-na.ssl-images-amazon.com/images/I/71Sz-66SR5L._SX425_.jpg>" //WORK
"<img src=http://sniffout.ddns.net/img/3.png>" //NO WORK
+ "New Password Request Notification<br><br>"
+ "Confirmation code:<br>"
+ token
+ "<br><br>NB. The code will be valid for a maximum of 1 hour.");
SmartFoxServer.getInstance().getMailService().sendMail(myEmail);
}
I have uploaded the images on FileZilla, I have a dns with noip.com, when I go to the e-mail, the image is not displayed.