# SMTP Issue with Send Email action - cannot send to external email addresses

**URL:** https://www.finalbuilder.com/forums/t/smtp-issue-with-send-email-action-cannot-send-to-external-email-addresses/6392
**Category:** Discussion
**Tags:** actions
**Created:** [January 8, 2019, 4:29pm UTC](https://www.finalbuilder.com/forums/t/smtp-issue-with-send-email-action-cannot-send-to-external-email-addresses/6392 "2019-01-08T16:29:21Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![jonathanmeltzer](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jonathanmeltzer](https://www.finalbuilder.com/forums/u/jonathanmeltzer)
#### Post date: [January 8, 2019, 4:29pm UTC](https://www.finalbuilder.com/forums/t/smtp-issue-with-send-email-action-cannot-send-to-external-email-addresses/6392/1 "2019-01-08T16:29:21Z")

</div>

Greetings! I have a Send Email action that uses an SMTP server. No other flags - just the SMTP server and port. When I send to an internal email address using this action (i.e. one within our company domain), it works just fine. If I try to send to an external address, I get an “unable to relay” error. Normally, I would think that this is an issue with the SMTP server itself, but I have been working with our IT department on this, and it IS possible to send to an external email address from the same box, using the same SMTP server, if we are not using Automise (we used Windows Powershell for the test). Is there an internal/hidden setting in the Send Email action that could be blocking sending to external emails?

Thanks,

Jonathan

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 8, 2019, 8:49pm UTC](https://www.finalbuilder.com/forums/t/smtp-issue-with-send-email-action-cannot-send-to-external-email-addresses/6392/2 "2019-01-08T20:49:41Z")

</div>

The action has no idea if an address is external or internal. This will most likely be an authentication issue. Turn on logging of the data and contact support with the output and we’ll take a look. Also, what mail server type is it. Also show us the exact settings you have on the action so we can try to set up the same scenario.

---

<div class="post-metadata">

### Author: ![jonathanmeltzer](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jonathanmeltzer](https://www.finalbuilder.com/forums/u/jonathanmeltzer)
#### Post date: [January 8, 2019, 8:52pm UTC](https://www.finalbuilder.com/forums/t/smtp-issue-with-send-email-action-cannot-send-to-external-email-addresses/6392/3 "2019-01-08T20:52:39Z")

</div>

Thank you for the response! The settings are very simple. They are for an internal SMTP server and port 25, that is it. No authentication or anything. What specific logging would you like me to turn on?

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 8, 2019, 8:54pm UTC](https://www.finalbuilder.com/forums/t/smtp-issue-with-send-email-action-cannot-send-to-external-email-addresses/6392/4 "2019-01-08T20:54:32Z")

</div>

On the action there are Log Sent Data, Log Received Data and Log SSL Negotiation. Also, what do you have in the Sender Tab.

---

<div class="post-metadata">

### Author: ![jonathanmeltzer](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jonathanmeltzer](https://www.finalbuilder.com/forums/u/jonathanmeltzer)
#### Post date: [January 9, 2019, 12:24pm UTC](https://www.finalbuilder.com/forums/t/smtp-issue-with-send-email-action-cannot-send-to-external-email-addresses/6392/5 "2019-01-09T12:24:22Z")

</div>

I don’t see any options to Log Sent Data, Log Received Data or Log SSL Negotiation on the Send Email action. Where do I find that? Under Runtime, there is a Log Action Properties checkbox, but that is it. None of the other tabs on the action have any logging. I am using 5.0.0.800 - do I need to upgrade to a newer version? On the Sender tab, I have the FROM email address, the FROM name, and Normal selected instead of Individual.

EDIT: I see that the SMTP logging was introduced in a later version, so it seems that I need to download the latest. I will do that.

---

<div class="post-metadata">

### Author: ![jonathanmeltzer](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jonathanmeltzer](https://www.finalbuilder.com/forums/u/jonathanmeltzer)
#### Post date: [January 9, 2019, 1:25pm UTC](https://www.finalbuilder.com/forums/t/smtp-issue-with-send-email-action-cannot-send-to-external-email-addresses/6392/6 "2019-01-09T13:25:51Z")

</div>

Log with latest Automise version, and all three logging options turned on ( I removed the actual addresses - I can provide them in email if needed):

Send Email  
Status:  
Date: 1/9/2019  
Time: 08:19:13:641  
End: 08:19:23:668  
Duration: 00:00:10:027

Action Messages:  
Action Properties  
ActionComment =  
AttachmentsObject =  
Authenticate = False  
BccSource = asSpecify  
BccVariable =  
BodyObject =  
CopyToSource = asFromVariable  
CopyToVariable = projCCEmail  
Enabled = True  
EnableTimeout = False  
Encoding =  
ExpandActionLogTitle = True  
HideActionFromLog = False  
Host = **\<removed: SMTP server listed here\>**  
HTMLMessage = True  
IgnoreFailure = False  
IgnoreIndivualFailures = False  
IgnoreMissingAttachments = False  
Locked = False  
LogActionProperties = True  
LogReceived = True  
LogSent = True  
LogSSLNegotiation = True  
LogToVariable =  
MaxRetryAttempts = 0  
Mode = 0  
PathOfBccFile =  
PathOfCopyToFile =  
PathOfRecipientFile =  
PathOfReplyToFile =  
PauseInterval = 0  
PlainBodyObject =  
PopBeforeSMTP = False  
POPHost =  
POPPort = 110  
Port = 25  
Priority = 2  
RecipientsSource = asFromVariable  
RecipientVariable = projToEmail  
ReplyToSource = asSpecify  
ReplyToVariable =  
RetryPauseInterval = 1000  
Subject = Database Mail Failures in the last 24 hours  
SuppressStatusMessages = False  
TimeoutLength = 1  
UseEhlo = False  
UseGlobalOptions = False  
UserId =  
UseSSL = False  
UseTLS = utNoTLSSupport  
Sent: 1/9/2019 8:19:13 AM : 1/9/2019 8:19:13 AM Data: MAIL FROM:\< **From address listed here** \>  
Received: 1/9/2019 8:19:13 AM : 1/9/2019 8:19:13 AM Data: 250 2.1.0 Sender OK  
Sent: 1/9/2019 8:19:13 AM : 1/9/2019 8:19:13 AM Data: RCPT TO:\< **External Hotmail address listed here** \>  
Received: 1/9/2019 8:19:18 AM : 1/9/2019 8:19:18 AM Data: 550 5.7.1 Unable to relay  
Sent: 1/9/2019 8:19:18 AM : 1/9/2019 8:19:18 AM Data: RSET  
Received: 1/9/2019 8:19:23 AM : 1/9/2019 8:19:23 AM Data: 250 2.0.0 Resetting  
Unable to Send Message (Send)  
Unable to relay  
Sent: 1/9/2019 8:19:23 AM : 1/9/2019 8:19:23 AM Data: QUIT  
Received: 1/9/2019 8:19:23 AM : 1/9/2019 8:19:23 AM Data: 221 2.0.0 Service closing transmission channel  
Status: Disconnected. : Disconnected.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 9, 2019, 11:46pm UTC](https://www.finalbuilder.com/forums/t/smtp-issue-with-send-email-action-cannot-send-to-external-email-addresses/6392/7 "2019-01-09T23:46:04Z")

</div>

> 550 5.7.1 Unable to relay

My guess is you need to authenticate with the mail server. It’s very unlikely (and not advisable) to allow unauthenticated users to send emails.

If you are able to send using powershell Send-MailMessage then it is probably using the current user credentials via NTLM authentication, which isn’t supported by Automise.

You may need to check with your mail server (exchange?) admin to see which auth types are enabled on the server.

---

<div class="post-metadata">

### Author: ![jonathanmeltzer](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jonathanmeltzer](https://www.finalbuilder.com/forums/u/jonathanmeltzer)
#### Post date: [February 25, 2019, 1:59pm UTC](https://www.finalbuilder.com/forums/t/smtp-issue-with-send-email-action-cannot-send-to-external-email-addresses/6392/8 "2019-02-25T13:59:53Z")

</div>

That got us onto the right track. Thank you!
