How I can Change Hostname in Sendmail for PHP

Hi team,

I want to change hostname with domain in email header - “mailed-by”

If I send Email using RoundCube webUI, then in the Email header display “mailed-by:Domainname”

And If I send Email using PHP code “/usr/sbin/sendmail -t -i” then in the Email header display “mailed-by:HostName”

is there any setting to use domain name like "mail.domain.com or other setting related to “/usr/sbin/sendmail -t -i”

Thanks

php_admin_value[upload_tmp_dir] = /home/jaap/tmp

php_admin_value[session.save_path] = /home/jaap/tmp

php_admin_value[open_basedir] = /home/jaap/web/domain.com/public_html:/home/jaap/web/jaap.xyz/private:/home/jaap/web/domain.com/public_shtml:/home/jaap/tmp:/var/www/html:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/phppgadmin:/etc/roundcube:/var/lib/roundcube:/tmp:/bin:/usr/bin:/usr/local/bin:/usr/share:/opt

php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f [email protected]

If you use php-fpm it should be allready working like this