regular Mail function and for some reason it sends the email but with it prepared to delete....

Posted on 2004-10-22
Last Modified: 2010-05-18
im using a regular Mail funciton in PHP and for some reason it sends the email but with it prepared to delete?

When i say prepared i mean i have imap on my own mail server with redhat 9 ....
Which i setup, i can send and recieve email perfectly fine and nothing ever does what this does.

I setup another server this one Windows 2000 and next to my other redhat server LITERALLY and setup the php file to use the sendmail to send out emails. Which works great i do remember i had trouble with it first working because i got the admin bounces stating no relaying but i fixed that. So anyway it sends out emails ok, but if i send out an email to a local account on the redhat machine and its an imap account i get it but with a line through it .....
if your familar with imap you'll know that line is there before you purge your emails.

why would i get the email ready and prepared to be purged ?
ive tried another computer with outlook to check it thinking it could be my computer and its not every email that i send out from the 2000 server sends with it ready to be purged ?
What the heck would cause that ?
could somehting in the email header cause this...

Please Help

Question by:aot2002
    LVL 1

    Accepted Solution

    Hi aot2002,

    Maybe the problem is with your php.ini, look for sendmail_path in that file and see if the value is right.

    I don't know witch MTA are you using but in qmail sendmail_path should point to  /var/qmail/bin/qmail-inject, and in others like Postfix or Sendmail to /usr/sbin/sendmail.

    If you are not running qmail do a updatedb && locate sendmail and put the right value in php.ini.

    From my experience: if configure doesn't found a valid mta inject program it sets the default value to null. And the SMTP_* values are only valid in windows machines.

    Look at for more info.
    LVL 1

    Author Comment

    let me check it out and i'll post it
    LVL 1

    Author Comment

    no everything looks ok in php.ini file

    anything else ?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
    If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

    877 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

    20 Experts available now in Live!

    Get 1:1 Help Now