2

Trying to send sms text message from php to Verizon phone number.

Message is sent successfully (echo "sent") but it does not show in the phone.

$to      = '[email protected]';
subject = 'the subject';
$message = 'hello';
$headers = "From: [email protected]\r\n";
$headers .= "Reply-To: [email protected]\r\n";
$headers .= "Return-Path: [email protected]\r\n";
$headers .= "CC: [email protected]\r\n";
$headers .= "BCC: [email protected]\r\n";

if(mail($to, $subject, $message, $headers))
    echo "sent";
else 
    echo "notsent";

This method also sends emails but they drop into spam. Both issues might be related.

Any idea or opinion?

casillas
  • 16,351
  • 19
  • 115
  • 215

0 Answers0