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

languge setting #358

Closed
umar28dec opened this issue Feb 17, 2017 · 1 comment
Closed

languge setting #358

umar28dec opened this issue Feb 17, 2017 · 1 comment
Labels
status: help wanted requesting help from the community type: question question directed at the library

Comments

@umar28dec
Copy link

I am unable to send mail in THAI language like content is "แม้ว่าโดยรวม 44 ตัวอักษรพยัญชนะไทยให้ ​​21 เสียง"

Thank in advance

@thinkingserious thinkingserious added status: help wanted requesting help from the community type: question question directed at the library labels Feb 20, 2017
@thinkingserious
Copy link
Contributor

Hello @umar28dec,

I am unable to reproduce the error. Here is the code I used:

<?php
require "vendor/autoload.php";

$from = new SendGrid\Email(null, "dx@sendgrid.com");
$subject = "แม้ว่าโดยรวม 44 ตัวอักษรพยัญชนะไทยให้ ​​21 เสียง";
$to = new SendGrid\Email(null, "elmer.thomas@sendgrid.com");
$content = new SendGrid\Content("text/plain", "แม้ว่าโดยรวม 44 ตัวอักษรพยัญชนะไทยให้ ​​21 เสียง");
$mail = new SendGrid\Mail($from, $subject, $to, $content);

$apiKey = getenv('SENDGRID_API_KEY');
$sg = new \SendGrid($apiKey);
$response = $sg->client->mail()->send()->post($mail);
echo $response->statusCode() . PHP_EOL;

Could you please provide further detail so that I can reproduce the issue?

Thanks!

With Best Regards,

Elmer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: help wanted requesting help from the community type: question question directed at the library
Projects
None yet
Development

No branches or pull requests

2 participants