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
| function countEmails() { | |
| const sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); | |
| sheet.clear(); // Clear the sheet before writing new data | |
| sheet.appendRow(["Total Emails", "HTML Emails", "Text Emails", "[if (mso) in HTML"]); | |
| // Fetch emails from the Inbox | |
| const threads = GmailApp.getInboxThreads(); | |
| let totalEmails = 0; | |
| let htmlEmails = 0; | |
| let ifMsoEmails = 0; |
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
| import java.io.ByteArrayInputStream; | |
| import java.io.ByteArrayOutputStream; | |
| import java.io.DataInputStream; | |
| import java.io.DataOutputStream; | |
| import java.io.IOException; | |
| import java.net.DatagramPacket; | |
| import java.net.DatagramSocket; | |
| import java.net.InetAddress; | |
| /** |
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
| { | |
| "recipients": [ | |
| { | |
| "address": { | |
| "email": "test@example.com" | |
| } | |
| } | |
| ], | |
| "content": { | |
| "reply_to": "areplyto@hotmail.example.com", |
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
| { | |
| "recipients": [ | |
| { | |
| "address": { | |
| "email": "test1@example.com", | |
| "name" : "크리스" | |
| } | |
| }, | |
| { | |
| "address": { |
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
| { | |
| "recipients": [ | |
| { | |
| "address": { | |
| "email": "to_user@example.com" | |
| } | |
| }, | |
| { | |
| "address": { | |
| "email": "bcc_user@example.com", |
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
| package com.sparkpost.samples; | |
| import java.io.IOException; | |
| import java.util.ArrayList; | |
| import java.util.HashMap; | |
| import java.util.List; | |
| import java.util.Map; | |
| import org.apache.log4j.Level; | |
| import org.apache.log4j.Logger; | |
| import com.sparkpost.Client; | |
| import com.sparkpost.exception.SparkPostException; |
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
| { | |
| "substitution_data": { | |
| "dynamic_html" : { | |
| "my_html_chunk" : "<p><a href = \"http://www.example.com?q={{username}}\">Click here</a></p>" | |
| } | |
| }, | |
| "recipients": [ | |
| { | |
| "address": { | |
| "email": "test@example.com" |
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
| { | |
| "recipients": [ | |
| { | |
| "address": { | |
| "email": "recipient1@example.com" | |
| }, | |
| "substitution_data": { | |
| "files_html": [ | |
| { | |
| "file": "<a href=\"http://example.com/file1a.txt\">File 1a Descrption</a>" |
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
| { | |
| "recipients":[ | |
| { | |
| "address":{ | |
| "name":"To Recipient", | |
| "email":"to_test@example", | |
| "header_to":"to_test@example" | |
| } | |
| }, | |
| { |
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
| package javamail_rfc822_example; | |
| import java.util.Properties; | |
| import javax.mail.Message; | |
| import javax.mail.MessagingException; | |
| import javax.mail.Session; | |
| import javax.mail.Transport; | |
| import javax.mail.internet.InternetAddress; | |
| import javax.mail.internet.MimeMessage; |
NewerOlder