Also I assume you will be moving the app to a different server after you
test it locally. Where ever you host it at should be able to provide you
with an SMTP server name to use. If you plan to use the "server" attribute
rather than configuring it in cf admin, you might consider setting a
variable in your application.cfm file with the value of the server name so
you can easily change it. Or better yet you might do something like:
<cfif cgi.server_name is "localhost">
<cfset request.mymailserver = "mail.someserver.com">
<cfelseif cgi.server_name is "somedomain.com" or cgi.server_name is
"www.somedomain.com">
<cfset request.mymailserver = "mail.someotherserver.com">
<cfelse>
<!--- throw some kind of error --->
</cfif>
then in your cfmail tag do
<cfmail to="blabla" from="blabla" subject="hello world"
server="#request.mymailserver#">
bla bla
</cfmail>
And if you have multiple instances of cfmail you might do the same for the
to and from email addresses.
-Dusty
_____
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Knudsen
Sent: 03/19/2008 11:11 PM
To: [email protected]
Subject: Re: [ACFUG Discuss] How does one use <cfmail>?
typically the server stuff is set in the admin, thus encapsulating the
developer from needing that info. Check out
http://livedocs.adobe.com/coldfusion/8/htmldocs/basiconfig_11.html
You will need the email servers SMTP info. I doubt you will be able to send
email vial mail.earthlink.net though due to relaying restrictions. Is your
client using a host?
DK
On Wed, Mar 19, 2008 at 9:58 PM, Peyton Todd <[EMAIL PROTECTED]>
wrote:
This question will probably be easy for nearly every ACFUGGER except me:
I want to use the <cfmail> tag, and my question is: what do they mean by
the 'server'? For example, in testing the site I'm building on my own PC as
local server, I plan to send the e-mail messages from the site I'm building
to myself. My e-mail address is [EMAIL PROTECTED], so that's how I'm
filling in the to="<recipient>" parameter of <cfmail> (Incidentally, does
the from="<sender>" parameter make any difference if the recipient will not
be replying? In this case the recipient will be the office manager on the
same LAN as the web server itself, and he'll always know where the e-mails
come from).
But the hard part is what to put for the server. I've tried
webmail.atl.earthlink.net, which is were I get my e-mail. And I've tried
just earthlink.net by itself, and just mindspring.com. But nothing appears
in my e-mail inbox, not even a message from the MAILER DAEMON, which ought
to know where to send such a message (of ColdFusion should know, since I've
specified from="[EMAIL PROTECTED]".
Thanks for your help,
Peyton
-------------------------------------------------------------
Annual Sponsor FigLeaf Software - http://www.figleaf.com
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform
For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------
--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?
-------------------------------------------------------------
Annual Sponsor - Figleaf Software <http://www.figleaf.com>
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform
For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink <http://www.fusionlink.com>
-------------------------------------------------------------
-------------------------------------------------------------
Annual Sponsor FigLeaf Software - http://www.figleaf.com
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform
For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------