using mail() function

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jamal
Forum Commoner
Posts: 57
Joined: Sat Oct 26, 2002 7:53 pm
Location: London

using mail() function

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

do you want to know the requirements?
http://www.php.net/manual/en/ref.mail.php
skyhawk133
Forum Newbie
Posts: 9
Joined: Wed Nov 13, 2002 10:25 pm
Location: Rio Rancho, NM

Post 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");
gobo
Forum Newbie
Posts: 9
Joined: Sun Dec 28, 2003 5:29 pm

Post by gobo »

i came up with dreamstudios as a name in about 1998.. hehee i hope it goes very well for you :)
Post Reply