Even no error on console
code attached below
EmailAttachment attachment = new EmailAttachment();
attachment.setPath("E:\\data\\images\\default.jpg");
attachment.setDisposition(EmailAttachment.ATTACHMENT);
attachment.setDescription("Picture of John");
attachment.setName("John");
MultiPartEmail email = new MultiPartEmail();
email.addTo("to mail", "test");
email.setFrom("frommail", "fromname");
email.setSubject("The picture");
email.setMsg("Here is the picture you wanted");
email.setHostName("smtp.zoho.com");
email.setSmtpPort(465);
email.setTLS(true);
email.setAuthentication("email", "password");
email.send();