HighDots Forums  

cgi Form mail

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss cgi Form mail in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
southdaytona
 
Posts: n/a

Default cgi Form mail - 12-20-2007 , 03:37 PM






Is it possible to set multiple recipients for cgi Form mail, I'm using Matt's
script Formmail, and it appears that it should...however I'm not getting it to
work.

In my form i've got my hidden field 'recipient' and two email addresses:
user1 (AT) domain (DOT) com, user2 (AT) domain (DOT) com
In the webform.cgi i've got the @recipients = ('user1 (AT) domain (DOT) com',
'user2 (AT) domain (DOT) com')

anyone see what I'm missing? I've reread matts script user guide a number of
times, can't tell what I've done wrong.
thanks, mike


Reply With Quote
  #2  
Old   
southdaytona
 
Posts: n/a

Default Re: cgi Form mail - 12-20-2007 , 04:37 PM






I've been doing some research on my own problem, matt's form mail is pretty
old, and doesn't seem that secure, are any of you experts using it? I stumbled
upon http://nms-cgi.sourceforge.net/scripts.shtml. how about them? anyone
ever use their form mail script? any better than matts? thanks, mike


Reply With Quote
  #3  
Old   
southdaytona
 
Posts: n/a

Default Re: cgi Form mail - 12-20-2007 , 05:09 PM



Hi Alan, yeah that section is confusing. No error message, its just that the
one accounts doesn't get the email. both of them are hotmail accounts.

I'll check on the php hosting, its hosted at 1&1
mike


Reply With Quote
  #4  
Old   
southdaytona
 
Posts: n/a

Default Re: cgi Form mail - 12-20-2007 , 07:09 PM



Alan, thanks for the link to boaddrink.com, I've got it up and running. I only
had one question regarding the $referers field with respect to recipients. In
one place it says this:

Note: The domains listed in the $referers array must also include the domain
that the e-mail is going to.

Example: If the recipient of the e-mail is test (AT) example (DOT) com and the form is
hosted on boaddrink.com, your $referers array will have to look like

$referers = array("boaddrink.com", "example.com");

Remember, the domain name of the recipient's domain must be listed in the
$referer array, even if the form isn't hosted on that domain. Rule of thumb,
include the domain name that is hosting the form AND include the domain name of
the recipients (This includes recipient, recipient_cc, and recipient_bcc).

but then further down is says this:
This is the only Optional Variable that I recomend changing and using. This
array allows you to list valid key/value pairs of e-mail addresses so you don't
have to expose your e-mail address to the net. If you define ANY e-mail
addresses in the $recipient_array then all forms using this script must pass
keys to the script and not email addresses. The format is $recipient_array =
array(key => value) and the key can be whatever you like. You'll want the value
to be a valid e-mail address. Note: The domain of the e-mail address DOES NOT
have to be added to the $referers.

So does my hotmail domain need to be in the referers or not?

(Right now I am using Example #2 which doesn't follow a sequential pattern),
not sure if that makes a difference or not.

mike


Reply With Quote
  #5  
Old   
southdaytona
 
Posts: n/a

Default Re: cgi Form mail - 12-21-2007 , 11:20 AM



Thanks Alan, I'll give that a try. For the hidden mail "key" how complex do
you make it, in your example you used "me" on http://boaddrink.com site he
shows 3 examples, one using just a number, one a alpha name and then a really
long alph-numeric key, in your opinion is the complex alpha-numeric overkill?
thanks so much for your help. mike


Reply With Quote
  #6  
Old   
southdaytona
 
Posts: n/a

Default Re: cgi Form mail - 12-21-2007 , 11:32 AM



Ok, Thanks again.

Mike.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.