Email Service - Send Email message in non-English

0 votes

Hi,

I am using Email Service and I use " Send Email " service. My sendMsg = "My Email Message 中文測試!"

But I received e-mail content is "My Email Message ???? !"

If we want to send non-English message, how can I do ?

I use PHP.

Thank you !

asked May 7, 2014 in App42 Cloud API-BaaS by guo (110 points)

1 Answer

0 votes
 
Best answer

Hi Guo,

You can save your non english data in base64 encoded string and then decode back after fetching it.In all our SDK, we have Base64 class and it has method to encode and decode string.

This is just a workaround to save non english data, however it will be supported directly in our SDK soon.

answered May 7, 2014 by naresh (350 points)
selected May 7, 2014 by guo
Thank you for your replay !

I have another question.
In AppHQ, I have two Email Configuration, please see this picture link
http://666kb.com/i/co51eqa6hfc48fmr7.png

I use guo@ideabus.com.tw to send email in AppHQ, it works fine.
But when I use PHP api to send email, I can't receive email.
Why ?
Hi Guo,
I identify your given picture you have entered the isSSL property is false. For sending mail make sure it is set to be true.
Hi,
Thank you for your reply !
I set isSSL to be true, than it doesn't work in AppHQ and PHP api.
I set port 465.
What settings do I have missed ?
Hi Guo,

Please try this configuration ,

$emailHost = "smtp.gmail.com";  
$emailPort = 465;  
$emailId = "nick@gmail.com";  
$password = "***";  
$isSSL = "true";
$email = $emailService->createMailConfiguration($emailHost, $emailPort, $emailId,$password,$isSSL);   
$configList = $email->getConfigList();  
foreach($configList as $config)  
{  
   print_r("emailId is " . $config->getEmailId());  
   print_r("Host is " . $config->getHost());  
   print_r("Port is " . $config->getPort());  
   print_r("SSL is " . $config->getSsl());  
}
Hi naresh,
Gmail works fine.
Hi Guo, I Guess your host parameter is wrong.Please check it.
Hi naresh,
The picture link above is my host parameter.
I test port and isSSL, only port = 25 and isSSL = false can work in AppHQ, PHP API doesn't work.

port  isSSL work?
25   true  X
25   false   O
465    true  X
465    false   X
Hi guo, sorry for delay.
I studied your case and find this is a bug in our API. and we will fix this bug by 15-may.
Thank you very much !
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...