OK, posting cepat aja supaya gak kelupaan.
To send email-based alerts on SharePoint, you need to configure outgoing e-mail settings first. Sebenarnya cukup mudah untuk men-setting outgoing email pada SharePoint 2010. Buka SharePoint 2010 Central Administration, klik quick launch System Settings, and you’ll find following screen.
Clicking Configure Outgoing e-mail settings, and you’ll find this screen:
Just type Outgoing SMTP Server host/IP address, From email address, Reply-to email address, and select Character set. DONE. Now, the real challenge is preparing SMTP service to be used for sending emails from SharePoint, including alerts.
Basically, you can use any SMTP server. But to me, I prefer to use the built-in SMTP Server in Windows Server 2008 R2. Akan tetapi, SMTP Server dalam Windows Server, yang biasa dikenal sebagai IIS SMTP Service, is not full-fledge mail server. In this case, I will use this IIS SMTP Service as a relay to Gmail. This walkthrough should be the same for other mail server, other than Gmail.
Installing SMTP Server feature
AFAIK, SMTP Server is not installed by default in Windows Server 2008 R2, probably in previous Windows Server as well. To make sure it’s installed or not, open Server Manager, click Features, you should see this screen if it’s installed.
If not, just click Add Features, then select SMTP Server. Will show the question to activate other features that SMTP Server has dependency with, e.g. IIS 6.0 Manager. Just accept them all unless you know what you’re doing. Supposed to be easy task.
And make sure your paranoid firewall don’t block incoming connection to port 25.
Configuring SMTP Server
I assume the SMTP Server is installed successfully, tibalah saatnya untuk mengkonfigurasinya. As I said, I will use this SMTP Server as a relay to Gmail mail server.
1. Open IIS 6.0 Manager
2. ‘Singkapkan’ (ckckck…singkap…) hostname dimana SMTP service berjalan (ingat2 hostname/IP address host ini untuk konfigurasi di SharePoint nanti), sehingga muncul “SMTP Virtual Server #1”. Click kanan padanya –> click Properties, dan tampillah:
3. Click Access Tab, you’ll find:
Click Authentication button, you’ll find Authentication dialog as above. Make sure you select Anonymous access, karena akan membuat hidup Anda lebih mudah ketika berhubungan dengan SharePoint. Seperti dapat dilihat pada gambar kedua di atas, tidak ada input untuk memasukkan data authentication.
4. Click Relay button, and you’ll find Relay Restrictions dialog. Here you can specify which computers that are able to use this SMTP Server as relay, by selecting “All except the list below” and adding computers’ IP address. I leave it empty for now.
5. Now, get you mouse to Delivery tab. I prefer this settings for Outbound.
Click Outbound Security. Then select Basic authentication. Type your username and password for authenticating to relay mail server. For Gmail, input your Gmail email address and password. Also for Gmail, make sure to check “TLS encryption”. Click OK.
Back to Delivery tab, now click “Outbound connections”. You’ll have screen as follow. For Gmail, use TCP port 587. Click OK.
Now, back to Delivery tab, click “Advanced…” button. Type you FQDN mail domain. For Gmail, make sure to type smtp.gmail.com for Smart host.
That’s it.
5. Go to SharePoint Central Administration for updating Outgoing email settings with this SMTP service host/IP address.
Ya seperti yang ditulis di atas, input IP address/hostname where the SMTP Server is running. Also input “From address” and “Reply-to address”. Make sure to use available email address in Gmail. It would be good if you use the same email address as inputted on Outbound Security - Basic authentication.
For more details about outgoing email settings, refer to: http://technet.microsoft.com/en-us/library/cc263462(office.14).aspx#section1
6. Testing alert
Now setup your alert in SharePoint (I won’t show you how). Trigger it. Hopefully the alert email is sent. If not, go back and make sure you follow the walkthrough carefully, and use your developer/IT pro’s instinct to solve the problem.
That’s it. Good luck.