How send email?
Posted by: qqq (---.sz.orbinet.bg)
Date: February 26, 2008 12:18AM

Sorry to ask..
How send email.Help me.
1.my php.ini is:
....
[mail function]
; For Win32 only.
SMTP = smtp.bnhs.nl
smtp_port = 25
....
2.emailtest.php:
<?php

$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: dgghn@yahoo.com' . "\r\n";
mail("dgghn@yahoo.com", "rrr","ddddd",$headers);

?>

but:
Warning: mail() [function.mail]: Failed to connect to mailserver at
"smtp.wlink.com.np" port 25, verify your "SMTP" and "smtp_port" setting in php.ini
or use ini_set() in C:\wamp\www\mailtest.php on line 15

Options: ReplyQuote
Re: How send email?
Posted by: yfastud (Moderator)
Date: February 26, 2008 02:55AM


Options: ReplyQuote
Re: How send email?
Posted by: toivo (203.19.130.---)
Date: February 26, 2008 02:57AM

Hi,

There is more than one php.ini in the system. Are you sure you modified the right one which Apache uses? You also need to restart Apache before changes in php.ini take effect.

Regards,

toivo
Sydney, Australia



Edited 1 time(s). Last edit at 02/26/2008 02:58AM by toivo.

Options: ReplyQuote
Re: How send email?
Posted by: qqq (---.sz.orbinet.bg)
Date: February 26, 2008 07:56AM

hi toivo

1. yes , i have 2 php.ini :
C:\wamp\bin\php\php5.2.5\php.ini
C:\wamp\bin\apache\apache2.2.6\bin\php.ini

Every php.ini have:
SMTP = smtp.wlink.com.np
smtp_port = 25
2.yes, i restart Apache

But :"..Failed to connect to mailserver at "smtp.wlink.com.np..."

Options: ReplyQuote
Re: How send email?
Posted by: toivo (---.belrs4.nsw.optusnet.com.au)
Date: February 26, 2008 08:45AM

Hi,

Can you telnet to the TCP port 25 on that mailserver? It responded with its mail banner when I tried the following from the command prompt:

telnet smtp.wlink.com.np 25

If you cannot connect to it, the WAMP server won't be able to either.

Regards,

toivo
Sydney, Australia

Options: ReplyQuote
Re: How send email?
Posted by: coolboy637 (82.194.62.---)
Date: February 27, 2008 10:47AM

HI

teach me,how can i slove this error

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO)

My SQL Error: Access denied for user 'ODBC'@'localhost' (using password: NO)

Options: ReplyQuote
Re: How send email?
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: February 27, 2008 10:52AM

you use it like this(just fill in the details)

MySQL_connect(("host","user","password if u have one"winking smiley;




this below should do you

MySQL_connect("localhost", "root"winking smiley;

Options: ReplyQuote


Sorry, only registered users may post in this forum.