I've written the following Cold Fusion script which sends an email without
opening a browser window:
***********************************************************************
<cfset mailTo = "#Form.emailAddressToSendTo#">
<cfset emailFrom = #Form.emailAddress#>
<cfset emailSubject = "EMAIL SUBJECT LINE">
<cfmail to="[EMAIL PROTECTED]" cc="[EMAIL PROTECTED]"
from="[EMAIL PROTECTED]" subject="#emailSubject#"
server="smtp.punkass.com" type="HTML" port="25">
<font name="arial" size=1><i>email delivered via punkass.com (HTML
format)</i></font>
<p>
<font name="arial">
<b>Name:</b> #Form.userTitle# #Form.firstName# #Form.lastName#
<br><b>email:</b> #Form.emailAddress#
<br><b>Telephone:</b> #Form.telephoneNumber#
<br><b>Interested:</b> #Form.interestLevel#
</font>
</cfmail>
***************************************************************************
The text between the hashes (i.e. #Form.emailAddressToSendTo#) denotes
posted form data. So, if you post an email address as a variable called
emailAddressToSendTo from the Shockwave movie using postNetText, the Cold
Fusion script can reference is as #Form.emailAddressToSendTo#.
I send all the above variables as a list using postNetText. Take particular
note of the 'from' and 'server' parameters within the Cold Fusion cfmail
command - you'll need to make sure that the 'from' email address is
authorised to send email via the server specified within the 'server'
parameter.
Hope this makes some sense! It works well...... I've used it on a variety of
CD-ROMs.
Milan.
-----Original Message-----
From: Al Hospers [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 05, 2001 12:07 PM
To: [EMAIL PROTECTED]
Subject: RE: <lingo-l> annoying feature! (mailto)
<SNIP>
> But when I turn my movie into a projector, the above code
> causes a browser
> window to open and only then creates a new mail window. How
> can I prevent it
> from opening a browser window?
<SNIP>
this is, in fact, the way it works. the mailto function will open a browser
window. if you want to send email without that taking place you can purchase
an Xtra such as the DirectEmail Xtra from Direct Xtras or use the MultiUser
Server Xtra that comes with Director. there are technotes on the Macromedia
site detailing the latter.
hth
Al Hospers
CamberSoft, Inc.
al<at>cambersoft<dot>com
http://www.cambersoft.com
A famous linguist once said:
"There is no language wherein a double
positive can form a negative."
YEAH, RIGHT
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]