community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
SOLVED

Unable to send email due to SMTP error

Highlighted
Meteor

Hi All,

 

I have been trying to send an email using the email tool with office365 as the SMTP server but I am getting the error below:

Error: Email (1): Record#1: Unable to send email: "Error with FROM: 530 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM [SG2PR0601CA0006.apcprd06.prod.outlook.com]

 

I have configured it as follows:
SMTP: smtp.office365.com:587

and the FROM field being my work email supported by office365

 

Appreciate any help given.

 

 

Alteryx Certified Partner

Hi @KMadamba ,

 

Currently you can't use the email tool with accounts that require authentication, (365 being one of them).

This, I believe is being worked on by Alteryx, but there is a temporary workaround using Python. See the thread below for how to get around this:

 

https://community.alteryx.com/t5/Alteryx-Designer-Discussions/Sending-Emails-from-SMTP-server-requir...

 

M.

Meteor

Thank you @mceleavey  !

This workaround will have to do for now.

Another solution that I found:

1º Download SwithMail
Link: https://sourceforge.net/projects/swithmail/

2: Extract the file somewhere on the computer, such a case was not C: /

Run SwithMail.exe and click "Configure Settings with GUI"

4º Fill in all the necessary information, in the e-mail site mark an option "HTML Email" and fill in the related fields like this:
Email Subject:
% AppName%:% Module% -% NumErrors% Error

Email body:
User:% user%
Computer Name:% ComputerName%
WorkingDir:% WorkingDir%
Errors:% NumErrors%
ConversionErrors:% NumConvErrors%
Warnings:% of warnings

% OutputLog%

5th Click Generate CLI String and copy the string it shows

6th Now let's go to Alteryx, open the flow you want to send the email, otherwise we will send email if the error flow, then in "Workflow Configuration" click "Events" and "Add - Run Command" "

7 In "Run Event When:" put "After Running With Errors", "Command" put "C: /SwithMail.exe" and "Command Arguments" paste a string from step 5 
Labels