Ver Mensaje Individual
  #2 (permalink)  
Antiguo 25/10/2006, 07:52
Avatar de AbdelioR
AbdelioR
 
Fecha de Ingreso: septiembre-2006
Ubicación: Tarragona
Mensajes: 926
Antigüedad: 17 años, 7 meses
Puntos: 8
Como configurar servidor de correo?

Aprovecho este post para pedir algo de ayuda, ya que estoy intentando configurar el servidor de correo en mi pc... y me he instalado argosoft mail server, pero no me va...

Este es el script que uso desde mi pagina para el formulario de contacto:

Código PHP:
Código PHP:
<?php
$oemail 
"[email protected]"
if(
$_GET['form'] == "submit")
{
$email $_POST['mail'];
$subject $_POST['subject'];
$msg $_POST['message'];
if(!
$email)
{
echo 
"<b>General error :</b> You did not enter a email <hr>";
}
elseif(!
$subject)
{
echo 
"<b>General error :</b> You did not enter a subject <hr>";
}
elseif(!
$msg)
{
echo 
"<b>General error :</b> You did not enter a message <hr>";
}
else
{
echo 
"Your contact form has been submited <hr>";
mail("$oemail""contact form : $subject""email : $email 
message : $msg "
);
}
}
?>
                                    <form method="post" action="?form=submit">
<table width="50%" align="center">
<tr><td class="texto_pagina">E-mail:</td>
<td class="texto_pagina"><input type="text" name="mail" style="width:415px"></td></tr>
<tr>
  <td class="texto_pagina">Tema:</td>
  <td class="texto_pagina"><input type="text" name="subject" style="width:415px"></td></tr>
<tr>
  <td valign="top" class="texto_pagina">Mensaje:</td>
  <td class="texto_pagina"><textarea name="message" cols="50" rows="10"></textarea></td></tr>
<tr><td class="texto_pagina"> </td>
<td class="texto_pagina"><div align="center">
  <input type="submit" value="Enviar">
</div></td></tr>
</table>
                                    </form>
Cuando lo pruebo desde localhost, me lanza este error:

Código PHP:
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:wampwwwcontacto.php on line 612

Pero mi php.ini creo que lo tengo bien puesto :s

---

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
sendmail_from = [email protected]

----


Alguien puede decirme donde podria estar el problema? en la configuracion del argosoft? o dnd :S

Muchas gracias de antemano