Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Aspose for Cloud SDKs can be downloaded from the following page: Available SDKs

cURL Example

Panel
bgColor#FFFFFF
Expand
titleRequest
Code Block
curl -v "http://api.aspose.cloud/v1.1/email/email_test2.eml?appSID=XXXX&signature=XXXX" \
     -X PUT \
    -d '{"DocumentProperties": {"List": [{"Name": "Body", "Value": "This is body"}, {"Name": "To", "Value": "developer@aspose.com"}, {"Name": "From", "Value": "sales@aspose.com"}]}, "Format": "eml"}' \
     -H "Content-Type: application/json" \
     -H "Accept: application/json"
Expand
titleResponse
Code Block
{
  "Document": {
    "Links": [
      {
        "Href": "http://api.aspose.cloud/v1.1/email/email_test2.eml",
        "Rel": "self",
        "Type": null,
        "Title": null
      },
      {
        "Href": "http://api.aspose.cloud/v1.1/email/email_test2.eml?format=eml",
        "Rel": "alternate",
        "Type": "application/eml",
        "Title": "Download as EML"
      },
      {
        "Href": "http://api.aspose.cloud/v1.1/email/email_test2.eml?format=msg",
        "Rel": "alternate",
        "Type": "application/msg",
        "Title": "Download as MSG"
      },
      {
        "Href": "http://api.aspose.cloud/v1.1/email/email_test2.eml?format=mht",
        "Rel": "alternate",
        "Type": "application/mht",
        "Title": "Download as MHT"
      }
    ],
    "DocumentProperties": {
      "Link": {
        "Href": "http://api.aspose.cloud/v1.1/email/email_test2.eml/documentproperties/",
        "Rel": "self",
        "Type": null,
        "Title": null
      },
      "List": [
        {
          "Link": {
            "Href": "http://api.aspose.cloud/v1.1/email/email_test2.eml/documentproperties/Bcc",
            "Rel": "self",
            "Type": null,
            "Title": null
          },
          "Name": "Bcc",
          "Value": ""
        },
        {
          "Link": {
            "Href": "http://api.aspose.cloud/v1.1/email/email_test2.eml/documentproperties/Body",
            "Rel": "self",
            "Type": null,
            "Title": null
          },
          "Name": "Body",
          "Value": "This is body"
        },
        {
          "Link": {
            "Href": "http://api.aspose.cloud/v1.1/email/email_test2.eml/documentproperties/CC",
            "Rel": "self",
            "Type": null,
            "Title": null
          },
          "Name": "CC",
          "Value": ""
        },
        {
          "Link": {
            "Href": "http://api.aspose.cloud/v1.1/email/email_test2.eml/documentproperties/Date",
            "Rel": "self",
            "Type": null,
            "Title": null
          },
          "Name": "Date",
          "Value": "\/Date(1491769809496+0000)\/"
        },
        {
          "Link": {
            "Href": "http://api.aspose.cloud/v1.1/email/email_test2.eml/documentproperties/DeliveryNotificationOptions",
            "Rel": "self",
            "Type": null,
            "Title": null
          },
          "Name": "DeliveryNotificationOptions",
          "Value": 0
        },
        {
          "Link": {
            "Href": "http://api.aspose.cloud/v1.1/email/email_test2.eml/documentproperties/From",
            "Rel": "self",
            "Type": null,
            "Title": null
          },
          "Name": "From",
          "Value": "sales@aspose.com"
        },
        {
          "Link": {
            "Href": "http://api.aspose.cloud/v1.1/email/email_test2.eml/documentproperties/To",
            "Rel": "self",
            "Type": null,
            "Title": null
          },
          "Name": "To",
          "Value": "developer@aspose.com"
        },
        {
          "Link": {
            "Href": "http://api.aspose.cloud/v1.1/email/email_test2.eml/documentproperties/HtmlBody",
            "Rel": "self",
            "Type": null,
            "Title": null
          },
          "Name": "HtmlBody",
          "Value": ""
        },
        {
          "Link": {
            "Href": "http://api.aspose.cloud/v1.1/email/email_test2.eml/documentproperties/IsBodyHtml",
            "Rel": "self",
            "Type": null,
            "Title": null
          },
          "Name": "IsBodyHtml",
          "Value": false
        },
        {
          "Link": {
            "Href": "http://api.aspose.cloud/v1.1/email/email_test2.eml/documentproperties/MessageId",
            "Rel": "self",
            "Type": null,
            "Title": null
          },
          "Name": "MessageId",
          "Value": ""
        },
        {
          "Link": {
            "Href": "http://api.aspose.cloud/v1.1/email/email_test2.eml/documentproperties/Priority",
            "Rel": "self",
            "Type": null,
            "Title": null
          },
          "Name": "Priority",
          "Value": "Normal"
        },
        {
          "Link": {
            "Href": "http://api.aspose.cloud/v1.1/email/email_test2.eml/documentproperties/Subject",
            "Rel": "self",
            "Type": null,
            "Title": null
          },
          "Name": "Subject",
          "Value": ""
        },
        {
          "Link": {
            "Href": "http://api.aspose.cloud/v1.1/email/email_test2.eml/documentproperties/TextBody",
            "Rel": "self",
            "Type": null,
            "Title": null
          },
          "Name": "TextBody",
          "Value": "This is body"
        },
        {
          "Link": {
            "Href": "http://api.aspose.cloud/v1.1/email/email_test2.eml/documentproperties/Attachments",
            "Rel": "self",
            "Type": null,
            "Title": null
          },
          "Name": "Attachments",
          "Value": [
            
          ]
        }
      ]
    }
  },
  "Code": 200,
  "Status": "OK"
}

SDK Examples

Panel
titleAdd new email
Expand
titleC#
HTML
<script src="https://gist.github.com/aspose-email/838d7478e3720f941514d3d04417e82e.js?file=Examples-DotNET-CSharp-Email-AddNewEmail-1.cs"></script>
Expand
titleJava
HTML
<script src="https://gist.github.com/aspose-email/10428737982c525bf33b54ad9c27b707.js?file=Examples-JAVA-SDK-src-main-java-com-aspose-email-cloud-examples-working-AddNewEmailExample-AddNewEmailExample.java"></script> 
Expand
titlePHP
HTML
<script src="https://gist.github.com/a052f420f51722082cbb70d5e8d0f339.js?file=Examples-PHP-Email-PutCreateNewEmail-.php"></script>
Expand
titleRuby
HTML
<script src="https://gist.github.com/aspose-email/3f41448648db89803193189f274722fa.js?file=Examples-Ruby-Email-add_new_email-.rb"></script>
Expand
titlePython
HTML
<script src="https://gist.github.com/aspose-email/13478a90f198800bfcdafa983dbd0fcd.js?file=AddNewEmail.py"></script>
Expand
titleNode.js
HTML
<script src="https://gist.github.com/aspose-email/838d7478e3720f941514d3d04417e82e.js?file=Examples-Node.js-Email-AddNewEmail-1.js"></script>
Expand
titleAndroid
HTML
<script src="https://gist.github.com/aspose-email/95a576636fc5c03e126e2617c83ce117.js?file=Examples-Android-app-src-main-java-com-aspose-email-cloud-examples-working-AddNewEmailExample-AddNewEmailExample.java"></script>
Expand
titleObjective C
HTML
<script src="https://gist.github.com/1779f6b192c8df02d5c083a6abedfb62.js?file=Examples-Objective C-Aspose.Email-Aspose.Email-Email-Email-PutCreateNewEmail.m"></script>
Expand
titlePerl
HTML
<script src="https://gist.github.com/aspose-email/838d7478e3720f941514d3d04417e82e.js?file=Examples-Perl-Email-AddNewEmail-1.pl"></script>