By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,009 Members | 1,767 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,009 IT Pros & Developers. It's quick & easy.

php mail function

P: n/a
i have set up a feedback form that emails the results. my web host says
it will not work if the email is coming from nobody. this is their
answer "you are just going to have to learn to tell your scripts to
generate th emails as someone@yourdmain - not just as nobody."
does anyone know how to make this happen?

Jul 17 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Quinonez wrote:
i have set up a feedback form that emails the results. my web host
says it will not work if the email is coming from nobody. this is
their answer "you are just going to have to learn to tell your
scripts to generate th emails as someone@yourdmain - not just as
nobody."
does anyone know how to make this happen?


By using the fourth argument of the mail() function to send a "From:
someone@yourdomain" header.

See: http://www.php.net/manual/en/function.mail.php
JW

Jul 17 '05 #2

P: n/a
how would i set this up?

Jul 17 '05 #3

P: n/a
On 17 Dec 2004 08:15:54 -0800, Quinonez <qu******@gmail.com> wrote:
how would i set this up?

Nothing to set up, just include the from argument:

mail('to email', 'subject', 'message', 'From: yo********@yourdomain.com');
--
Thomas

SELECT date FROM wife WHERE bitching = '0' AND sex = '1'
Jul 17 '05 #4

P: n/a
ive set this up like so

<?
mail("qu******@gmail.com", "subject", "my message", "From:
we*******@masterscommissioneurope.com\r\n");
?>
but im still not recieving the emails.....
the host says its because it has to be SENT from an address on the
server...wouldnt this make that possible?

Jul 17 '05 #5

P: n/a
Is the server masterscommissioneurope.com?

Mark

Jul 17 '05 #6

P: n/a
yea i got it ....thanks

Jul 17 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.