Jump to content

maryum

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

maryum's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. if anyone wants the solution can chk the followiing url http://www.apachefriends.org/f/viewtopic.php?t=32089
  2. i m using mercury mail server can u please tell me how to configure it to send external mails
  3. i have used the following code <? ini_set("SMTP", "127.0.0.1"); ini_set("smtp_port", 25); $to = $_POST['to'];//xxx@yahoo.com $from = "admin@localhost"; $subj = $_POST['subj']; $msg = $_POST['msg']; $header = "MIME version: 1.0\r\n"; $header .= "Conttent-type:text/html;charset=ISO-8859-1\r\n"; $header .= "From:$from \r\n"; $header .= "Cc: $cc \r\n"; $header .= "Bcc: $bcc \r\n"; $header .= "Reply-to: <$from>\r\n"; $header .= "X-Mailer: PHP/".phpversion(); $mail_sent = mail($to, $subj, $msg, $header); echo $mail_sent ? "Mail sent" : "Mail failed"; exit;?> but following error occours Warning: mail() [function.mail]: SMTP server response: 553 We do not relay non-local mail, sorry. in D:\xampp\htdocs\mailing\srvrsendmail.php on line 18 Mail failed
  4. i have used this function but it sends mails to local users only, users created on localhost, but i want to send mail on a real address such as at abc@yahoo.com
  5. hi can anyone tell me how i can send mail to a real e-mail address using php. thnx
  6. if i tutrn it on than papche services stop, i have reinstalled it but the problem remains there
  7. hello i m trying to send mail through php the code is given below " <?php ini_set("SMTP", "127.0.0.1"); ini_set("smtp_port", 25); $to = $_POST['to']; $from = $_POST['from']; $subj = $_POST['subj']; $msg = $_POST['msg']; $header = "MIME version: 1.0\r\n"; $header .= "Conttent-type:text/html;charset=ISO-8859-1\r\n"; $header .= "From:$from \r\n"; $header .= "Cc: $cc \r\n"; $header .= "Bcc: $bcc \r\n"; $header .= "Reply-to: <$from>\r\n"; $header .= "X-Mailer: PHP/".phpversion(); ini_set("SMTP", "127.0.0.1"); ini_set("smtp_port", 25); mail($to, $subject, $body, $header); ?>" but following error occours "Warning: mail() [function.mail]: Failed to connect to mailserver at "127.0.0.1" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:\xampp\htdocs\mailing\srvrsendmail.php on line 19" can any one help me thnx
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.