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 <user@domain.ro>
    From : www daemon apache <subdomain@domain.ro>

    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

  3. mavgh1

    mavgh1 New Member

    not from php script

    I dont want to use php script .
     
  4. till

    till Super Moderator

    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 web@domain.ro
    Or in main.conf in postfix i made a
    sender_canonical_maps = hash:/etc/postfix/sender_canonical
    In sender_canonical i put
    wwwrun@domain.ro web@domain.ro

    The result is the same the from looks like
    From : www daemon apache <web@domain.ro>
    I dont want to see www daemon apache only <web@domaim.ro>
     
  6. mavgh1

    mavgh1 New Member

    solved

    I solved my problem.Now default (without from in php script) from server configuration
    From : web@domain.ro for my domain
    From : user@domain.ro for my subdomains

    Thanks anyway
     
    Last edited: Mar 26, 2006

Share This Page