Click here to Skip to main content
15,886,519 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to send sms from my email id to phone.I am using phpmailer for this task.
The output i am getting on my browser is bool(true)

And the email id from where i am sending the sms getting failure mail which contain the following data

CSS
Delivery to the following recipient failed permanently:

     7696889076@tatadocomo.com

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain tatadocomo.com by mail5.tatadocomo.com. [59.161.166.190].

The error that the other server returned was:
550 5.1.1 Recipient address not found: The User you are trying to send the message is not found.  Check the email address and re-send the message.


.

The code i have written for sending sms is
XML
<?php
if(isset($_REQUEST['send']))
{
$subject =$_POST['subject'];
     $message = $_POST['message'];

    require_once('phpmailer/class.phpmailer.php');

$mail             = new PHPMailer();

$mail->IsSMTP();
$mail->SMTPAuth   = true;
$mail->SMTPSecure = "tls";
$mail->Username   = "kakminder@gmail.com";
$mail->Password   = "9816537568";
$mail->Host       = "smtp.gmail.com";
$mail->Port       = 587;

$mail->SetFrom('kakminder@gmail.com', 'akminder');
$mail->Subject    = 'hello';
$mail->Body    = 'this is a testing mail';
$mail->AddAddress('9888418115@vodafone.co.in','mandeep');

var_dump( $mail->send() );
   }
     ?>
     <html>
     <form name="frm" method="post" action="">
     <table><tr><td><input type="text" name="subject" placeholder="enter msg here" /></td><td><input type="text"name="message" placeholder="enter message" /></td></tr>
     <div><input type="submit" name="send" value="send" /></div></form>
     </html>




I dont know why my sms's are nt getting sent.pls help.

Thanks in advance
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900