Skip to content

Commit 5ab4b29

Browse files
committed
validation
1 parent 86ca2ec commit 5ab4b29

10 files changed

+10
-11
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
29 KB
Loading
178 KB
Loading

articles/app-service/tutorial-send-email.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
title: 'Tutorial: send email with Logic Apps'
33
description: Learn how to invoke business processes from your App Service app. Send emails, tweets, and Facebook posts, add to mailing lists, and much more.
44

5-
ms.devlang: dotnet
65
ms.topic: tutorial
7-
ms.date: 03/31/2020
6+
ms.date: 04/06/2020
87
ms.custom: mvc
98
---
109

@@ -29,7 +28,7 @@ Deploy an app with the language framework of your choice to App Service. To foll
2928

3029
# [ASP.NET Core](#tab/dotnetcore)
3130

32-
[Tutorial: Build an ASP.NET Core and SQL Database app in Azure App Service](app-service-web-tutorial-dotnetcore-sqldatabase.md)
31+
[Tutorial: Build an ASP.NET Core and SQL Database app in Azure App Service](app-service-web-tutorial-dotnetcore-sqldb.md)
3332

3433
# [Node.js](#tab/node)
3534

@@ -167,7 +166,7 @@ HttpResponseMessage result = await client.PostAsync(
167166
var statusCode = result.StatusCode.ToString();
168167
```
169168

170-
If you're testing this on the sample app for [Tutorial: Build an ASP.NET app in Azure with SQL Database](app-service-web-tutorial-dotnet-sqldatabase.md), you could use this to send an email confirmation in the [Create action](https://github.com/Azure-Samples/dotnet-sqldb-tutorial/blob/master/DotNetAppSqlDb/Controllers/TodosController.cs#L52-L63), after the `Todo` item is added. To use the asynchronous code above, convert the Create action to asynchronous.
169+
If you're testing this code on the sample app for [Tutorial: Build an ASP.NET app in Azure with SQL Database](app-service-web-tutorial-dotnet-sqldatabase.md), you could use it to send an email confirmation in the [Create action](https://github.com/Azure-Samples/dotnet-sqldb-tutorial/blob/master/DotNetAppSqlDb/Controllers/TodosController.cs#L52-L63), after the `Todo` item is added. To use the asynchronous code above, convert the Create action to asynchronous.
171170

172171
# [ASP.NET Core](#tab/dotnetcore)
173172

@@ -195,7 +194,7 @@ var statusCode = result.StatusCode.ToString();
195194
> [!NOTE]
196195
> This code is written for simplicity of demonstration. In practice, don't instantiate an `HttpClient` object for each request. Follow the guidance at [Use IHttpClientFactory to implement resilient HTTP requests](https://docs.microsoft.com/dotnet/architecture/microservices/implement-resilient-applications/use-httpclientfactory-to-implement-resilient-http-requests).
197196
198-
If you're testing this on the sample app for [Tutorial: Build an ASP.NET Core and SQL Database app in Azure App Service](app-service-web-tutorial-dotnetcore-sqldb.md), you could use this to send an email confirmation in the [Create action](https://github.com/Azure-Samples/dotnetcore-sqldb-tutorial/blob/master/Controllers/TodosController.cs#L56-L65), after the `Todo` item is added.
197+
If you're testing this code on the sample app for [Tutorial: Build an ASP.NET Core and SQL Database app in Azure App Service](app-service-web-tutorial-dotnetcore-sqldb.md), you could use it to send an email confirmation in the [Create action](https://github.com/Azure-Samples/dotnetcore-sqldb-tutorial/blob/master/Controllers/TodosController.cs#L56-L65), after the `Todo` item is added.
199198

200199
# [Node.js](#tab/node)
201200

@@ -222,7 +221,7 @@ var jsonData = {
222221

223222
```
224223

225-
If you're testing this on the sample app for [Tutorial: Build a Node.js and MongoDB app in Azure](app-service-web-tutorial-nodejs-mongodb-app.md), you could use this to send an email confirmation in the [create function](https://github.com/Azure-Samples/meanjs/blob/master/modules/articles/server/controllers/articles.server.controller.js#L14-L27), after [the article is saved successfully](https://github.com/Azure-Samples/meanjs/blob/master/modules/articles/server/controllers/articles.server.controller.js#L24).
224+
If you're testing this code on the sample app for [Tutorial: Build a Node.js and MongoDB app in Azure](app-service-web-tutorial-nodejs-mongodb-app.md), you could use it to send an email confirmation in the [create function](https://github.com/Azure-Samples/meanjs/blob/master/modules/articles/server/controllers/articles.server.controller.js#L14-L27), after [the article is saved successfully](https://github.com/Azure-Samples/meanjs/blob/master/modules/articles/server/controllers/articles.server.controller.js#L24).
226225

227226
# [PHP](#tab/php)
228227

@@ -254,7 +253,7 @@ $response = $promise->wait();
254253
Log::info(print_r($response, TRUE));
255254
```
256255

257-
If you're testing this on the sample app for [Tutorial: Build a PHP and MySQL app in Azure](app-service-web-tutorial-php-mysql.md), you could use this to send an email confirmation in the [Route::post function](https://github.com/Azure-Samples/laravel-tasks/blob/master/routes/web.php#L30-L48), just before the return statement.
256+
If you're testing this code on the sample app for [Tutorial: Build a PHP and MySQL app in Azure](app-service-web-tutorial-php-mysql.md), you could use it to send an email confirmation in the [Route::post function](https://github.com/Azure-Samples/laravel-tasks/blob/master/routes/web.php#L30-L48), just before the return statement.
258257

259258
# [Python](#tab/python)
260259

@@ -285,7 +284,7 @@ async with aiohttp.post('http://httpbin.org/post', data=json.dump(payload)) as r
285284
print(await resp.status())
286285
``` -->
287286

288-
If you're testing this on the sample app for [Tutorial: Run a Python (Django) web app with PostgreSQL in Azure App Service](containers/tutorial-python-postgresql-app.md), you could use this to send an email confirmation in the [Route::post function](https://github.com/Azure-Samples/laravel-tasks/blob/master/routes/web.php#L30-L48), just before the return statement.
287+
If you're testing this code on the sample app for [Tutorial: Run a Python (Django) web app with PostgreSQL in Azure App Service](containers/tutorial-python-postgresql-app.md), you could use it to send an email confirmation in the [Route::post function](https://github.com/Azure-Samples/laravel-tasks/blob/master/routes/web.php#L30-L48), just before the return statement.
289288

290289
# [Ruby](#tab/ruby)
291290

@@ -299,13 +298,13 @@ body = {
299298
'task' => "My new task!"
300299
}
301300

302-
connection = clnt.post_async(url, body)
301+
connection = clnt.post_async(ENV['LOGIC_APP_URL'], body)
303302
```
304303

305-
If you're testing this on the sample app for [Build a Ruby and Postgres app in Azure App Service on Linux](containers/tutorial-ruby-postgres-app.md), you could use this to send an email confirmation in the [create](https://github.com/Azure-Samples/rubyrails-tasks/blob/master/app/controllers/tasks_controller.rb#L26-L38) action, [when @task.save succeeds](https://github.com/Azure-Samples/rubyrails-tasks/blob/master/app/controllers/tasks_controller.rb#L30).
304+
If you're testing this code on the sample app for [Build a Ruby and Postgres app in Azure App Service on Linux](containers/tutorial-ruby-postgres-app.md), you could use it to send an email confirmation in the [create](https://github.com/Azure-Samples/rubyrails-tasks/blob/master/app/controllers/tasks_controller.rb#L26-L38) action, [when @task.save succeeds](https://github.com/Azure-Samples/rubyrails-tasks/blob/master/app/controllers/tasks_controller.rb#L30).
306305

307306
---
308307

309308
# More resources
310309

311-
[Configure a Linux Ruby app for Azure App Service](configure-language-ruby.md)
310+
[Tutorial: Host a RESTful API with CORS in Azure App Service](app-service-web-tutorial-rest-api.md)

0 commit comments

Comments
 (0)