je suis débutant dans php je veux envoyer un e-mail depuis mon code. j'ai configuré mon fichier php.ini

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
[mail function]
; For Win32 only.
; <a href="http://php.net/smtp" target="_blank">http://php.net/smtp</a>
SMTP =smtp.topnet.tn
 <a href="http://php.net/smtp-port" target="_blank">http://php.net/smtp-port</a>
smtp_port = 25
voilà mon code php
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 
<?php
 
$header = "From: \"Welcome2Tunisia\"<W2T@business_technology_tn.com>";
$header.= "Reply-to: \"Welcome2Tunisia\" <W2T@business_technology_tn>";
$header.= "MIME-Version: 1.0";
mail('mon email',"hello","premier test",$header);
 
 
 ?>
mais  le problème de smtp s'affiche 
Warning: mail() [function.mail]: Failed to connect to mailserver at "smtp@topnet.tn" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\index.php on line 6
 
svp aide