Page 1 of 1

using mail() function

Posted: Sat Nov 16, 2002 10:35 am
by jamal
Hi,
can anyone tell me in which circumstances I can use mail function.
This may sound elementary. I just don't know the significant of the mail function.
Thanks
Jamal

Posted: Sat Nov 16, 2002 3:07 pm
by volka
do you want to know the requirements?
http://www.php.net/manual/en/ref.mail.php

Posted: Sat Nov 16, 2002 6:40 pm
by skyhawk133
The 'circumstances' for which you would use the mail() function is anytime you want to send an email, I just used it like this to send a welcome email to my members:

Code: Select all

$message = "Welcome to dream.in.code and the DreamStudios Network $in_username. As a member of dream.in.code you now have access to thousands of topics relating to web development and programming as well as hardware and other third party applications. In addition, you can access the hundreds of resources, tutorials, articles, and reviews submitted by our dedicated members. Here is a quick list of links to get you started:\n
		
		Home:      http://home.dreamincode.net\n
		Forums:    http://forums.dreamincode.net\n
		Tutorials: http://tutorials.dreamincode.net\n
		Resources: http://resources.dreamincode.net\n
		Articles:  http://articles.dreamincode.net\n

dream.in.code is made up of 100% member contributed content, we would love for you help out by submitting a few resources, tutorials, articles, reviews, or helping out in the forums. Each time you contribute to the site you earn contribution points which show up under your name in the forums. Without your support, dream.in.code is just another forum! Take a little, leave a little! Here is how you can help:\n
		
		Submit Resources:   http://resources.dreamincode.net/index.php?p=add\n
		Submit Tutorials:   http://tutorials.dreamincode.net/index.php?CODE=05\n
		Submit Articles:    http://articles.dreamincode.net/index.php?CODE=05\n

As a member of dream.in.code you are automatically subscribed to a weekly(ish) newsletter dedicated to providing up-to-date information on current events in the web development and programming industries as well as giving a little insight into the minds of the folks behind dream.in.code. We never sell, distribute, or otherwise compromise your inbox by giving out your email address to anyone. If you would like to unsubscribe from the newsletter simply login and go to Board Settings and select not to receive admin emails.\n

For more information about dream.in.code and the team behind it, hop on over to: http://home.dreamincode.net/index.php?p=about\n

Again, welcome to dream.in.code! We hope you find your time spent with us rewarding and insightful.
Best Regards,
The dream.in.code Team
webmaster@dreamincode.net

		

        ";

mail("$in_email", "Welcome to dream.in.code", $message,
			 "From: webmaster@dreamincode.net\r\n");

Posted: Sun Dec 28, 2003 7:05 pm
by gobo
i came up with dreamstudios as a name in about 1998.. hehee i hope it goes very well for you :)