Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > Windows Azure > Windows Azure and Store (Add-ons) > ตอนที่ 3 : SendGrid สร้าง SendGrid สำหรับส่งอีเมล์ จาก Store (Azure Add-ons)



Clound SSD Virtual Server

ตอนที่ 3 : SendGrid สร้าง SendGrid สำหรับส่งอีเมล์ จาก Store (Azure Add-ons)

ตอนที่ 3 : SendGrid สร้าง SendGrid สำหรับส่งอีเมล์ จาก Store (Azure Add-ons) สำหรับ SendGrid เป็น Service บริการ Email Delivery ใช้ส่งอีเมล์ไปยังปลายทาง ในปริมาณมาก ๆ แต่ไม่ใช่สำหรับการส่ง Spam เพราะ SendGrid มีการตรวจสอบและป้องกันการส่ง Spam ได้อย่างดีเยี่ยม มีการตรวจสอบระดับคะแนนค่าเฉลี่ย อัตราการตีกลับ ถูก Block หรือแจ้ง Report เป็น Spam ซึ้่งระบบต่าง ๆ ได้ออกแบบมาสำหรับการป้องกัน Spam โดยเฉพาะ ฉะนั้น Email ที่ถูกส่งจาก SendGrid จะไปถึงปลายทางอย่างแน่นอน

SendGrid Store Windows Azure


SendGrid ยังเหมาะสำหรับเป็น SMTP ไว้ใช้งานในหน่วยงานหรือบริษัท ที่ต้องการ SMTP ไว้ส่งอีเมล์ที่มีประสิทธิภาพสูง ในอัตราราคาที่ต่ำมาก โดย Package เริ่มต้นของ SendGrid สามารถใช้งานได้ฟรี 25,000 ฉบับต่อเดือน และ Package สูงขึ้นตามลำดับ

นอกจากจะใช้ SendGrid กับ SMTP อาทิเช่นบนโปรแกรมประเภท Outlook แล้วยังสามารถเขียนโปรแกรมพวก PHP , .Net , Java เพื่อที่จะเรียกใช้งาน SMTP ในการส่งอีเมล์ไปยังปลายทางได้เช่นเดียวกัน

การสร้าง Services ของ SendGrid ไว้สำหรับส่งอีเมล์

SendGrid Store Windows Azure

NEW -> STORE


SendGrid Store Windows Azure

เลือก SendGrid

SendGrid Store Windows Azure

สำหรับ PLAN เริ่มต้นเราสามารถใช้งาน 25,000 ฉบับฟรีต่อเดือน

SendGrid Store Windows Azure

แสดง Summary ซึ่งตอนนี้เราเลือก Package แบบฟรีที่สามารถส่งได้ 25,000 ฉบับต่อเดือน








SendGrid Store Windows Azure

Services ของ SendGrid ถูกสร้างขึ้น และสามารถจัดการและ Manage ต่าง ๆ เช่น Connection หรือ Upgrade ตัว Plan

SendGrid Store Windows Azure

คลิกที่ Connection Info

SendGrid Store Windows Azure

แสดง Connection String ของ SMTP ซึ่งเราสามารถนำไปใช้ได้ทั้งโปรแกรม Outlook หรือผ่านพวกโปรแกรม PHP และ .Net

SendGrid Store Windows Azure

ในกรณีที่ต้องการ Upgrade Plan

SendGrid Store Windows Azure

แสดง Plan สำหรับการ Upgrade ตามปริมาณที่ต้องการใช้ต่อเดือน

SendGrid Store Windows Azure

คลิกที่ Manage

SendGrid Store Windows Azure

จะทำการ Redirect มายังเว็บไซต์ของ sendgrid.com ซึ่งเป็นเว็บไซต์ของผู้ให้บริการ SendGrid โดยตรง และเราสามารถจัดการตรวจสอบรายการต่าง ๆ ได้จากเว็บไซต์นี้ได้เลย

ซึ่งค่าพื้นฐานจะแสดง Package และสถานะต่าง ๆ ของ Account

SendGrid Store Windows Azure

สามารถตรวจสอบหรือดู Report ต่าง ๆ

SendGrid Store Windows Azure

เช่นการรายการที่ส่งแล้วถูกตีกลับ หรือ Email ปลายทางไม่ถูกต้อง

ตัวอย่างการเรียกใช้โดยผ่าน SMTP และโปรแกรม PHP

<?php

	require_once('class.phpmailer.php');

	$mail = new PHPMailer();
	$mail->IsHTML(true);
	$mail->IsSMTP();
	$mail->SMTPAuth = true; 
	$mail->SMTPSecure = ""; 
	$mail->Host = "smtp.sendgrid.net"; 
	$mail->Port = 25; 
	$mail->Username = "[email protected]"; 
	$mail->Password = "ezvye5"; 
	$mail->From = "[email protected]"; 
	$mail->FromName = "Mr.Weerachai Nukitram";  
	$mail->Subject = "Test sending mail."; 
	$mail->Body = "My Body & <b>My Description</b>";

	$mail->AddAddress("[email protected]", "Mr.Adisorn Boonsong"); // to Address

	$mail->Send(); 
?>

Code ของ PHP โดยใช้ Class ของ PHP Mailer

SendGrid Store Windows Azure

แก้ไขตรง Host , Username และ Password








สรุป
บริการ SendGrid เป็นบริการ SMTP เหมาะสำหรับนำมาใช้สำหรับการส่งอีเมล์ไปยังปลายทางที่ต้องการประสิทธิภาพในการส่งที่ถูกต้อง และไปยังปลายทางอย่างแน่นอน และอัตราคาการใช้งานก็ค่อนข้างถูก และใน Plan เริ่มต้นยังสามารถใช้งานได้ฟรีถึง 25,000 ฉบับต่อเดือน แต่ถ้าต้องการในอัตราที่สูงขึ้นก็สามารถที่จะ Upgrade เป็น Plan อื่น ๆ ได้ตามต้องการ

   
Share


ช่วยกันสนับสนุนรักษาเว็บไซต์ความรู้แห่งนี้ไว้ด้วยการสนับสนุน Source Code 2.0 ของทีมงานไทยครีเอท


ลองใช้ค้นหาข้อมูล


   


Bookmark.   
       
  By : ThaiCreate.Com Team (บทความเป็นลิขสิทธิ์ของเว็บไทยครีเอทห้ามนำเผยแพร่ ณ เว็บไซต์อื่น ๆ)
  Score Rating :  
  Create/Update Date : 2013-11-30 08:30:40 / 2017-03-24 15:39:57
  Download : No files
 Sponsored Links / Related

 
ตอนที่ 1 : รู้จัก Store บน Windows Azure เลือกใช้ของดีและฟรีที่ไม่ควรพลาด
Rating :

 
ตอนที่ 2 : ClearDB MySQL Database สร้าง MySQL จาก Store (Azure Add-ons)
Rating :

 
ตอนที่ 4 : MongoLab สร้าง Mongo Database จาก Store (Azure Add-ons)
Rating :

 
ตอนที่ 5 : Bing Search API สร้าง Search API จาก Store (Azure Add-ons)
Rating :


ThaiCreate.Com Forum


Comunity Forum Free Web Script
Jobs Freelance Free Uploads
Free Web Hosting Free Tools

สอน PHP ผ่าน Youtube ฟรี
สอน Android การเขียนโปรแกรม Android
สอน Windows Phone การเขียนโปรแกรม Windows Phone 7 และ 8
สอน iOS การเขียนโปรแกรม iPhone, iPad
สอน Java การเขียนโปรแกรม ภาษา Java
สอน Java GUI การเขียนโปรแกรม ภาษา Java GUI
สอน JSP การเขียนโปรแกรม ภาษา Java
สอน jQuery การเขียนโปรแกรม ภาษา jQuery
สอน .Net การเขียนโปรแกรม ภาษา .Net
Free Tutorial
สอน Google Maps Api
สอน Windows Service
สอน Entity Framework
สอน Android
สอน Java เขียน Java
Java GUI Swing
สอน JSP (Web App)
iOS (iPhone,iPad)
Windows Phone
Windows Azure
Windows Store
Laravel Framework
Yii PHP Framework
สอน jQuery
สอน jQuery กับ Ajax
สอน PHP OOP (Vdo)
Ajax Tutorials
SQL Tutorials
สอน SQL (Part 2)
JavaScript Tutorial
Javascript Tips
VBScript Tutorial
VBScript Validation
Microsoft Access
MySQL Tutorials
-- Stored Procedure
MariaDB Database
SQL Server Tutorial
SQL Server 2005
SQL Server 2008
SQL Server 2012
-- Stored Procedure
Oracle Database
-- Stored Procedure
SVN (Subversion)
แนวทางการทำ SEO
ปรับแต่งเว็บให้โหลดเร็ว


Hit Link
   







Load balance : Server 01
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่