Skip to content

oksuz/euromessage-php-soap-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

EuroMessage Soap Api Php Client

Usage:

$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

About

EuroMessage Soap Api PHP Client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages