Unable to Send Email in MFT (Post-Processing Rule)

Hi Experts,

Would like to ask for your help. I am trying to send an email in MFT using the ‘Send email’ action in the post-processing rule, however I am getting this error: “Action failed : Email action Send email failed. Error java.net.ConnectException: Connection refused: connect”. Would like to know if what should I do in order to fix this and proceed with sending an email.

Advance thank you.

Is the target SMTP server that you’ve configured is online? That error means that the service cannot connect to the target server on a specific TCP port.

2 Likes

Can you confirm if SMTP server is configured in IS admin page, in case you may have missed it. Another test you can do is to invoke IS service pub.client:smtp to check if you are able to send email. MFT internally uses this service.

Thanks,
Bhaskar

2 Likes

Hi Mike & Bhaskar,

I’m trying to send an email from internal (localhost) to a gmail account. I also have configured SMTP server on the IS admin page however I am not sure if I did it correctly. Please see below snippets for the details.

MFT:

IS Admin:
Settings->Resources
image

Settings->Extended
image

Hi,
You have configured you SMTP server host as localhost, are you sure if SMTP server is hosted locally?

Thanks,
Bhaskar

1 Like

Hi,

when sending emails from IS you can either use the specific mail service from your company or you can try to use the GMAIL SMTP Server.
You can find the technical parameters here:

Regards,
Holger

1 Like

Your configuration here has a prerequisite, an email server must be online running on the same machine. Have you ensure that you’ve such server in place? If you don’t have, I suggest you to download https://www.hmailserver.com/ and setup the email account there. Then your MFT configuration can connect to the hmailserver via TCP port 25.

2 Likes

Hi Holger & Mike,

Thank you for your help, I am now able to send an email from MFT to a gmail account. I downloaded the hmailserver and created a domain “gmail.com” and then created a user and opened the new account using thunderbird.

MFT configuration:

Send email action (ActiveTransfer):

Email received:

Just want to know if email address could only be set as fixed and only one or it can be dynamic and many (like use a variable substitution?), anyways thank you so much for the help. Highly appreciated!

Hi,

Since this is a configuration in MFT module in MWS, I think for now it’s only configurable in the MWS UI itself. However you can check if there is any WmMFT public service available to make change to it or not.

There is a public service in WmPublic: pub.client:smtp which can be used for sending emails from IS side.
See IS Built-In-Services Reference for details.
But this one also requires connectivity to an active smtp server somewhere.

Regards,
Holger