Solved

Send registration form to multiple address'

Posted on 2011-09-20
2
236 Views
Last Modified: 2012-05-12
I have set up a registration form which works fine. Currently though it only sends a confirmation to the user, I would also like an email sent to admin registration@domain.com.

Any ideas how to do this?

I have attached the code which applies to sending the user email...

// Send the email:
				$body = "Thank you for registering at <whatever site>. To activate your account, please click on this link:\n\n";
				$body .= BASE_URL . 'activate.php?x=' . urlencode($e) . "&y=$a";
				mail($trimmed['email'], 'Registration Confirmation', $body, 'From: registration@anjoman.co.uk');

Open in new window

0
Comment
Question by:BrighteyesDesign
2 Comments
 
LVL 9

Accepted Solution

by:
ghodder earned 500 total points
ID: 36570297
You just need to concatenate your second email address into the first parameter, prefixed with a comma like so

 mail($trimmed['email'] . ', registration@domain.com', 'Registration Confirmation', $body, 'From: registration@anjoman.co.uk');

Open in new window

0
 

Author Closing Comment

by:BrighteyesDesign
ID: 36572152
Perfect, thanks
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now