Cfmail not working. Please help!

I am trying to get this to send an email each time a file is
uploaded. All the fields in the form are updating the database
correctly but the email is never sent and no error message is
generated. Any ideas....please help!!!
<cfif IsDefined("FORM.ID")>
<cfupdate datasource="xxxxxxx" tablename="FTPCatalog">
<cfelse>
<cfinsert datasource="xxxxxxx" tablename="FTPCatalog">
<cfmail to = "#SendTo#"
from = "#EmailAddress#"
subject = "FTP file upload notification!"
server = "mail.server.net" >
A file has been uploaded to the server.
</cfmail>
</cfif>

you do realise that your code as it is in your original post
will only
send email when a NEW RECORD is INSERTED into the db? no
email will be
sent on UPDATE of db because how your cfif/cfelse is
constructed.
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com

Similar Messages

Maybe you are looking for

  • How to send concurrent program output file as an attachment in the notification mail

    Hi All, We are on Oracle apps version - 11.5.10.2 We have a requirement wherein we need to send the concurrent program output file as an attachment while sending the notification mail to the user. Currently we have tried the approach wherein we are s

  • Using Tiger 10.4.11 and trying to back up hard drive on time capsule

    I have successful set up time capsule to be my base internet station. Now I want to copy my hard drive onto Time Capsule but cannot figure out how to do it. I visited the apple store today in NYC and they folks there suggested I use "migration assist

  • Play sound from AppleTV on iPod

    I have noticed that when I watch a video in iTunes, I can use AirPlay to push the audio to the AppleTV.  Is there any way to make this work in reverse?  I am trying to find a way to watch videos on my AppleTV while listening to the audio through head

  • If we have any self respect, we should boycott Nok...

    Nokia is dumping defective phones in India (like the Lumia 800) because a) India has no laws  b) They view Indians with contempt. I have had a Lumia 800 for nearly 2 months. It never worked, has been sent for repairs twice, and I have been told 'no r

  • SOA WebServices

    I am changing the WSDL, and adding a wsdl:service in it. I was seeing other examples of wsdl:service. Not sure what this soap:address location should correspond in my case. I have no idea. How can I find what should be soap:address. <wsdl:service nam