Need help sending email jobs through the API using PHP. Need to know the steps and the web services to use to get the job done.
Please see the following. It is the only sample we have for PHP. There are other users who have done PHP and posted. Search PHP.
https://apiforums.easylink.com/content/fax-submit-php-sampleh
I am getting a connection timeout when posting to messaging.easylink.com.
Below Is the XML Request used
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<Request xmlns="https://messaging.easylink.com/soap/sync">
<ReceiverKey>https://messaging.easylink.com/soap/sync</ReceiverKey>
<ResponseRequired>yes</ResponseRequired>
<Authentication>
<XDDSAuth>
<RequesterID>###USERNAME###</RequesterID>
<Password>###PASSWORD###</Password>
</XDDSAuth>
</Authentication>
</Request>
</soap:Header>
<soap:Body>
<JobSubmitRequest xmlns="http://ws.easylink.com/JobSubmit/2011/01">
<SubmitId>SUBMITID_EMAIL</SubmitId>
<Message>
<MessageId>###MESSAGE-ID###</MessageId>
<JobOptions>
<BillingCode>BC</BillingCode>
<CustomerReference>CREF</CustomerReference>
<Delivery>
<Schedule>express</Schedule>
</Delivery>
<EnhancedEmailOptions>
<ExpirationDays>3</ExpirationDays>
<Email>email</Email>
<Subject>Test Open Text</Subject>
<AutoSendFriend>no</AutoSendFriend>
<FromDisplayName> Test name</FromDisplayName>
<ReplyTo>reply@reply.com</ReplyTo>
<HTMLOpenTracking>top</HTMLOpenTracking>
</EnhancedEmailOptions>
</JobOptions>
<Destinations>
<Internet>
<InsertList>
<Insert number="1">Firstname</Insert>
<Insert number="2">lastname</Insert>
<Insert number="3">email@email.com</Insert>
</InsertList>
</Internet>
</Destinations>
<Contents>
<Part>
<DocType>HTML</DocType>
<DOCURL>URL.html</DOCURL>
<Treatment>body</Treatment>
</Part>
<DocType>text</DocType>
<DOCURL>URL.txt</DOCURL>
</Contents>
</Message>
</JobSubmitRequest>
</soap:Body>
</soap:Envelope>