+ Reply to Thread
Results 1 to 10 of 10

Thread: PHP mail function

  1. #1
    comprehendi is offline x10Hosting Member comprehendi is an unknown quantity at this point
    Join Date
    Apr 2010
    Posts
    3

    PHP mail function

    how to make mail function work on this hosting site..........i mean what's the full process including ............ setting up f mail server if it's required

  2. #2
    comprehendi is offline x10Hosting Member comprehendi is an unknown quantity at this point
    Join Date
    Apr 2010
    Posts
    3

    Re: PHP mail function

    please help

  3. #3
    techairlines's Avatar
    techairlines is offline x10 Flyer techairlines has much to be proud oftechairlines has much to be proud of
    Join Date
    Jul 2009
    Location
    New York City
    Posts
    2,853

    Re: PHP mail function

    Are you trying to make a script that will send an email such as a contact form?

    The PHP website has a detailed guide on how to use PHP sendmail function: http://php.net/manual/en/function.mail.php

    Some other useful guides:
    http://www.thesitewizard.com/archive/feedbackphp.shtml
    http://email.about.com/od/emailprogr...PHP_Script.htm
    Last edited by techairlines; 05-03-2010 at 01:27 AM.
    Best regards,
    Brian Yang - TechAirlines


    How am I doing? Click the star button at the bottom left to rate this post. Thanks.
    Terms of Service | Account Portal | Wiki

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

    Re: PHP mail function

    Hello i'm sorry if i posted in wrong place but i've been comfused..
    I'm using a form and i 'm using the mail() function but i don't take any message.
    I've tried everything but nothing, i have a free hosting account.what can i do???
    thanks a lot..
    Last edited by aioloswebdesign56; 08-29-2010 at 03:13 PM.

  5. #5
    patriotseminar72 is offline x10Hosting Member patriotseminar72 is an unknown quantity at this point
    Join Date
    Aug 2010
    Posts
    20

    Re: PHP mail function

    Quote Originally Posted by aioloswebdesign56 View Post
    Hello i'm sorry if i posted in wrong place but i've been comfused..
    I'm using a form and i 'm using the mail() function but i don't take any message.
    I've tried everything but nothing, i have a free hosting account.what can i do???
    thanks a lot..
    This website has a code thats reallyefficient and well made. Its really easy to use too and is secure. http://formtoemail.com/

    Just make sure you read through the read me and what not, but you could use it if you can't figure out anything else.

  6. #6
    aioloswebdesign56 is offline x10Hosting Member aioloswebdesign56 is an unknown quantity at this point
    Join Date
    Aug 2010
    Posts
    2

    Re: PHP mail function

    my friend thank you for your reply but my contact.php is working, i've tested several times.The function mail() doesn't work here in stoli, and i'm asking because i've read in other posts that maybe i have to activate 'something' in a login page that i cannot found.
    maybe i'm wrong but this contact form i'm using it in other website in other server and i haven't any problem, tha't why i'm asking the opinion of a moderator.
    but thank you very much!Do you want to post you the code to take a look???

  7. #7
    luoli29 is offline x10Hosting Member luoli29 is an unknown quantity at this point
    Join Date
    Sep 2010
    Posts
    1

    Angry Re: PHP mail function

    I don't think the server support mail() function, because I tried the same code at another website and it works!

  8. #8
    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: PHP mail function

    Look. You refuse to supply the code and the input forum. We cannot help you.

    The are several things that be going wrong, none of which is "mail() does not work on the server".

    For one, your code can assume register globals is turned on. So it will work on some servers, but not on most others, including x10hosting. That is not "the server's fault", it is the fault of old and outmoded code.

    For another, your code might not be setting the "From" headers properly. The mail servers on x10hosting can be finicky, mainly to prevent spam and having the servers put on blacklists.
    Nothing is always absolutely so.

  9. #9
    wit_vivek is offline x10Hosting Member wit_vivek is an unknown quantity at this point
    Join Date
    Feb 2011
    Posts
    1

    Re: PHP mail function

    First you need ask your host if SMTP is available or not
    then here is the source for sending mails
    http://www.vivekmodi.com/2011/01/sending-mail-in-php/

  10. #10
    cybrax's Avatar
    cybrax is offline x10 Elder cybrax is on a distinguished road
    Join Date
    Aug 2009
    Location
    UK
    Posts
    699

    Re: PHP mail function

    Some problems are universal and encountered by new users on a regular basis and so a quick read through previous posts often produces solution or even the wealth of information in the Tutorial section is worth exploring.
    The code must flow.
    Project 157: Latest UK Jobs direct to your mobile phone
    New Domain under construction: Lovelogic.net
    home for some new projects that we can't keep here ;)


+ Reply to Thread

Similar Threads

  1. Regarding PHP mail() function
    By rohitsinha54 in forum Feedback and Suggestions
    Replies: 2
    Last Post: 03-30-2010, 08:37 AM
  2. PHP Mail function
    By juuso94 in forum Free Hosting
    Replies: 2
    Last Post: 03-25-2010, 10:08 AM
  3. Mail Function
    By bashbro900 in forum Free Hosting
    Replies: 8
    Last Post: 06-22-2009, 10:25 PM
  4. Mail Function:
    By zubair12 in forum Free Hosting
    Replies: 10
    Last Post: 06-07-2009, 03:49 AM
  5. Using mail() Function
    By wrhs2002 in forum Free Hosting
    Replies: 2
    Last Post: 10-05-2007, 02:37 AM

Tags for this Thread

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