Skip to content
Snippets Groups Projects
Commit 90409853 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Mail: add attachments, and embedded urls

parent 71cba435
No related branches found
No related tags found
No related merge requests found
Pipeline #15655 failed
...@@ -70,8 +70,8 @@ public class MailServiceTest { ...@@ -70,8 +70,8 @@ public class MailServiceTest {
} }
@Test @Test
//@Ignore @Ignore
public void sendHtmlEmailWithText() throws MalformedURLException { public void sendHtmlEmailWithText() throws IOException {
service.sendHtmlEmailWithText("Test " + System.currentTimeMillis() + " with HTML", service.sendHtmlEmailWithText("Test " + System.currentTimeMillis() + " with HTML",
"a test text content", "a test text content",
...@@ -84,7 +84,7 @@ public class MailServiceTest { ...@@ -84,7 +84,7 @@ public class MailServiceTest {
"benoit.lavenier@e-is.pro"); "benoit.lavenier@e-is.pro");
// Send file attachments // Send file attachments
try { {
File temp = new File("/tmp/mail-attachment.csv"); File temp = new File("/tmp/mail-attachment.csv");
FileUtils.write(temp, "col1;col2\nval1;val2", StandardCharsets.UTF_8); FileUtils.write(temp, "col1;col2\nval1;val2", StandardCharsets.UTF_8);
...@@ -96,8 +96,6 @@ public class MailServiceTest { ...@@ -96,8 +96,6 @@ public class MailServiceTest {
new URL("file://" + temp.getAbsolutePath()) new URL("file://" + temp.getAbsolutePath())
), ),
"benoit.lavenier@e-is.pro"); "benoit.lavenier@e-is.pro");
} catch (IOException e) {
Assert.fail("error");
} }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment