When I try to mail, with php's mail function, no email is send, and it returns false. What can I do to solve this? Or is there another mail function?
Ewoud
When I try to mail, with php's mail function, no email is send, and it returns false. What can I do to solve this? Or is there another mail function?
Ewoud
I don't see you having a Free Hosting Account. Is this on an x10 server?
Nothing is always absolutely so.
This is the same with me and YES I have a free account on x10 Server!
Any help?
To save time - look at this help link at php.net...
http://php.net/manual/en/function.mail.php
I am setting up a CMS and having a similar problem with user registration verification e-mails not being sent out. I am in the process of checking things at the CMS end, but if there is an issue with outgoing php mail then it would save me a lot of time if you could let me know.
Thanks
Oh hosting server is starka.
Last edited by ebss85; 10-19-2010 at 03:17 AM.
Not sure how it works for X10 hosting but many (free) hosts disable the mail() function because it can easily be used for the wrong purposes.
If X10 allows mail(), read up on the mail function on php.net for example and be sure you did everything right, if the problem still persists, check for errors and chase them (post them here??), If you don't manage to fix it that way, mail() is probably disabled anyway
Hey,
maybe just check if the server allows mail()
upload this php file anywhere to your server, and open it.
it should return you the whole php-options of the server!
http://filebase1.ohost.de/files/6661732/phpinfo.zip
bye
I have a PHP script to test PHP 'mail' function
load it onto my 'paid' account on server 'skyy' and it sends the Email
and I receive it
Load the same script onto my 'free' account on server 'boru'
while it throws NO errors the Email goes into the bit buckit
never to be seen again
Using webmail I can send and receive from server 'boru'
Using my Email client I can send and receive from server 'boru'
PHP init looks to be setup for 'sendmail'
It works for we on boru with the following code:
$headers="From: auto@localhost.net"."\r\n"."X-Mailer: PHP/".phpversion();
$message=iconv("UTF-8","KOI8-R","А вот и рассылочка.....");
$check = mail( "aaaaaaa@list.ru",$message,$message,$headers );
echo $check;
as php manual says you MUST have 'From' header, it is not setup in php.ini on boru , there are also some restrictions regarding line length and encodings, read the manual.....
It worked for me without converting the message and the subject, except Russian was displayed as garbage
Last edited by garikr; 10-30-2010 at 01:41 AM.