0

Suppose i have a UNIX system with an email section configured on php.ini that sets the sendmail_from to info@mysoft.com

It is possible to send an email with the PHP mail func to user1@gmail.com from user2@gmail.com?

I want the user1 to see in the FROM section of the receive email the user2 emails not he info@mysoft.com configured on the php.ini so when the user1 tries to reply the email it actually replies to user1@gmail.com

Is this possible with that function or any other? or even any other service?

bitgandtter
  • 2,179
  • 6
  • 31
  • 60

1 Answers1

1

yes. you can see example 2 at official documentation

http://php.net/manual/en/function.mail.php

need to set additional header

ciro
  • 771
  • 1
  • 8
  • 30