简体   繁体   English

无法设置短信php

[英]having trouble setting up sms php

I cant seems to send text message using php 我似乎无法使用php发送短信

this code doesn't work but everything shows up $text['pn'] is the phone number (##########) and $text['pp'] is provider (@myboostmobile.com) 此代码无效,但所有内容均显示为$ text ['pn']是电话号码(###########),而$ text ['pp']是提供者(@ myboostmobile.com)

$text = mysql_fetch_assoc(mysql_query("SELECT * FROM `users` WHERE username='plmexico'  "));
     $textto = $text['pn'].$text['pp'];
mail($textto, "", "http://www.logamp.com/mobile/vmusic/view.php?id=", "From: notification <not@logamp.com>\r\n");

when i do it this way 当我这样做

mail("##########@myboostmobile.com", "", "Your packaged has arrived!", "From: test test <test@test.name>\r\n");

it works fine 它工作正常

Maybe, 也许,

$textto = $text['pn'] . '@' . $text['pp'] . '.com';

Verify the contents of textto . 验证textto的内容。

Edit: Basically the goal here is, when you have two similar lines of code and only one of them is broken, you have to move the broken line of code slowly closer to other one to pinpoint where the problem really is. 编辑:基本上,这里的目标是,当您有两行相似的代码行并且其中只有一行被破坏时,您必须将这行代码的行慢慢移近另一行,以查明问题出在哪里。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM