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

How will I use mail function ?

P: n/a
I am developing a php script that automatically send email to the
inputed email addresses. Can you help?

Thanks
Tim

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-mail-fun...ict178639.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=600416
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"rock72" <Us************@dbForumz.com> wrote in message
news:41**********@alt.athenanews.com...
I am developing a php script that automatically send email to the
inputed email addresses. Can you help?

Thanks
Tim

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-mail-fun...ict178639.html
Visit Topic URL to contact author (reg. req'd). Report abuse:
http://www.dbForumz.com/eform.php?p=600416


http://www.php.net/manual/en/ref.mail.php
Jul 17 '05 #2

P: n/a
First make sure that "sendmail_path" is set to point to your sendmail
installation.

Then in your code say

mail($to, $subject, $body)

Where $to contains the address, $subject is your subject line, and
$body contains the text of your message.

For further info see the manual page.

rock72 <Us************@dbForumz.com> wrote:
I am developing a php script that automatically send email to the
inputed email addresses. Can you help?

Thanks
Tim


Jul 17 '05 #3

P: n/a
rock72 wrote:
I am developing a php script that automatically send email to the
inputed email addresses. Can you help?

Thanks
Tim


If you use a server with sendmail smtp set up this will do

mail("yo*@you.com","Your Subject","Your msg body","From: Your from
address");
Jul 17 '05 #4

P: n/a
have you looked at the php manual yet?
"Raven" <ra*********@NOSPAMravenphpscripts.com> wrote in message
news:32***************@newsread1.news.pas.earthlin k.net...
"rock72" <Us************@dbForumz.com> wrote in message
news:41**********@alt.athenanews.com...
I am developing a php script that automatically send email to the
inputed email addresses. Can you help?

Thanks
Tim

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-mail-fun...ict178639.html
Visit Topic URL to contact author (reg. req'd). Report abuse:
http://www.dbForumz.com/eform.php?p=600416


http://www.php.net/manual/en/ref.mail.php

Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.