$client = new \EuroMessage\EuroMessageClient();
$serviceTicket = $client->login(YOUR_EM_USER_NAME, YOUR_EM_PASSWORD); // throws \EuroMessage\Exceptions\LoginException
$postRequest = new \EuroMessage\Post\EmPostRequest();
$postRequest->setServiceTicket($serviceTicket)
->setFromAddress(FROM_ADDRES)
->setReplyAddress(REPLY_ADDRESS)
->setFromName(FROM_NAME);
$mail = new \EuroMessage\Mail();
$mail->setBody(MAIL_BODY)
->setSubject(MAIL_SUBJECT);
->to("[email protected]");
/** @var \EuroMessage\Post\EmPostResult $result */
$result = $client->sendSingleHtmlMail($postRequest, $mail); // throws \EuroMessage\Exceptions\MailSendException
-
Notifications
You must be signed in to change notification settings - Fork 0
oksuz/euromessage-php-soap-cli
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
EuroMessage Soap Api PHP Client
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published