This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Dim reportName As String | |
| Dim path As String | |
| Dim fso As Object | |
| Set fso = CreateObject("Scripting.FileSystemObject") | |
| Dim oFile As Object | |
| Dim strAttachments As String | |
| Dim strTransPort As String | |
| Dim byteData() As Byte | |
| Dim xmlhttp As Object | |
| Dim eTo As String |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| global class SendGrid { | |
| private static final String ENCODING = 'UTF-8'; | |
| private static final String API_URL = 'https://api.sendgrid.com/api/mail.send.json'; | |
| private transient String username; | |
| private transient String password; | |
| private transient String apikey; | |
| private enum AUTHTYPE {KEY, USER_PASS} | |
| private AUTHTYPE selAuthType; | |