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
| # Change TOKEN_IF_YOU_NEED_IT to your Auth Token | |
| # Change http://YOUR_RELAY_WEBHOOK_URL to your relay webhook url | |
| curl -X POST -H "X-MessageSystems-Webhook-Token: TOKEN_IF_YOU_NEED_IT -H "Cache-Control: no-cache" -d '[ | |
| { | |
| "msys": { | |
| "relay_message": { | |
| "rcpt_to": "help@rt.ntppool.org", | |
| "friendly_from": "john.doe@example.com", | |
| "customer_id": "1521", | |
| "content": { |
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; |
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
| { | |
| "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
| { | |
| "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
| 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
| { | |
| "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
| { | |
| "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": "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
| 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; | |
| /** |
OlderNewer