+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Mail function doesnt work

  1. #1
    ewoudwempe52 is offline x10Hosting Member ewoudwempe52 is an unknown quantity at this point
    Join Date
    Oct 2010
    Posts
    1

    Mail function doesnt work

    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

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: Mail function doesnt work

    I don't see you having a Free Hosting Account. Is this on an x10 server?
    Nothing is always absolutely so.

  3. #3
    oneman.patrick30 is offline x10Hosting Member oneman.patrick30 is an unknown quantity at this point
    Join Date
    Oct 2010
    Posts
    5

    Re: Mail function doesnt work

    This is the same with me and YES I have a free account on x10 Server!
    Any help?

  4. #4
    bdistler's Avatar
    bdistler is offline x10 Lieutenant bdistler is an unknown quantity at this point
    Join Date
    May 2010
    Location
    Catalina AZ USA
    Posts
    349

    Re: Mail function doesnt work

    To save time - look at this help link at php.net...

    http://php.net/manual/en/function.mail.php

  5. #5
    ebss85 is offline x10Hosting Member ebss85 is an unknown quantity at this point
    Join Date
    Oct 2010
    Posts
    1

    Re: Mail function doesnt work

    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.

  6. #6
    bdistler's Avatar
    bdistler is offline x10 Lieutenant bdistler is an unknown quantity at this point
    Join Date
    May 2010
    Location
    Catalina AZ USA
    Posts
    349

    Re: Mail function doesnt work

    Quote Originally Posted by ebss85 View Post
    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.
    Do you receive a error ????
    Is it Emails are sent (from the server) but never get to the user ????
    Do you have a test Email scrip(PHP) that works ????
    Can you add BC: to self ????

    Tell us more and we can help you more

  7. #7
    stef_63686 is offline x10Hosting Member stef_63686 is an unknown quantity at this point
    Join Date
    Oct 2010
    Posts
    18

    Re: Mail function doesnt work

    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

  8. #8
    manuel69 is offline x10Hosting Member manuel69 is an unknown quantity at this point
    Join Date
    Aug 2010
    Posts
    4

    Re: Mail function doesnt work

    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

  9. #9
    bdistler's Avatar
    bdistler is offline x10 Lieutenant bdistler is an unknown quantity at this point
    Join Date
    May 2010
    Location
    Catalina AZ USA
    Posts
    349

    Re: Mail function doesnt work

    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'

  10. #10
    garikr's Avatar
    garikr is offline x10Hosting Member garikr is an unknown quantity at this point
    Join Date
    Aug 2009
    Posts
    46

    Re: Mail function doesnt work

    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.

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 2
    Last Post: 09-08-2010, 01:50 PM
  2. PHP MAIL function only used to work
    By dhennen in forum Free Hosting
    Replies: 1
    Last Post: 07-29-2010, 06:18 PM
  3. php mail doesnt work
    By selcane in forum Free Hosting
    Replies: 2
    Last Post: 03-30-2009, 04:54 PM
  4. mail() function still does not work.
    By Moezzie in forum Free Hosting
    Replies: 6
    Last Post: 09-30-2007, 11:35 AM
  5. mail() function does not work with hotmail.
    By avedillowebmaster in forum Free Hosting
    Replies: 10
    Last Post: 08-21-2006, 11:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers