I have the following code in send_email.php

<body>
		
	  <?php	 
      // send mail code
           
      $name=$_GET["name"];
      $email=$_GET["email"];
      $message=$_GET["message"];
      
      ?>
      
      
      Name	  :  <?php echo $name; ?><br>
      email   :  <?php echo $email;?><br>
      message :  <?php echo $message;?><br>
      
	  
      <?php
	  //$to = 'david_yg20@yahoo.com';
	  $to = 'garudamedia@localhost';
	  $subject = 'e-mail feedback';
	  
	  ini_set('sendmail_from', 'admin@localhost');
	  ini_set('SMTP', 'localhost');
	  //ini_set('SMTP', 'smtp.mail.yahoo.co.id');
	  //ini_set('smtp_port','25');
	  
	  $message2 = "Name	  : " + $name + "email   : " + $email + "message : " + $message;  
	  
	  mail($to, $subject, $message2);
	  ?>
      Telah di kirim!
      
      
      
    
      
</body>
</html>

It suppose to send me feedback message regarding my webpage to my garudamedia@localhost e-mail.

1. It did work accept that the message only give me "0" number, why is that? What is the correct syntax ?

2. I tried another option which is to send the feedback e-mail to my david_yg20@yahoo.com e-mail. Yet, I have not find the correct codes to send the feedback message to my yahoo mail. I keep receiving 503 yahoo mail error authentication (or something similars). What is the correct syntax to send my feedback e-mail to my yahoo mail ?

Thanks.

I'm assuming your issue is on message2:

//$message2 = "Name	  : " + $name + "email   : " + $email + "message : " + $message;  
//change that to this  (+ is javascript) (. is php):
$message2 = "Name: " . $name . " email: " . $email . " message : " . $message;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.