arkdaslar awbs disari email göndermiyor ama sunucu icine gönderiyor mesela hotmail,gmail,yahoo gibi emailere göndermermiyor...
denemedigim sey kalmadi...
yanliz smtp_config.php icindeki ayarlar anlamadim...
orda sadece portu degistirmemiz yeterlimidir.
kodlar bunlardir...
Alıntı
<?php
$smtp=new smtp_class;
$this_smtp_config = @mysql_fetch_array(mysql_query("SELECT * FROM module_types WHERE name='smtp'"));
$smtp->host_name=$this_smtp_config['config1']; /* Change this variable to the address of the SMTP server to relay, like "smtp.myisp.com" */
$smtp->host_port=25; /* Change this variable to the port of the SMTP server to use, like 465 */
$smtp->ssl=0; /* Change this variable if the SMTP server requires an secure connection using SSL */
$smtp->localhost=""; /* Your computer address */
$smtp->direct_delivery=0; /* Set to 1 to deliver directly to the recepient SMTP server */
$smtp->timeout=10; /* Set to the number of seconds wait for a successful connection to the SMTP server */
$smtp->data_timeout=20; /* Set to the number seconds wait for sending or retrieving data from the SMTP server.
Set to 0 to use the same defined in the timeout variable */
$smtp->debug=0; /* Set to 1 to output the communication with the SMTP server */
//!!!!SETTING DEBUG ON IS A SECUTITY RISK!!!!
//!!!!YOUR SMTP PASSWORD WILL BE VISIBLE TO USERS WHEN SMTP RUNS!!!!
//!!!!USE AT YOUR OWN RISK!!!!
$smtp->html_debug=0; /* Set to 1 to format the debug output as HTML */
$smtp->pop3_auth_host=$this_smtp_config['config1']; /* Set to the POP3 authentication host if your SMTP server requires prior POP3 authentication */
$smtp->user=$this_smtp_config['config2']; /* Set to the user name if the server requires authetication */
$smtp->realm=""; /* Set to the authetication realm, usually the authentication user e-mail domain */
$smtp->password=$this_smtp_config['config3']; /* Set to the authetication password */
$smtp->workstation=""; /* Workstation name for NTLM authentication */
$smtp->authentication_mechanism=""; /* Specify a SASL authentication method like LOGIN, PLAIN, CRAM-MD5, NTLM, etc..
Leave it empty to make the class negotiate if necessary */
?>