EmailMessages APIs
-
Create New Email Message
Description: Creates a new Email messageUsage:
POST api/Messages/Email/Create
Parameter Type Source Description EmailObject Email_Message FromBody Email_Message object Returns:
The unique numerical code identifying the new Email message
Examples:
<!-- POST to the following url http://api.v4.swiftreach.com/api/Messages/Email/Create --> <Email_Message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema/SwiftReach.Swift911.Core.Messages.Email"> <Name>API Email</Name> <Description>created by api</Description> <FromName>SwiftAPI</FromName> <FromAddress>alerts@swiftreach.com</FromAddress> <DefaultSpokenLanguage>English</DefaultSpokenLanguage> <Content> <Email_Content> <SpokenLanguage>English</SpokenLanguage> <Subject>my subject</Subject> <Body> <EMAIL_TEXT_SOURCE xsi:type="EMAIL_TEXT_SOURCE_TEXT"> <Text>this is the body of my email</Text> <TextType>email_text_source_text</TextType> </EMAIL_TEXT_SOURCE> </Body> </Email_Content> </Content> </Email_Message> <!-- example return value --> <int>123456</int>