Are all or only some of the messages not going out? If you're not getting CF
errors on the page, then the problem is probably between CF and the mail server.
If you're going to use from: and to: addresses as entered into a form, make sure
you validate the format of the addresses. For example, if someone enters "Joe
Smith" in the from:, many mail servers will reject the message. The to: address
is obviously even more important. There, you could have the mail server reject
the relay from CF or else the mail server may accept it and be unable to deliver
it for a variety of reasons. You can't validate every possible problem, such as
someone misspelling "aol.com", but you _can_ make sure the address at least
looks like a valid one.
Jim
-----Original Message-----
From: Mike Kear <[EMAIL PROTECTED]>
To: CF-Talk <[EMAIL PROTECTED]>
Date: Friday, March 30, 2001 8:16 AM
Subject: CFMAIL drives me NUTS!
>
>
>I have endless trouble with CFMail in a hosted environment - because I can't
>get access to the undelivered mail and if the templates don't work all I get
>is - well nothing.
>
>Can anyone tell me what's wrong with this code? It's from a "tell a friend
>about this site" form, which is supposed to pass 4 variables to the action
>page (names and emails for each of sender and receiver). Part of the action
>page is two emails - one to the site visitor and one to their friend.
>
>I don't think the problem is the tag itself, because the syntax of the
><CFMAIL is the same as a working template which DOES send its email. I
>don't think it's the time line, because that works fine elsewhere on the
>site too.
>
>[first email]
><cfmail to="#form.senderemail#" from="[EMAIL PROTECTED]"
>subject="Told your friend about this site" server="xxx.xxx.xxx.xxx">
> Apparently while visiting Bluegrass Australia (http://bluegrass.org.au)
>you used our form to invite a friend to visit us also.
>
> Your friend's name and address is:
> #form.receivername# at #form.receiveremail#
>
> We very much appreciate your support.
> ---------------------------------------
>
> This confirmation message was sent from:
> http://bluegrass.org.au. Thank you.
> Local Time: #dateformat(austime, "d / mmmm / yyyy")# at
>#timeformat(austime, "h:mm tt")#
> </cfmail>
>[end first email]
>
>
>
>[second email]
><!--- Send email to the friend --->
><cfmail to="#form.receiveremail#" from="[EMAIL PROTECTED]"
>subject="Check out this site I found" server="xxx.xxx.xxx.xxx">
>
> G'day #form.receivername# ... a message from
>#form.sendername#
> --------------------------------------------------------------------
> Right now I am visiting the site Bluegrass Australia - about bluegrass and
>acoustic music around Australia. It has some great stuff that will probably
>interest you too. What's on around Australia, details of new releases and
>where you can get them, news about the bluegrass world.
>
> So I suggest you use the URL below and have a look for yourself. Email me
>at #form.senderemail# and let me know what you think.
>
> The site URL is: http://bluegrass.org.au
>
>
> This e-mail was sent by #form.sendername#
> IP address: #Remote_addr#
> Thank you.
> Local Time: #dateformat(austime, "d / mmmm / yyyy")# at
>#timeformat(austime, "h:mm tt")#
></cfmail>
>[end second email]
>
>
>Could it be the fact that there are two emails on the one template? Is that
>allowed?
>
>Cheers,
>Mike Kear
>Windsor, NSW, Australia
>AFP WebWorks
>
>
>
>
>
>
>Archives: http://www.mail-archive.com/[email protected]/
>Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists