This content has been marked as final. Show 23 replies
I just have to send notification through mail to members email id.
> I just have to send notification through mail to members email id.
You must have an email sever, any will do. ColdFusion does not do that
actual emailing it passes this on to the configured email server.
can i use gmail as my mailing server. Since it will not be possible to setup my own email server in the organization.
since i am using cf mx... then what could be the solution to my problem
any web hosting account nowadays comes with mail + with many hosting
companies you can sign up for just mail hosting. voila - you have a mail
server you can use to send mail from CF.
can i use gmail as my smtp server to send mails. Since i will not be provided with resources to get a mail hosting solution
The mailing functionality feature problem has been resolved by including the system name in the mail server name
I am facing a problem in cf5 with the cfmail tag. Below is the specific error i recieved.
Error Diagnostic Information
Unknown Exception condition
Some of the changes which i tried are:
1. In the registry added a string variabl e"Delay" with timestamp varying from 130 upto 500: This also did not worked.
2. Already have Mail folder and its subdirectory in the Cfusion folder.
3. Number of times restarted the CF Services: still problem persists
Can anyone help me in resolving this issue please?
Does the mail even get to the spool folder?
Show us the actual CFMAIL code that you are using.
The mail does not goes to either spool or the undeliver folder. Below is the code.
I have already set the mail server in the cold fusion administrator.
<cfmail to="firstname.lastname@example.org" from="email@example.com" subject="Test Mail">
This is a test email.
This problem will probably be resolved by reinstalling the cold fusion. :>)
Hi i have a problem in cold fusion wherein i need an email notification to web administrator mail box in case any email notification from my website goes to undelivered folder. so that i can again send them by moving files from undelivered to spool folder.
if using FAILTO attribute does not work (can't remember if it fails to
only when getting a failed response from destination server or if cf
fails to send email too), then you can implement a Directory Watcher
Gateway to watch for new files being added to undelivered folder...
Hi azadi thanks for a quick response. Can you please tell me how can i implement the "Directory Watcher Gateway" Feature.
there is a good post in ray camden's blog on www.coldfusionjedi.com
about DW Gateway:
it is about using it with uploading images, but pretty much the same
applies to the undeliverable mail folder.
Hi azadi i wrote the code, but its not working. below is the code for cofig file and the component file.
# The directory you want to watch. If you are entering a Windows path
# either use forward slashes (C:/mydir) or escape the back slashes (C:\\mydir).
# Should we watch the directory and all subdirectories too
# Default is no. Set to 'yes' to do the recursion.
# The interval between checks, in miliseconds
# Default is 60 seconds
# The comma separated list of extensions to match.
# Default is * - all files
# CFC Function for file Change events
# Default is onChange, set to nothing if you don't want to see these events
# CFC Function for file Add events
# Default is onAdd, set to nothing if you don't want to see these events
# CFC Function for file Delete events
# Default is onDelete, set to nothing if you don't want to see these events
<cfset var myfile = arguments.cfevent.data.filename>
<cfset var newdest = getDirectoryFromPath(myfile)>
<!--- copy to ready --->
<!--- newdest is the same path as spool, so 'cheat' and switch to ready --->
<cfset newdest = replace(newdest, "/Undelivr", "/spool")>
<cffile action="move" source="#myfile#" destination="#newdest#/#getFileFromPath(myfile)#">
<cflog file="dirwatcher" text="Moved to #newdest#/#getFileFromPath(myfile)#">
Please provide support for the same.
sachin, were you ever able to get the directory watcher working? my CONFIG and CFC look exactly as yours do and I can't get it to work... the CF EG instance says "Running" but the gateway is not invoking the CFC method...
yes i am also facing the same problem. any day if you get the solution to this problem please send me the solution as well.