可能重复:
通过php发送邮件的示例代码
// In case any of our lines are larger than 70 characters, we should use wordwrap()
$message = wordwrap($message, 70);
// Send
mail('caffeinated@example.com', 'My Subject', $message);
?>
是否有任何代码可以通过php代码发送sms。如果没有选项i php。通过php免费发送短信的解决方案是什么?我该怎么做呢。尤其是在印度。
这是我第一次编写PHP代码来发送短信
SMPP短消息对等协议通过onlinecity php-smpp库从gethub:**,我使用了下面发送短信的代码,但是它唯一的响应是一个错误**返回值是错误0x34 (ESME_RINVDLNAME)无效的分发列表名。**所以请帮助我解决这个错误。
<?php
$GLOBALS['SMPP_ROOT'] = dirname(__FILE__); // assumes this file is in the root
require_once $GLOBALS['SMPP_ROOT'].'/protocol/s