problems sending mail() with php

Discussion in 'HOWTO-Related Questions' started by mavgh1, Mar 25, 2006.

  1. mavgh1

    mavgh1 New Member

    I have a SuSE Server with a domain.ro and some subdomains.domain.ro
    When I use function mail() to send emails from my domain and subdomains the From : looks like

    From : www daemon apache <[email protected]>
    From : www daemon apache <[email protected]>

    Does anyone now what changes to make to have only email address in header(I don't want to use from header in php script).
    Thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. mavgh1

    mavgh1 New Member

    not from php script

    I dont want to use php script .
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    But your original question was "problems sending mail() with php".

    Please explain what you want to do and in which programming language do you want to use the mail() function.
     
  5. mavgh1

    mavgh1 New Member

    maybe I was not very clear

    I dont want to use From : in my php script
    I put in php.ini sendmail_path = /usr/sbin/sendmail -t -i [email protected]
    Or in main.conf in postfix i made a
    sender_canonical_maps = hash:/etc/postfix/sender_canonical
    In sender_canonical i put
    [email protected] [email protected]

    The result is the same the from looks like
    From : www daemon apache <[email protected]>
    I dont want to see www daemon apache only <[email protected]>
     
  6. mavgh1

    mavgh1 New Member

Share This Page