Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

changing spool directory for cfmail

New Here ,
Nov 20, 2008 Nov 20, 2008
I currently have a table with about 9,000 registered accounts and would like to send them a promotional email. i would like to spool all emails but would like to hold them in another directory, such as the Picukp directory in IIS. CF has Spool and Undeliverable so it either goes or is undeliverable. What would I need to modify to make this happen?
TOPICS
Getting started
579
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Nov 20, 2008 Nov 20, 2008
Instead of using the CFMAIL tag you could use CFFILE to create a properly formatted file saved to your pickup folder.

How to test outbound mail flow with a file in the Pickup folder:
http://support.microsoft.com/kb/297700/en-us
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 20, 2008 Nov 20, 2008
Do you mean that with simply replacing the cfmail tag with cffile it will save it to the pickup directory?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Nov 20, 2008 Nov 20, 2008
LATEST
quote:

Originally posted by: Cesar Mendez
Do you mean that with simply replacing the cfmail tag with cffile it will save it to the pickup directory?


You would need to write some custom code, such as a CFC, that would use the CFFILE tag to write to your pickup directory.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 20, 2008 Nov 20, 2008
I've been playing around with the tag and have got it working...sort of. With the following code it moves the entire Spool directory into the Pickup folder. Which is expected. However, I am trying to get all files with a .cfmail extension into the Pickup directory but it throws an error when i try ..\Spool\*.cfmail or ..\Spool\*. or ..\Spool\'*.cfmail'. What is the proper way to this?

Thanks
Cesar
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Nov 20, 2008 Nov 20, 2008
What is the error message? Does the account under which the ColdFusion server runs have the required rights to access the folders? Does the *.cfmail file format created by CF match the format expected by your email server?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources