<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
				<title><![CDATA[회원가입시에 장문 문자 전송 문제]]></title>
		<link>https://www.cosmosfarm.com/threads/rss/document/23688</link>
		<description><![CDATA[<p>안녕하세요</p>

<p>워드프레스 회원가입했을때 문자가 가게 하려고하는데</p>

<p>장문문자거든요.. 문장을 쫙 해놓으니까 딱 단문글자수까지만 보이고 그 이후로는 짤려요 ㅠ</p>

<p>장문으로 보내게하려면 어떻게 해야할까요?ㅠㅠ</p>

<p>문자는 잘 오고있는 상태인데 문자가왔을때 예를들어 </p>

<p>[안녕하세요 회원가입을 환영합니다.<br />
저희홈페이지에서는 여러가]</p>

<p>이렇게 짤려서 와요...</p>

<p>도와주세요 ㅠㅠ</p>]]></description>
		<copyright>Copyright 2026, 코스모스팜</copyright>
				<item>
			<title><![CDATA[우와 드디어됩니다!!!!!!!!!감사합니다 ㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠ]]></title>
			<link>https://www.cosmosfarm.com/threads/document/23927</link>
			<description><![CDATA[<p>우와 드디어됩니다!!!!!!!!!감사합니다 ㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠ</p>]]></description>
			<author>이야앗</author>
			<pubDate>Tue, 26 Jun 2018 09:16:13 +0000</pubDate>
			<category>워드프레스</category>
		</item>
				<item>
			<title><![CDATA[안녕하세요.

저희 고객지원 쪽으로 보내주신 정보로 확인해보니

iconv() 함수가 제대로 동작하지 않는...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/23908</link>
			<description><![CDATA[<p>안녕하세요.</p>

<p>저희 고객지원 쪽으로 보내주신 정보로 확인해보니</p>

<p>iconv() 함수가 제대로 동작하지 않는 듯합니다.</p>

<p>기존의 아래의 코드를</p>

<pre>
<code class="language-php">if(strlen(iconv('utf8', 'euckr', $content)) &gt; 90){
	$sender = 'mms';
	$title = mb_substr($content, 0, 40);
	$args = array(
		'headers' =&gt; array('content-type' =&gt; 'application/json;charset=UTF-8'),
		'body'    =&gt; json_encode(array(
			'title'         =&gt; $title,
			'body'          =&gt; $content,
			'sendNo'        =&gt; "{$option-&gt;sms_caller1}{$option-&gt;sms_caller2}{$option-&gt;sms_caller3}",
			'recipientList' =&gt; array(array('recipientNo' =&gt; $phone))
		))
	);
}</code></pre>

<p>아래의 코드로 교체해두었습니다.</p>

<pre>
<code class="language-php">if(strlen(mb_convert_encoding($content, "EUC-KR", "UTF-8")) &gt; 90){
	$sender = 'mms';
	$title = mb_substr($content, 0, 40);
	$args = array(
		'headers' =&gt; array('content-type' =&gt; 'application/json;charset=UTF-8'),
		'body'    =&gt; json_encode(array(
			'title'         =&gt; $title,
			'body'          =&gt; $content,
			'sendNo'        =&gt; "{$option-&gt;sms_caller1}{$option-&gt;sms_caller2}{$option-&gt;sms_caller3}",
			'recipientList' =&gt; array(array('recipientNo' =&gt; $phone))
		))
	);
}</code></pre>

<p>실제로 회원가입해서 확인해보시겠어요?</p>

<p>고맙습니다.</p>]]></description>
			<author>스레드봇</author>
			<pubDate>Tue, 26 Jun 2018 07:20:11 +0000</pubDate>
			<category>워드프레스</category>
		</item>
				<item>
			<title><![CDATA[안녕하세요.

저희 고객지원 쪽으로 워드프레스 관리자 계정과 FTP 접속 정보를 보내주시면 점검해드리...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/23884</link>
			<description><![CDATA[<p>안녕하세요.</p>

<p>저희 <a href="https://www.cosmosfarm.com/support" target="_blank">고객지원</a> 쪽으로 워드프레스 관리자 계정과 FTP 접속 정보를 보내주시면 점검해드리겠습니다.</p>

<p>고맙습니다.</p>]]></description>
			<author>스레드봇</author>
			<pubDate>Tue, 26 Jun 2018 03:18:59 +0000</pubDate>
			<category>워드프레스</category>
		</item>
				<item>
			<title><![CDATA[알려주신 맨밑에 넣는 긴 코드도 삽입하였구요!

그래도 안돼서 새롭게 알려주신 코드 넣어보니

단문으...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/23824</link>
			<description><![CDATA[<p>알려주신 맨밑에 넣는 긴 코드도 삽입하였구요!</p>

<p>그래도 안돼서 새롭게 알려주신 코드 넣어보니</p>

<p>단문으로 발송됩니다 라고뜹니다!ㅠㅠ</p>]]></description>
			<author>이야앗</author>
			<pubDate>Mon, 25 Jun 2018 02:12:04 +0000</pubDate>
			<category>워드프레스</category>
		</item>
				<item>
			<title><![CDATA[안녕하세요.

아래의 코드도 적용해주셨는지요?


$response = wp_safe_remote_post(&quot;https://api-...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/23735</link>
			<description><![CDATA[<p>안녕하세요.</p>

<p>아래의 코드도 적용해주셨는지요?</p>

<pre>
<code class="language-php">$response = wp_safe_remote_post("https://api-sms.cloud.toast.com/sms/v2.0/appKeys/{$option-&gt;sms_toast_cloud_appkey}/sender/$sender", $args);</code></pre>

<p> </p>

<p>적용했는데도 같은 문제가 발생한다면</p>

<p>아래의 코드를 적용하셔서</p>

<p>실제 회원가입 후에 페이지에 어떤 메시지가 표시되는지 확인해보시겠어요?</p>

<pre>
<code class="language-php">if(strlen(iconv('utf8', 'euckr', $content)) &gt; 90){
	echo '장문으로 발송됩니다.';
	$sender = 'mms';
	$title = mb_substr($content, 0, 40);
	$args = array(
		'headers' =&gt; array('content-type' =&gt; 'application/json;charset=UTF-8'),
		'body'    =&gt; json_encode(array(
			'title'         =&gt; $title,
			'body'          =&gt; $content,
			'sendNo'        =&gt; "{$option-&gt;sms_caller1}{$option-&gt;sms_caller2}{$option-&gt;sms_caller3}",
			'recipientList' =&gt; array(array('recipientNo' =&gt; $phone))
		))
	);
}
else{
	echo '단문으로 발송됩니다.';
	$sender = 'sms';
	$args = array(
		'headers' =&gt; array('content-type' =&gt; 'application/json;charset=UTF-8'),
		'body'    =&gt; json_encode(array(
			'body'          =&gt; $content,
			'sendNo'        =&gt; "{$option-&gt;sms_caller1}{$option-&gt;sms_caller2}{$option-&gt;sms_caller3}",
			'recipientList' =&gt; array(array('recipientNo' =&gt; $phone))
		))
	);
}
exit;</code></pre>

<p>고맙습니다.</p>]]></description>
			<author>스레드봇</author>
			<pubDate>Thu, 21 Jun 2018 23:54:46 +0000</pubDate>
			<category>워드프레스</category>
		</item>
				<item>
			<title><![CDATA[코드를 변경했는데도 안되네요... 그대로 짤려버리네요...ㅠㅠ 어떡하죠 ㅠㅠ]]></title>
			<link>https://www.cosmosfarm.com/threads/document/23713</link>
			<description><![CDATA[<p>코드를 변경했는데도 안되네요... 그대로 짤려버리네요...ㅠㅠ 어떡하죠 ㅠㅠ</p>]]></description>
			<author>이야앗</author>
			<pubDate>Thu, 21 Jun 2018 08:20:41 +0000</pubDate>
			<category>워드프레스</category>
		</item>
				<item>
			<title><![CDATA[안녕하세요.

토스트 클라우드를 사용 중이시라면

FTP로 접속해서 /wp-content/plugins/cosmosfarm-mem...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/23706</link>
			<description><![CDATA[<p>안녕하세요.</p>

<p>토스트 클라우드를 사용 중이시라면</p>

<p>FTP로 접속해서 /wp-content/plugins/cosmosfarm-members/class/Cosmosfarm_Members_Sms.class.php 파일에</p>

<p>아래의 코드를 찾아서</p>

<pre>
<code class="language-php">$args = array(
	'headers' =&gt; array('content-type' =&gt; 'application/json;charset=UTF-8'),
	'body'    =&gt; json_encode(array(
		'body'          =&gt; $content,
		'sendNo'        =&gt; "{$option-&gt;sms_caller1}{$option-&gt;sms_caller2}{$option-&gt;sms_caller3}",
		'recipientList' =&gt; array(
			array('recipientNo' =&gt; $phone)
		)
	))
);

$response = wp_safe_remote_post("https://api-sms.cloud.toast.com/sms/v2.0/appKeys/{$option-&gt;sms_toast_cloud_appkey}/sender/sms", $args);</code></pre>

<p>아래의 코드로 교체해주시겠어요?</p>

<pre>
<code class="language-php">if(strlen(iconv('utf8', 'euckr', $content)) &gt; 90){
	$sender = 'mms';
	$title = mb_substr($content, 0, 40);
	$args = array(
		'headers' =&gt; array('content-type' =&gt; 'application/json;charset=UTF-8'),
		'body'    =&gt; json_encode(array(
			'title'         =&gt; $title,
			'body'          =&gt; $content,
			'sendNo'        =&gt; "{$option-&gt;sms_caller1}{$option-&gt;sms_caller2}{$option-&gt;sms_caller3}",
			'recipientList' =&gt; array(array('recipientNo' =&gt; $phone))
		))
	);
}
else{
	$sender = 'sms';
	$args = array(
		'headers' =&gt; array('content-type' =&gt; 'application/json;charset=UTF-8'),
		'body'    =&gt; json_encode(array(
			'body'          =&gt; $content,
			'sendNo'        =&gt; "{$option-&gt;sms_caller1}{$option-&gt;sms_caller2}{$option-&gt;sms_caller3}",
			'recipientList' =&gt; array(array('recipientNo' =&gt; $phone))
		))
	);
}

$response = wp_safe_remote_post("https://api-sms.cloud.toast.com/sms/v2.0/appKeys/{$option-&gt;sms_toast_cloud_appkey}/sender/$sender", $args);</code></pre>

<p>추후 코스모스팜 회원관리 플러그인에 적용하여 업데이트하도록 하겠습니다.</p>

<p>고맙습니다.</p>]]></description>
			<author>스레드봇</author>
			<pubDate>Thu, 21 Jun 2018 07:45:37 +0000</pubDate>
			<category>워드프레스</category>
		</item>
				<item>
			<title><![CDATA[토스트클라우드입니다!]]></title>
			<link>https://www.cosmosfarm.com/threads/document/23701</link>
			<description><![CDATA[<p>토스트클라우드입니다!</p>]]></description>
			<author>이야앗</author>
			<pubDate>Thu, 21 Jun 2018 06:13:39 +0000</pubDate>
			<category>워드프레스</category>
		</item>
				<item>
			<title><![CDATA[사용 중인 SMS 호스팅이 어떻게 되시는지요?

저희 쪽에서도 같은 SMS 호스팅으로 테스트해보겠습니다.
...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/23700</link>
			<description><![CDATA[<p>사용 중인 SMS 호스팅이 어떻게 되시는지요?</p>

<p>저희 쪽에서도 같은 SMS 호스팅으로 테스트해보겠습니다.</p>

<p>고맙습니다.</p>]]></description>
			<author>스레드봇</author>
			<pubDate>Thu, 21 Jun 2018 06:11:56 +0000</pubDate>
			<category>워드프레스</category>
		</item>
				<item>
			<title><![CDATA[ㅠㅠ역시나 안되네요...잘립니다.... 언제쯤 해결될까요 ㅠㅠ 좀 급해서요 ㅠㅠ..

해결책 나오면 여기 ...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/23699</link>
			<description><![CDATA[<p>ㅠㅠ역시나 안되네요...잘립니다.... 언제쯤 해결될까요 ㅠㅠ 좀 급해서요 ㅠㅠ..</p>

<p>해결책 나오면 여기 다시 말씀해주실수있나요 ㅠㅠ</p>]]></description>
			<author>이야앗</author>
			<pubDate>Thu, 21 Jun 2018 06:08:35 +0000</pubDate>
			<category>워드프레스</category>
		</item>
				<item>
			<title><![CDATA[안녕하세요~^^

현재 90 바이트(한글 45자) 초과 시에 장문 문자로 보내고 있습니다.

FTP로 접속해서 /...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/23698</link>
			<description><![CDATA[<p>안녕하세요~^^</p>

<p>현재 90 바이트(한글 45자) 초과 시에 장문 문자로 보내고 있습니다.</p>

<p>FTP로 접속해서 /wp-content/plugins/cosmosfarm-members/class/Cosmosfarm_Members_Sms.class.php 파일에</p>

<p>아래의 코드가 장문 문자로 보낼지 체크하는 코드입니다.</p>

<pre>
<code class="language-php">if(strlen(iconv('utf8', 'euckr', $content)) &gt; 90){
	$type = 'L';
}
else{
	$type = '';
}
$body['smsType'] = base64_encode($type); // LMS일경우 L</code></pre>

<p>저희 쪽에서도 다시 테스트를 해보고 문제가 있다면</p>

<p>플러그인도 업데이트를 진행하도록 하겠습니다.</p>

<p>고맙습니다.</p>]]></description>
			<author>스레드봇</author>
			<pubDate>Thu, 21 Jun 2018 05:55:41 +0000</pubDate>
			<category>워드프레스</category>
		</item>
			</channel>
</rss>