0
Ionic을 사용하여 모바일 앱을 만들고 있습니다. 응용 프로그램에서 암호 기능을 잃어 버렸습니다. 사용자가 등록 된 이메일을 추가하고 비밀번호를 재설정 할 수있는 링크가 하나있는 이메일 입력란이 1 개 있습니다. DB에 사용자 변수를 확인하고 코드PHP 이메일 스크립트 - 언제든지 ID를 추가 하시겠습니까? = 시작 후 텍스트 2 자 수가 잘림
$postdata = file_get_contents("php://input");
if (isset($postdata)) {
$request = json_decode($postdata);
$email = $request->email;
if ($email != "") {
echo "Server returns: " . $email;
}
else {
echo "Empty username parameter!";
}
$headers = "From: [email protected]" . PHP_EOL;
$headers .= "Reply-To: $email" . PHP_EOL;
$headers .= "MIME-Version: 1.0" . PHP_EOL;
$headers .= "Content-type: text/plain; charset=utf-8" . PHP_EOL;
$headers .= "Content-Transfer-Encoding: quoted-printable" . PHP_EOL;
$message = 'http://proittechnology.com/dev/stylr/changePasswordEdit.php?id='.$email;
$send = mail($email, $subject, $message, $headers);
if ($send)
$mailReturns = "Mail sent successfully.";
else
$mailReturns = "Mail sent failed.";
echo $mailReturns;
내 관심 아래 자신의 data.please 검사를 잡는다 = 후
http://proittechnology.com/dev/stylr/changePasswordEdit.php?id=
아래 코드 나는 $ 이메일 변수를 추가 해요 (같음) 기호를 확인하세요 = (equal to sign) 변수 $ email의 2 글자를 시작하여 OUTLOOK으로 이메일을 보낼 때마다 Gmail의 = 기호가 잘리지 않습니다.
는'$ 메시지 = 'http://proittechnology.com/dev/stylr/changePasswordEdit.php?id='.urlencode ($ 이메일) 코드 입니다' –
출력 idwww.harshad.info %? 40gmail.com –
ID 뒤에 = 부호 및 @ 변경 % 40 –