Cfemail issue(s)

2009-08-27 Thread Victor Moore

Hi all,

I have a couple of issues with cfmail.
Environment: Windows 2003, CF8.01 ent

The server stopped sending emails
After checking the logs .I found out that it stopped after complaining
that one email had Invalid Address which is strange because I check
all emails using isEmail () before sending and I looked at all the
emails in the spool directory and none have any bad email
addresses.The one that CF was complaining about had 500 email
addresses but all are valid.
After that, no emails are sent out. They just sit in the spool
directory. I have tried to move them in and out, play with CF admin
mail settings but no luck.
Somehow the original message caused CF server to ignore mail messages
in the spool directory.
So my questions are:

Is it possible to re-send the emails, short of restarting CF?
Second why would an email fail with Invalid address if all the emails
are valid email addresses.
Third, why will that error cause CF server to black out and stop
sending emails (even if after I have manually removed the so called
offending email with Invalid Address)

Thanks
Victor

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325773
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Cfemail issue(s)

2009-08-27 Thread Cutter (ColdFusion)

See if this post helps you any:

http://blog.cutterscrossing.com/index.cfm/2006/12/10/ColdFusion-Mail-Spool-Lock

Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer

Co-Author of Learning Ext JS
http://www.packtpub.com/learning-ext-js/book
_
http://blog.cutterscrossing.com


On 8/27/2009 9:55 AM, Victor Moore wrote:
 Hi all,

 I have a couple of issues with cfmail.
 Environment: Windows 2003, CF8.01 ent

 The server stopped sending emails
 After checking the logs .I found out that it stopped after complaining
 that one email had Invalid Address which is strange because I check
 all emails using isEmail () before sending and I looked at all the
 emails in the spool directory and none have any bad email
 addresses.The one that CF was complaining about had 500 email
 addresses but all are valid.
 After that, no emails are sent out. They just sit in the spool
 directory. I have tried to move them in and out, play with CF admin
 mail settings but no luck.
 Somehow the original message caused CF server to ignore mail messages
 in the spool directory.
 So my questions are:

 Is it possible to re-send the emails, short of restarting CF?
 Second why would an email fail with Invalid address if all the emails
 are valid email addresses.
 Third, why will that error cause CF server to black out and stop
 sending emails (even if after I have manually removed the so called
 offending email with Invalid Address)

 Thanks
 Victor

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325774
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Cfemail issue(s)

2009-08-27 Thread Rick Root

On Thu, Aug 27, 2009 at 10:55 AM, Victor Moorevictor.mo...@gmail.com wrote:

 Is it possible to re-send the emails, short of restarting CF?

I can't answer the other questions, but I don't know of any way to
kick-start the mail spooler once it dies without restarting
Coldfusion.

This happens to use often enough where we have a process that monitors
the spool directories and if it finds files older than a certain time,
it will send us an alert that CF needs restarting due to a mail spool
backup.

-- 
Rick Root
CFFM - Open Source Coldfusion File Manager
http://www.opensourcecf.com/cffm

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325775
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Cfemail issue(s)

2009-08-27 Thread Mark Kruger

Victor,

Do you mean you are passing a list of 500 addresses in a single attribute?
As in:

cfmail to=b...@blah.com,bl...@blah.com ...

If that is what you are doing  I would not be surprised if there is a buffer
for that attribute that truncates your string at some point. You would be
better off looping through your addresses.

Meanwhile you can try restarting the spooler:

cflock type=EXCLUSIVE name=MailSpoolServiceLock timeout=10
throwontimeout=No
cfobject action=CREATE
   type=JAVA
   class=coldfusion.server.ServiceFactory
   name=factory
  
cfset MailSpoolService = factory.getMailSpoolService() 

cfset MailSpoolService.restart()

/cflock

-Mark 


Mark A. Kruger, CFG, MCSE
(402) 408-3733 ext 105
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com

-Original Message-
From: Victor Moore [mailto:victor.mo...@gmail.com] 
Sent: Thursday, August 27, 2009 9:56 AM
To: cf-talk
Subject: Cfemail issue(s)


Hi all,

I have a couple of issues with cfmail.
Environment: Windows 2003, CF8.01 ent

The server stopped sending emails
After checking the logs .I found out that it stopped after complaining that
one email had Invalid Address which is strange because I check all emails
using isEmail () before sending and I looked at all the emails in the spool
directory and none have any bad email addresses.The one that CF was
complaining about had 500 email addresses but all are valid.
After that, no emails are sent out. They just sit in the spool directory. I
have tried to move them in and out, play with CF admin mail settings but no
luck.
Somehow the original message caused CF server to ignore mail messages in the
spool directory.
So my questions are:

Is it possible to re-send the emails, short of restarting CF?
Second why would an email fail with Invalid address if all the emails are
valid email addresses.
Third, why will that error cause CF server to black out and stop sending
emails (even if after I have manually removed the so called offending email
with Invalid Address)

Thanks
Victor



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325776
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Cfemail issue(s)

2009-08-27 Thread Victor Moore

Thank you both.
I guess I will have to restart the server which will piss all the people on it.
One would think that Adobe (Allaire, Macromedia) will have a fix for
this by now.

Thx
Victor

On Thu, Aug 27, 2009 at 11:02 AM, Rick Rootrick.r...@webworksllc.com wrote:

 On Thu, Aug 27, 2009 at 10:55 AM, Victor Moorevictor.mo...@gmail.com wrote:

 Is it possible to re-send the emails, short of restarting CF?

 I can't answer the other questions, but I don't know of any way to
 kick-start the mail spooler once it dies without restarting
 Coldfusion.

 This happens to use often enough where we have a process that monitors
 the spool directories and if it finds files older than a certain time,
 it will send us an alert that CF needs restarting due to a mail spool
 backup.

 --
 Rick Root
 CFFM - Open Source Coldfusion File Manager
 http://www.opensourcecf.com/cffm

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325777
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Cfemail issue(s)

2009-08-27 Thread Cutter (ColdFusion)

One of my co-workers, Andy Matthews, wrote an app for that:

http://undelivrnator.riaforge.org/

Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer

Co-Author of Learning Ext JS
http://www.packtpub.com/learning-ext-js/book
_
http://blog.cutterscrossing.com


On 8/27/2009 10:02 AM, Rick Root wrote:
 On Thu, Aug 27, 2009 at 10:55 AM, Victor Moorevictor.mo...@gmail.com  wrote:

 Is it possible to re-send the emails, short of restarting CF?
  
 I can't answer the other questions, but I don't know of any way to
 kick-start the mail spooler once it dies without restarting
 Coldfusion.

 This happens to use often enough where we have a process that monitors
 the spool directories and if it finds files older than a certain time,
 it will send us an alert that CF needs restarting due to a mail spool
 backup.




~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325778
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Cfemail issue(s)

2009-08-27 Thread Victor Moore

Good point.
I am not. The customer is sending. Now that I know that, I have to
change the process and send in batches.
Unfortunately the code bellow didn't restart the spooler so I had to
restart the server

Thanks
Victor


On Thu, Aug 27, 2009 at 11:06 AM, Mark Krugermkru...@cfwebtools.com wrote:

 Victor,

 Do you mean you are passing a list of 500 addresses in a single attribute?
 As in:

 cfmail to=b...@blah.com,bl...@blah.com ...

 If that is what you are doing  I would not be surprised if there is a buffer
 for that attribute that truncates your string at some point. You would be
 better off looping through your addresses.

 Meanwhile you can try restarting the spooler:

 cflock type=EXCLUSIVE name=MailSpoolServiceLock timeout=10
 throwontimeout=No
 cfobject action=CREATE
   type=JAVA
   class=coldfusion.server.ServiceFactory
   name=factory

 cfset MailSpoolService = factory.getMailSpoolService()

 cfset MailSpoolService.restart()

 /cflock

 -Mark


 Mark A. Kruger, CFG, MCSE
 (402) 408-3733 ext 105
 www.cfwebtools.com
 www.coldfusionmuse.com
 www.necfug.com

 -Original Message-
 From: Victor Moore [mailto:victor.mo...@gmail.com]
 Sent: Thursday, August 27, 2009 9:56 AM
 To: cf-talk
 Subject: Cfemail issue(s)


 Hi all,

 I have a couple of issues with cfmail.
 Environment: Windows 2003, CF8.01 ent

 The server stopped sending emails
 After checking the logs .I found out that it stopped after complaining that
 one email had Invalid Address which is strange because I check all emails
 using isEmail () before sending and I looked at all the emails in the spool
 directory and none have any bad email addresses.The one that CF was
 complaining about had 500 email addresses but all are valid.
 After that, no emails are sent out. They just sit in the spool directory. I
 have tried to move them in and out, play with CF admin mail settings but no
 luck.
 Somehow the original message caused CF server to ignore mail messages in the
 spool directory.
 So my questions are:

 Is it possible to re-send the emails, short of restarting CF?
 Second why would an email fail with Invalid address if all the emails are
 valid email addresses.
 Third, why will that error cause CF server to black out and stop sending
 emails (even if after I have manually removed the so called offending email
 with Invalid Address)

 Thanks
 Victor



 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325781
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Cfemail issue(s)

2009-08-27 Thread Bryan Stevenson

On Thu, 2009-08-27 at 11:35 -0400, Victor Moore wrote:
 Good point.
 I am not. The customer is sending. Now that I know that, I have to
 change the process and send in batches.
 Unfortunately the code bellow didn't restart the spooler so I had to
 restart the server
 
 Thanks
 Victor
 

YepI'd bet that mail with 500 addresses in it is going to get blocked by 
many SPAM filters

Cheers

-  

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: br...@electricedgesystems.com
web: www.electricedgesystems.com
 
Notice:
This message, including any attachments, is confidential and may contain
information that is privileged or exempt from disclosure. It is intended
only for the person to whom it is addressed unless expressly authorized
otherwise by the sender. If you are not an authorized recipient, please
notify the sender immediately and permanently destroy all copies of this
message and attachments.




~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325783
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Cfemail issue(s)

2009-08-27 Thread Rick Root

On Thu, Aug 27, 2009 at 11:07 AM, Cutter
(ColdFusion)cold.fus...@cutterscrossing.com wrote:

 One of my co-workers, Andy Matthews, wrote an app for that:

 http://undelivrnator.riaforge.org/

This isn't an issue of respooling undeliverable email.

It's a matter of noticing that the SPOOL directory is not being processed.

-- 
Rick Root
CFFM - Open Source Coldfusion File Manager
http://www.opensourcecf.com/cffm

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325791
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Cfemail issue(s)

2009-08-27 Thread Victor Moore

True.
I had a resend email scheduler job already implemented.
I end up sending in batches. 200 emails at one time.

It seems it's working fine. Is there a upper limit that I should be aware?

Thanks
Victor

On Thu, Aug 27, 2009 at 12:52 PM, Rick Rootrick.r...@webworksllc.com wrote:

 On Thu, Aug 27, 2009 at 11:07 AM, Cutter
 (ColdFusion)cold.fus...@cutterscrossing.com wrote:

 One of my co-workers, Andy Matthews, wrote an app for that:

 http://undelivrnator.riaforge.org/

 This isn't an issue of respooling undeliverable email.

 It's a matter of noticing that the SPOOL directory is not being processed.

 --
 Rick Root
 CFFM - Open Source Coldfusion File Manager
 http://www.opensourcecf.com/cffm

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325798
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4