Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the character set #38

Open
spj-uk opened this issue Aug 19, 2022 · 2 comments
Open

Set the character set #38

spj-uk opened this issue Aug 19, 2022 · 2 comments

Comments

@spj-uk
Copy link

spj-uk commented Aug 19, 2022

How can I set the character set? Defaults to GSM alphabet but want it to detect

$message = new \Esendex\Model\DispatchMessage(
    $source, // Send from
    $destination, // Send to any valid number
    $text,
   \Esendex\Model\Message::SmsType
  );
  $authentication = new \Esendex\Authentication\LoginAuthentication(
    $GLOBALS['EsendexAccountNo'],
    $GLOBALS['EsendexLogin'],
    $GLOBALS['EsendexPassword']     
  );
  $service = new \Esendex\DispatchService($authentication);
  $result = $service->send($message);
  print $result->id() . "\n\n";
	return $result;
@spj-uk
Copy link
Author

spj-uk commented Aug 19, 2022

I tried inserting the line
\Esendex\Model\MessageBody::CharsetAuto
after SMSType without success

@spj-uk
Copy link
Author

spj-uk commented Aug 19, 2022

As a work around I've changed the $characterSet value from null to "Auto" in DispatchMessage.php .
I'm missing a trick somewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant