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
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.roweb@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>
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
Recent comments
18 hours 14 min ago
23 hours 19 min ago
1 day 3 hours ago
1 day 5 hours ago
1 day 19 hours ago
1 day 19 hours ago
2 days 47 min ago
2 days 7 hours ago
2 days 8 hours ago
2 days 9 hours ago