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
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.
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]>
solved I solved my problem.Now default (without from in php script) from server configuration From : [email protected] for my domain From : [email protected] for my subdomains Thanks anyway