Results 1 to 2 of 2
  1. #1
    Join Date
    May 2011
    Posts
    11

    Unanswered: 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

  2. #2
    Join Date
    Jun 2011
    Posts
    40
    ini_set("SMTP","smtp.gmail.com");

    You are FUNNY!!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •