PHP mail() function


#1

Hello,
I’m trying to send emails through my website and I was wondering it there is a way for me to make sure the persone reciving it gets my own email @mydomain.com instead of the on @cognac.dreamhost.com

is it possible?

thanks

J


#2

no, because you use an shared host

Discount for Brazilian peoples, coupon BRAZIL02 -$55 off.
Desconto para Brasileiros, cupom BRAZIL02 -$55 menos.


#3

You need to use a header that has a from field. So the php mail would look something like below:

$to=‘example@example.com’;
$subject=‘subject’;
$body=‘A message’;
$header=‘From: example@example.com’;
mail ( $to, $subject, $body, $header);

Silk