Forum Moderators: coopster

Message Too Old, No Replies

PHP email form

Newbie coder! woz all that squiggly stuff?

         

ska_demon

11:17 am on Dec 13, 2004 (gmt 0)

10+ Year Member



Ok so I built an email form.
Now I need to send it to multiple email addresses.
I have this line of code.

# Email to Form Owner

$emailTo = '"Form Owner" <blahblah@example.com>';

How would I append a second email address to this.

[edited by: coopster at 1:52 pm (utc) on Dec. 13, 2004]
[edit reason] generalized url [/edit]

joe1182

12:50 pm on Dec 13, 2004 (gmt 0)

10+ Year Member



Ok so I built an email form.
Now I need to send it to multiple email addresses.
I have this line of code.

# Email to Form Owner

$emailTo = '"Form Owner" <blahblah@example.com>';

How would I append a second email address to this.

Try seperating each e-mail address with a comma like this.
<blahblah@example.com, yourname@example.com>

[edited by: coopster at 1:54 pm (utc) on Dec. 13, 2004]
[edit reason] generalized urls [/edit]

ska_demon

2:01 pm on Dec 13, 2004 (gmt 0)

10+ Year Member



Ta! works a treat.
Whoops! strict mod ;-P
Sorry

Ska

coopster

2:18 pm on Dec 13, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member




strict mod

hehe. I thought 'uselessip' was funny, but rules is rules so I made the adjustment. Any time a url is used, we try to use the RFC2606 standard of 'example.com'. Hope this helps for future reference.


You have reached this web page by typing "example.com", "example.net", or "example.org" into your web browser. 
These domain names are reserved for use in documentation and are not available for registration. See RFC 2606 [rfc-editor.org], Section 3.

ska_demon

2:37 pm on Dec 13, 2004 (gmt 0)

10+ Year Member



No worries. :-)

Ska