# send email with outlook

**URL:** <https://forum.knime.com/t/send-email-with-outlook/27004>\
**Category:** KNIME Analytics Platform\
**Created:** [September 8, 2020, 5:15pm UTC](https://forum.knime.com/t/send-email-with-outlook/27004 "2020-09-08T17:15:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pawanmtm](https://forum-cdn.knime.com/user_avatar/forum.knime.com/pawanmtm/32/6411_2.png) [@pawanmtm](https://forum.knime.com/u/pawanmtm)\
**Post date:** [September 8, 2020, 5:15pm UTC](https://forum.knime.com/t/send-email-with-outlook/27004/1 "2020-09-08T17:15:14Z")

</div>

Dear Knimers,

I have list of excel files in a folder with email id as the file name. I would like to send mail to each id with the respective file attached and some standard email body either plain text or html.

I have been through many of the topics in the forum and build the below workflow

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/5/d/5d71ba68de19684b2a6e049bc04d83e4ba6f75c8.png)  
 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/9/e/9ee0ff1f59f3dba0b1f2edbeb80a55f580db0a82.png)  
 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/6/1/610dafd372741ab51098cb508f9d08f3c73cb210.png)

[test.knwf](https://forum.knime.com/uploads/short-url/80bRn4E9DK07klkm8uxseS0U4GK.knwf) (1.1 MB)

Below are the error messages based on the connection security.

SSL:  
Error while communicating with the smtp server: javax.mail.MessagingException: Exception reading response;  
nested exception is:  
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

None:  
Error while communicating with the smtp server: javax.mail.MessagingException: [EOF]

STARTTLS:  
Error while communicating with the smtp server: javax.mail.AuthenticationFailedException

What connection security should i be using for the requirement and if the authentication fails, does it mean that IT team has blocked/firewall.

In case if i have to request them, what exactly should i be asking them to do (enable what?)

Could someone assist on this.

Regards,  
Pavan

---

<div class="post-metadata">

**Author:** ![armingrudd](https://forum-cdn.knime.com/user_avatar/forum.knime.com/armingrudd/32/84633_2.png) [@armingrudd](https://forum.knime.com/u/armingrudd)\
**Post date:** [September 8, 2020, 7:40pm UTC](https://forum.knime.com/t/send-email-with-outlook/27004/2 "2020-09-08T19:40:51Z")

</div>

Hi @pawanmtm,

For SMTP you should use STARTTLS. But it seems that your authentication (username & password combination) is not correct.

If you are sure about the username & password combination then take a look at this topic:  
[https://answers.microsoft.com/en-us/msoffice/forum/all/office-365-smtp-authentication-failing-even-with/4e2dcfc4-2626-4c3b-a945-9ff1b3404539](https://answers.microsoft.com/en-us/msoffice/forum/all/office-365-smtp-authentication-failing-even-with/4e2dcfc4-2626-4c3b-a945-9ff1b3404539)

😊

---

<div class="post-metadata">

**Author:** ![pawanmtm](https://forum-cdn.knime.com/user_avatar/forum.knime.com/pawanmtm/32/6411_2.png) [@pawanmtm](https://forum.knime.com/u/pawanmtm)\
**Post date:** [September 9, 2020, 6:59am UTC](https://forum.knime.com/t/send-email-with-outlook/27004/3 "2020-09-09T06:59:52Z")

</div>

Hi @armingrudd,

You are right, i made a silly mistake. 😞. Instead of providing email id, i have provided user id.

I have corrected and it worked now.

Thanks for your helping hand Armin.

Regards,  
Pavan

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [September 16, 2020, 6:59am UTC](https://forum.knime.com/t/send-email-with-outlook/27004/4 "2020-09-16T06:59:52Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
