Usar mail() PHP

markosar200294

New Member
Messages
56
Reaction score
0
Points
0
Hola:
Se que este problema ha surgido antes, pero no tengo muy clara la solucion. Intento crear una pagina que tenga un formulario de contacto usando la function mail() en PHP. El caso es que no me funciona, me devuelve falso, ¿Hay que solicitar la activacion de esta funcion?¿donde?¿existe otro sistema que tengamos que usar?.
Muchas gracias a los que sabeis (y a los que no sabeis tanto tambien)
 

medina

x10 Addict
Community Support
Messages
1,815
Reaction score
7
Points
38
Si quieres que te ayudemos con el codigo tienes que poner el codigo para ver en que esta mal
 

markosar200294

New Member
Messages
56
Reaction score
0
Points
0
El codigo no dabe estar mal, lo he copiado, ademas me responde, "Mail Not Sent". Es este:
if(mail("markosar2002@yahoo.es", "Test Subject", "Test Body", "From: sender@sender.com"))
echo "Mail Sent";
else
echo "Mail Not Sent";
Eso de que hay que avisar para que te permitan enviar mails, ¿es cierto?
gracias
 

markosar200294

New Member
Messages
56
Reaction score
0
Points
0
He accedido a squirrel y todos lo mensajes que he enviado a <xxxxxxxxxx@yahoo.es> me aparecen aqui. Al parecer no es capaz de enviarlos, no se porque. Llevo unos 15 dias intentandolo pero no hay forma. Por favor, alguien que me pueda ayudar¿???????

Este es el mensaje que aparece en squirrel
Hi. This is the qmail-send program at outgoing.x10hosting.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<xxxxxxxxxx@yahoo.es>:
Connected to 77.238.177.9 but greeting failed.
Remote host said: 421 4.7.1 [TS03] All messages from 173.236.28.162 will be
permanently deferred; Retrying will NOT succeed. See
http://postmaster.yahoo.com/421-ts03.html
I'm not going to try again; this message has been in the queue too long.

--- Below this line is a copy of the message.

Return-Path: <marcosbw@web8.vital.x10hosting.com>
Received: (qmail 22636 invoked by uid 508); 10 Oct 2010 19:09:29 -0000
Received: from 10.33.248.82 by outgoing.x10hosting.com (envelope-from
<marcosbw@web8.vital.x10hosting.com>, uid 507) with qmail-scanner-2.08st
(clamdscan: 0.96/12116. spamassassin: 3.3.1. perlscan: 2.08st.
Clear:RC:1(10.33.248.82):SA:0(-2.9/3.0):.
Processed in 1.04439 secs); 10 Oct 2010 19:09:29 -0000
X-Spam-Status: No, hits=-2.9 required=3.0
Received: from unknown (HELO web8.vital.x10hosting.com) (10.33.248.82)
by outgoing.x10hosting.com with SMTP; 10 Oct 2010 19:09:28 -0000
Received: from marcosbw by web8.vital.x10hosting.com with local (Exim 4.69)
(envelope-from <marcosbw@web8.vital.x10hosting.com>)
id 1P51qC-0000vF-Ui
for xxxxxxxxxx@yahoo.es; Sun, 10 Oct 2010 15:45:52 -0400
To: xxxxxxxxxx@yahoo.es
Subject: Formulario recibido
Message-Id: <E1P51qC-0000vF-Ui@web8.vital.x10hosting.com>
From: marcosbw@web8.vital.x10hosting.com
Date: Sun, 10 Oct 2010 15:45:52 -0400
 

medina

x10 Addict
Community Support
Messages
1,815
Reaction score
7
Points
38
Estas en el servidor Chopin?, escuche que este tiene problemas para este.....
 

alvaro_rodrigo1889

New Member
Messages
2
Reaction score
0
Points
0
Top