Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

Send registration form to multiple address'

Posted on 2011-09-20
2
Medium Priority
?
294 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
ghodder earned 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If 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.
Suggested Courses

647 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