If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > PHP > code not working..

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-19-11, 13:59
Vinay007 Vinay007 is offline
Registered User
 
Join Date: May 2011
Posts: 11
code not working..

<?php

ini_set("SMTP","smtp.gmail.com");
$from = "abcd@gmail.com";
$to = "abcd@gmail.com"; //here i have entered this id but its not working wen i wrote my email id and host and port n everything..
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";

$host = "abcd.org";
$port = "222";
$username = "abcd";
$password = "def";
$header = "From: ".$from;

mail($to,$subject,$body,$header);

die();
?>

Warning: mail() [function.mail]: SMTP server response: 530 5.7.0 Must issue a STARTTLS command first. v6sm1818532pbc.27 in C:\xampp\htdocs\xampp\mail1.php on line 15
Reply With Quote
  #2 (permalink)  
Old 06-12-11, 02:35
Backslider Backslider is offline
Banned
 
Join Date: Jun 2011
Posts: 40
ini_set("SMTP","smtp.gmail.com");

You are FUNNY!!!!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On