Urgent Help needed with PHP mail function

Posted on 2005-04-22
Last Modified: 2010-04-20
Hello, Experts.

I recently bought a linux based dedicated server for my project and I am experiencing very wierd problem with PHP mail function.

Using the PHP mail() function, I can only send mails to successfully.  When I tried to send mails outside address, nothing happens.
Current mail setting in the php.ini is (which is located in \etc\php.ini folder).  Should I change something else in my domain directory or something else?

Thanks for your help.

[mail function]
; For Win32 only.
SMTP = localhost

; For Win32 only.
;sendmail_from =

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = /usr/sbin/sendmail -t -i
Question by:matthewyea
    1 Comment
    LVL 6

    Accepted Solution

    I don't know how to help you fix php's built-in mail function.  I used to mess with it and it always gave me headaches.

    I'd suggest trying PHPMailer.  Its very easy to setup and integrate into php and it works much better IMO.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
    Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now