|
1 | 1 | ---
|
2 |
| -title: SMTP connector in Azure Logic Apps | Microsoft Docs |
3 |
| -description: Create logic apps with Azure App service. Connect to SMTP to send email. |
| 2 | +title: Connect to SMTP from Azure Logic Apps | Microsoft Docs |
| 3 | +description: Automate tasks and workflows that send email through your SMTP (Simple Mail Transfer Protocol) account by using Azure Logic Apps |
4 | 4 | services: logic-apps
|
5 |
| -documentationcenter: .net,nodejs,java |
| 5 | +ms.service: logic-apps |
| 6 | +ms.suite: integration |
6 | 7 | author: ecfan
|
7 |
| -manager: jeconnoc |
8 |
| -editor: '' |
9 |
| -tags: connectors |
10 |
| - |
| 8 | +ms.author: estfan |
| 9 | +ms.reviewer: klam, LADocs |
11 | 10 | ms.assetid: d4141c08-88d7-4e59-a757-c06d0dc74300
|
12 |
| -ms.service: logic-apps |
13 |
| -ms.devlang: multiple |
14 | 11 | ms.topic: article
|
15 |
| -ms.tgt_pltfrm: na |
16 |
| -ms.workload: integration |
17 |
| -ms.date: 07/15/2016 |
18 |
| -ms.author: estfan; ladocs |
19 |
| - |
| 12 | +tags: connectors |
| 13 | +ms.date: 08/25/2018 |
20 | 14 | ---
|
21 |
| -# Get started with the SMTP connector |
22 |
| -Connect to SMTP to send email. |
23 | 15 |
|
24 |
| -To use [any connector](apis-list.md), you first need to create a logic app. You can get started by [creating a logic app now](../logic-apps/quickstart-create-first-logic-app-workflow.md). |
| 16 | +# Send email from your SMTP account with Azure Logic Apps |
| 17 | + |
| 18 | +With Azure Logic Apps and the Simple Mail Transfer Protocol (SMTP) connector, |
| 19 | +you can create automated tasks and workflows that send email from your SMTP account. |
| 20 | +You can also have other actions use the output from SMTP actions. For example, |
| 21 | +after your SMTP sends an email, you can notify your team in Slack with the Slack connector. |
| 22 | +If you're new to logic apps, review [What is Azure Logic Apps?](../logic-apps/logic-apps-overview.md) |
| 23 | + |
| 24 | +## Prerequisites |
| 25 | + |
| 26 | +* An Azure subscription. If you don't have an Azure subscription, |
| 27 | +<a href="https://azure.microsoft.com/free/" target="_blank">sign up for a free Azure account</a>. |
| 28 | + |
| 29 | +* Your SMTP account and user credentials |
| 30 | + |
| 31 | + Your credentials authorize your logic app to create |
| 32 | + a connection and access your SMTP account. |
| 33 | + |
| 34 | +* Basic knowledge about |
| 35 | +[how to create logic apps](../logic-apps/quickstart-create-first-logic-app-workflow.md) |
| 36 | + |
| 37 | +* The logic app where you want to access your SMTP account. |
| 38 | +To use an SMTP action, start your logic app with a trigger, |
| 39 | +such as a Salesforce trigger, if you have a Salesforce account. |
| 40 | + |
| 41 | + For example, you can start your logic app with the |
| 42 | + **When a record is created** Salesforce trigger. |
| 43 | + This trigger fires each time that a new record, |
| 44 | + such as a lead, is created in Salesforce. |
| 45 | + You can then follow this trigger with the SMTP |
| 46 | + **Send Email** action. That way, when the new |
| 47 | + record is created, your logic app sends an email |
| 48 | + from your SMTP account about the new record. |
25 | 49 |
|
26 | 50 | ## Connect to SMTP
|
27 |
| -Before your logic app can access any service, you first need to create a *connection* to the service. A [connection](connectors-overview.md) provides connectivity between a logic app and another service. For example, to connect to SMTP, you first need an SMTP *connection*. To create a connection, enter the credentials you normally use to access the service you connect to. So, in the SMTP example, enter the credentials to your connection name, SMTP server address, and user login information to create the connection to SMTP. |
28 | 51 |
|
29 |
| -### Create a connection to SMTP |
30 |
| -> [!INCLUDE [Steps to create a connection to SMTP](../../includes/connectors-create-api-smtp.md)] |
31 |
| -> |
32 |
| -> |
| 52 | +[!INCLUDE [Create connection general intro](../../includes/connectors-create-connection-general-intro.md)] |
| 53 | + |
| 54 | +1. Sign in to the [Azure portal](https://portal.azure.com), |
| 55 | +and open your logic app in Logic App Designer, if not open already. |
| 56 | + |
| 57 | +1. Under the last step where you want to add an SMTP action, |
| 58 | +choose **New step**. |
| 59 | + |
| 60 | + To add an action between steps, |
| 61 | + move your pointer over the arrow between steps. |
| 62 | + Choose the plus sign (**+**) that appears, |
| 63 | + and then select **Add an action**. |
| 64 | + |
| 65 | +1. In the search box, enter "smtp" as your filter. |
| 66 | +Under the actions list, select the action you want. |
| 67 | + |
| 68 | +1. When prompted, provide this connection information: |
33 | 69 |
|
34 |
| -## Use an SMTP trigger |
35 |
| -A trigger is an event that can be used to start the workflow defined in a logic app. [Learn more about triggers](../logic-apps/logic-apps-overview.md#logic-app-concepts). |
| 70 | + | Property | Required | Description | |
| 71 | + |----------|----------|-------------| |
| 72 | + | **Connection Name** | Yes | A name for the connection to your SMTP server | |
| 73 | + | **SMTP Server Address** | Yes | The address for your SMTP server | |
| 74 | + | **User Name** | Yes | Your username for your SMTP account | |
| 75 | + | **Password** | Yes | Your password for your SMTP account | |
| 76 | + | **SMTP Server Port** | No | A specific port on your SMTP server you want to use | |
| 77 | + | **Enable SSL?** | No | Turn on or turn off SSL encryption. | |
| 78 | + |||| |
36 | 79 |
|
37 |
| -In this example, SMTP doesn't have a trigger of its own. So, use the **Salesforce - When an object is created** trigger. This trigger activates when a new object is created in Salesforce. For this example, it's set it up so that every time a new lead is created in Salesforce, a *send email* action occurs using the SMTP connector with a notification of the new lead being created. |
| 80 | +1. Provide the necessary details for your selected action. |
38 | 81 |
|
39 |
| -1. Enter *salesforce* in the search box on the logic apps designer then select the **Salesforce - When an object is created** trigger. |
40 |
| -  |
41 |
| -2. The **When an object is created** control is displayed. |
42 |
| -  |
43 |
| -3. Select the **Object Type** then select *Lead* from the list of objects. In this step, you are creating a trigger that notifies your logic app whenever a new lead is created in Salesforce. |
44 |
| -  |
45 |
| -4. The trigger has been created. |
46 |
| -  |
| 82 | +1. Save your logic app or continue building your logic app's workflow. |
47 | 83 |
|
48 |
| -## Use an SMTP action |
49 |
| -An action is an operation carried out by the workflow defined in a logic app. [Learn more about actions](../logic-apps/logic-apps-overview.md#logic-app-concepts). |
| 84 | +## Connector reference |
50 | 85 |
|
51 |
| -Now that the trigger has been added, use the following steps to add an SMTP action that occurs when a new lead is created in Salesforce. |
| 86 | +For technical details about triggers, actions, and limits, which are |
| 87 | +described by the connector's OpenAPI (formerly Swagger) description, |
| 88 | +review the connector's [reference page](/connectors/smtpconnector/). |
52 | 89 |
|
53 |
| -1. Select **+ New Step** to add the action you would like to take when a new lead is created. |
54 |
| -  |
55 |
| -2. Select **Add an action**. This opens the search box where you can search for any action you would like to take. |
56 |
| -  |
57 |
| -3. Enter *smtp* to search for actions related to SMTP. |
58 |
| -4. Select **SMTP - Send Email** as the action to take when the new lead is created. The action control block opens. You will have to establish your smtp connection in the designer block if you have not done so previously. |
59 |
| -  |
60 |
| -5. Input your desired email information in the **SMTP - Send Email** block. |
61 |
| -  |
62 |
| -6. Save your work to activate your workflow. |
| 90 | +## Get support |
63 | 91 |
|
64 |
| -## Connector-specific details |
| 92 | +* For questions, visit the [Azure Logic Apps forum](https://social.msdn.microsoft.com/Forums/en-US/home?forum=azurelogicapps). |
| 93 | +* To submit or vote on feature ideas, visit the [Logic Apps user feedback site](http://aka.ms/logicapps-wish). |
65 | 94 |
|
66 |
| -View any triggers and actions defined in the swagger, and also see any limits in the [connector details](/connectors/smtpconnector/). |
| 95 | +## Next steps |
67 | 96 |
|
68 |
| -## More connectors |
69 |
| -Go back to the [APIs list](apis-list.md). |
| 97 | +* Learn about other [Logic Apps connectors](../connectors/apis-list.md) |
0 commit comments