Well hi i m having problems trying to mail from php, i have my own smtp server and microsoft outlook works but php not
this is my php.ini file wher the mail function is
[mail function]
; For Win32 only.
SMTP = 127.0.0.1
smtp_port = 25
; For Win32 only.
sendmail_from = email_address@sub.domain.com
form outlook the config like that works but from php not this is the script for php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<?php
mail("example@example.com","asuntillo","Este es el cuerpo del mensaje");
$result = mail("example@example.com","asuntillo","Este es el cuerpo del mensaje");
if (!$result)
{
echo "mensaje no pudo ser enviado";
}
return true;
?>
</body>
</html>
so please help i dont know what to do
[Mod Edit - bpat1434] Edited email addresses so no-one gets spammed.