can a form's 'submit' button send to 2 different emails?

kearsefreak's picture

They have: 39 posts

Joined: Sep 2001

hey y'all

is this possible? A client wants the 'submit' button of a form that is on their site to send the form data to 2 different email addresses.

I'm thinking this is possible in a simple way like adding a ; between the 2 addresses in the code.

can you guide me someway?

thanks

kf

detox's picture

They have: 571 posts

Joined: Feb 2001

is this server side or just plain html? because there are different ways of attacking this depending on what your site consists of...

They have: 383 posts

Joined: Sep 2000

Detox mentioned the basics. Most formmail type scripts can be adjusted to send to multiple addresses. You can also setup an email aliases on your site that forwards to the two addresses, then send the form response to that account, which will in turn distribute it. Just an idea Wink

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

If your using the form's action="", I would assume you could do:

I haven't tried it though.

kearsefreak's picture

They have: 39 posts

Joined: Sep 2001

of course

Sometimes you can get so bogged down with the details that you can't see the simple stuff.

All of these ideas should work.........just to see I'm going to try them all out but the easiest way would be Adam's idea of multiple addresses with email forwarding (actually the easiest, easiest idea would be the semi-colon).

you guys rock......

i LOVE this place

kf

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.