Re: language for mailer

2010-01-24 Thread denstar

There's this (pic at bottom):

http://ha-javamail.sourceforge.net/

Which should give you an idea of javamail's throughput.  Theoretically
ha-javamail should be usable from CF if you drop to the java level.
Dave knows more about what limitations there are on standard vs.
enterprise (spooling, I think?), tho I think if you handle it at the
java level you can do pretty much whatever you'd like.

Dave's right about me being right (which was really him being right a
few days ago :))-- the hardest part is usually managing getting
blacklisted and whatnot, and for the money, a 3rd party who
specializes in handling things like that is worth it.  A couple were
mentioned in a thread just a bit ago.

If I had less fun things to do, I'd see about adding ha-javamail
support to cfjavamail.  That'd be a good feature.

Anyways, if you do go the CF route for sending mail, I've got a
Wiser (part the subethasmtp project) deal for CF that lets you test
SMTP stuff pretty easy (fakes an SMTP server locally).

:Denny

-- 
Every creature is a word of God.
Meister Eckhart

~|
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:330086
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


cfexecute problems

2010-01-24 Thread Aaron Marshall

Hey all, I'm working on an admin panel for my webhosting - basically what I'm 
struggling with is getting coldfusion to execute batch files to start and stop 
other programs on my server.
I'm running Windows Server 2003 x64 with Coldfusion Enterprise 8.0.1 x64.

I've come across some pretty weird findings, basically I can run the following 
command from a batch file or through cmd directly but not via coldfusion;
taskkill /f /fi Windowtitle eq Server* /im *

When I try to execute the bat file via coldfusion with the above line in it I 
get an error saying that no process's were found matching the criteria.
However if I use this in the batch file it works fine;
TASKKILL /F /IM server.exe

Problem is, I'm running more than one server.exe, each instance of the program 
has a unique windowtitle which is why I really need to get the original batch 
file working.

The code I'm using to execute the batch file is;
cffile action='write'
file='C:\stop.bat'
output='TASKKILL /F /IM #session.username#.exe'
cfexecute name = 'C:\stop.bat'
outputFile = 'C:\output.txt'
arguments = '/C'
timeout = '1'
/cfexecute

The batch file is created and has the correct info written into it.
I've searched all over the place trying to find others that might be having 
this issue but I can't seem to find anything solid. I heard it might be a x64 
issue but as far as I know as of 8.0.1 x64 was fully supported.

Any help would be appreciated.
Thanks. 

~|
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:330087
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


cfexecute problems

2010-01-24 Thread Aaron Marshall

Hey all, I'm working on an admin panel for my webhosting - basically what I'm 
struggling with is getting coldfusion to execute batch files to start and stop 
other programs on my server.
I'm running Windows Server 2003 x64 with Coldfusion Enterprise 8.0.1 x64.

I've come across some pretty weird findings, basically I can run the following 
command from a batch file or through cmd directly but not via coldfusion;
taskkill /f /fi Windowtitle eq Server* /im *

When I try to execute the bat file via coldfusion with the above line in it I 
get an error saying that no process's were found matching the criteria.
However if I use this in the batch file it works fine;
TASKKILL /F /IM server.exe

Problem is, I'm running more than one server.exe, each instance of the program 
has a unique windowtitle which is why I really need to get the original batch 
file working.

The code I'm using to execute the batch file is;
cffile action='write'
file='C:\stop.bat'
output='TASKKILL /F /IM #session.username#.exe'
cfexecute name = 'C:\stop.bat'
outputFile = 'C:\output.txt'
arguments = '/C'
timeout = '1'
/cfexecute

The batch file is created and has the correct info written into it.
I've searched all over the place trying to find others that might be having 
this issue but I can't seem to find anything solid. I heard it might be a x64 
issue but as far as I know as of 8.0.1 x64 was fully supported.

Any help would be appreciated.
Thanks. 

~|
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:330088
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


cfmail with gmail - second question

2010-01-24 Thread Matthew Smith

I posted earlier about using cfmail with google hosted mail.  I was told it 
would require cf8.  We ended up upgrading the account to cf8, but I still can't 
get it to work.  Here is what I have.  The page runs without error, I just 
don't ever receive the test mail:

cfset mailAttributes = {
server=smtp.gmail.com,
username=webs...@website.com,
password=password,
from=webs...@website.com,
to=rece...@gmail.com,
subject=Eat my shorts
}
/

cfmail port=465 useSSL=true
attributeCollection=#mailAttributes#
port 465, SSL enabled/cfmail

cfmail port=587 useTLS=true
attributeCollection=#mailAttributes#
port 587, TLS enabled/cfmail

cfmail port=465 useSSL=true useTLS=true
attributeCollection=#mailAttributes#
port 465, SSL and TLS enabled/cfmail


~|
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:330089
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


cfmail with gmail - second question

2010-01-24 Thread Matthew Smith

I posted earlier about using cfmail with google hosted mail.  I was told it 
would require cf8.  We ended up upgrading the account to cf8, but I still can't 
get it to work.  Here is what I have.  The page runs without error, I just 
don't ever receive the test mail:

cfset mailAttributes = {
server=smtp.gmail.com,
username=webs...@website.com,
password=password,
from=webs...@website.com,
to=rece...@gmail.com,
subject=Eat my shorts
}
/

cfmail port=465 useSSL=true
attributeCollection=#mailAttributes#
port 465, SSL enabled/cfmail

cfmail port=587 useTLS=true
attributeCollection=#mailAttributes#
port 587, TLS enabled/cfmail

cfmail port=465 useSSL=true useTLS=true
attributeCollection=#mailAttributes#
port 465, SSL and TLS enabled/cfmail


~|
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:330090
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: jQuery loaded page and cfwddx

2010-01-24 Thread Victor Moore

Yes, it helped crystallizing some ideas.

In my case test.cfm has a lot of other html markup and if I do an eval
I get an error.

I have tried sticking the javascript in a div and getting it after,
which I can and I can evaluate it too and dump the content to the
console, but if I try to access
d i still get and undefined error.

Thanks again for your support
Victor

On Sat, Jan 23, 2010 at 8:50 PM, lists li...@commadelimited.com wrote:

 Victor...

 What version of CF are you using? Can you share your code? That would be
 much simpler. I went ahead and threw together a quick example of how cfwddx
 and an ajax call should work. Both files should be placed in the same
 directory. Note that when test.html first loads, you'll get an alert with
 plain text...that's the string that's actually being returned by the cfm
 page. Before it can be used as JavaScript, it must first be evaluated.


 TEST.CFM
 -
 cfscript
        myStruct = {};
        myStruct['one'] = 1;
        myStruct['two'] = 2;
        myStruct['three'] = 3;
 /cfscript
 cfwddx action=cfml2js input=#myStruct# topLevelVariable=d


 TEST.HTML
 -
 html
 head
        title new document /title
        script src=jquery/jquery-1.3.1.min.js
 type=text/javascript/script
        script type=text/javascript
        !--
                $(document).ready(function(){
                        $.get('test.cfm', function(data){
                                alert(data);
                                eval(data);
                                console.log(d);
                                alert(d['two']);
                        });
                });
        //--
        /script
 /head
 body
        !--- left empty ---
 /body
 /html

 Hope this helps you out.

 -Original Message-
 From: Victor Moore [mailto:victor.mo...@gmail.com]
 Sent: Saturday, January 23, 2010 6:55 PM
 To: cf-talk
 Subject: Re: jQuery loaded page and cfwddx


 Yes, it's a get.
 It seems that after I restarted the browser the jQuery event click on the
 button works.
 But I still can't access the toplevelvariable that was setup by the cfddx
 call when the page was loaded.

 Thanks
 Victor

 On Sat, Jan 23, 2010 at 6:27 PM, lists li...@commadelimited.com wrote:

 I assume you're using a get call. What happens when you console.log
 the argument passed to your success callback function?

 If you're not using getjson Then most likely you need to evaluate the
 argument before it's ready to be used.

 On Jan 23, 2010, at 2:06 PM, Victorng  Moore victor.mo...@gmail.com
 wrote:


 Hi,

 I am loading a cfm page with jQuery.
 On that page I use cfwddx.. action=cfml2js...
 If I try to access the top variable and it tells me that it's
 undefined, bu I can clearly see it in firebug if i expend the jQuery
 call that it's there.


 any idea what I'm missing?

 Thanks
 Victor

 PS BTW i have also tried to trigger  a click event on a button on the
 page and it's not being triggered.

 I have tried using the live function too with no success

 $(input:button[name='test']).live (click, function(){
            alert (this.id);
            });

 No error but no alert...







 

~|
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:330091
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


(ot) helicon isapi_rewrite config

2010-01-24 Thread Michael Muller

Hey all,

I'm having trouble conceptualizing something here.

I just installed Helicon ISAPI_Rewrite so I can turn the following URLs...

http://mysite.com/hello

... into this...

http://mysite.com/page.cfm?name=hello


I have the following config set:

RewriteEngine on
#RewriteBase /
RewriteRule ^([^/]+)$ /index.cfm\?name=$1 [NC,L] 


It works well if I uncomment the RewriteBase line, but when I do that every 
other page on the site (that I don't want to rewrite just yet) loses its meta 
base path and can't find css files or any images.

Anyone have experience with this module or a better grasp of regex than me?

Thanks,

Mik




Michael Muller
cell (413) 320-5336
skype: michaelBmuller
http://MontagueWebWorks.com

Information is not knowledge
Knowlege is not wisdom

Eschew Obfuscation



~|
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:330092
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: jQuery loaded page and cfwddx

2010-01-24 Thread lists

If test.cfm has other markup then you need to rethink your use of cfwddx.
Just throw an cfoutput around everything you want to return to the calling
page. When the calling page receives the contents of test.cfm in the success
handler, then you can do something with it. In this case, I'm dumping the
entire contents of the cfm page into a div on the html page. Check it out:

TEST.cfm

cfset myVar = 10
cfoutputb#myVar# times #myVar# is #myVar * myVar#/b/cfoutput


TEST.html
-
html
head
title new document /title
script src=jquery/jquery-1.3.1.min.js
type=text/javascript/script
script type=text/javascript
!--
$(document).ready(function(){
 $.get('test.cfm', function(data){
 $('#myDiv').html(data);
 });
});
//--
/script
/head
body
div id=myDiv/div
/body
/html

-Original Message-
From: Victor Moore [mailto:victor.mo...@gmail.com] 
Sent: Sunday, January 24, 2010 5:55 PM
To: cf-talk
Subject: Re: jQuery loaded page and cfwddx


Yes, it helped crystallizing some ideas.

In my case test.cfm has a lot of other html markup and if I do an eval I get
an error.

I have tried sticking the javascript in a div and getting it after, which I
can and I can evaluate it too and dump the content to the console, but if I
try to access d i still get and undefined error.

Thanks again for your support
Victor

On Sat, Jan 23, 2010 at 8:50 PM, lists li...@commadelimited.com wrote:

 Victor...

 What version of CF are you using? Can you share your code? That would 
 be much simpler. I went ahead and threw together a quick example of 
 how cfwddx and an ajax call should work. Both files should be placed 
 in the same directory. Note that when test.html first loads, you'll 
 get an alert with plain text...that's the string that's actually being 
 returned by the cfm page. Before it can be used as JavaScript, it must
first be evaluated.


 TEST.CFM
 -
 cfscript
        myStruct = {};
        myStruct['one'] = 1;
        myStruct['two'] = 2;
        myStruct['three'] = 3;
 /cfscript
 cfwddx action=cfml2js input=#myStruct# topLevelVariable=d


 TEST.HTML
 -
 html
 head
        title new document /title
        script src=jquery/jquery-1.3.1.min.js
 type=text/javascript/script
        script type=text/javascript
        !--
                $(document).ready(function(){
                        $.get('test.cfm', function(data){
                                alert(data);
                                eval(data);
                                console.log(d);
                                alert(d['two']);
                        });
                });
        //--
        /script
 /head
 body
        !--- left empty ---
 /body
 /html

 Hope this helps you out.

 -Original Message-
 From: Victor Moore [mailto:victor.mo...@gmail.com]
 Sent: Saturday, January 23, 2010 6:55 PM
 To: cf-talk
 Subject: Re: jQuery loaded page and cfwddx


 Yes, it's a get.
 It seems that after I restarted the browser the jQuery event click on 
 the button works.
 But I still can't access the toplevelvariable that was setup by the 
 cfddx call when the page was loaded.

 Thanks
 Victor

 On Sat, Jan 23, 2010 at 6:27 PM, lists li...@commadelimited.com wrote:

 I assume you're using a get call. What happens when you console.log 
 the argument passed to your success callback function?

 If you're not using getjson Then most likely you need to evaluate the 
 argument before it's ready to be used.

 On Jan 23, 2010, at 2:06 PM, Victorng  Moore victor.mo...@gmail.com
 wrote:


 Hi,

 I am loading a cfm page with jQuery.
 On that page I use cfwddx.. action=cfml2js...
 If I try to access the top variable and it tells me that it's 
 undefined, bu I can clearly see it in firebug if i expend the jQuery 
 call that it's there.


 any idea what I'm missing?

 Thanks
 Victor

 PS BTW i have also tried to trigger  a click event on a button on 
 the page and it's not being triggered.

 I have tried using the live function too with no success

 $(input:button[name='test']).live (click, function(){
            alert (this.id);
            });

 No error but no alert...







 



~|
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:330093
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: (ot) helicon isapi_rewrite config

2010-01-24 Thread Judah McAuley

I don't have the config file for my former install here, but I'll look
around for it. Basically, you need to first catch/exclude the patterns
you don't want to rewrite, like /images, /stylesheets, etc. and then
use your generic rewrite rule.  I've not used ReWrite Base before, so
I can't help you there, but fundamentally, declare your exceptions
first, match them to the directories they ought to hit, then have
everything else be caught by your generic rewrite pattern.

Hope that helps,
Judah

On Sun, Jan 24, 2010 at 4:31 PM, Michael Muller mich...@mullertech.com wrote:

 Hey all,

 I'm having trouble conceptualizing something here.

 I just installed Helicon ISAPI_Rewrite so I can turn the following URLs...

 http://mysite.com/hello

 ... into this...

 http://mysite.com/page.cfm?name=hello


 I have the following config set:

 RewriteEngine on
 #RewriteBase /
 RewriteRule ^([^/]+)$ /index.cfm\?name=$1 [NC,L]


 It works well if I uncomment the RewriteBase line, but when I do that every 
 other page on the site (that I don't want to rewrite just yet) loses its meta 
 base path and can't find css files or any images.

 Anyone have experience with this module or a better grasp of regex than me?

 Thanks,

 Mik



 
 Michael Muller
 cell (413) 320-5336
 skype: michaelBmuller
 http://MontagueWebWorks.com

 Information is not knowledge
 Knowlege is not wisdom

 Eschew Obfuscation



 

~|
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:330094
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: (ot) helicon isapi_rewrite config

2010-01-24 Thread Mik Muller

So... you're saying that using the rule below to turn this url...

http://mysite.com/hello

... into this...

http://mysite.com/page.cfm?name=hello


... the same rule might rewrite the following url...

http://mydomain.com/images/whatever.jpg

... thusly...

http://mydomain.com/index.cfm?name=images/whatever.jpg

...?

Hmm... Then I'd want the rule to only rewrite urls that had only a folder name, 
such as 

http://mysite.com/hello/

with nothing after it.




At 12:43 AM 1/25/2010, Judah McAuley wrote:

I don't have the config file for my former install here, but I'll look
around for it. Basically, you need to first catch/exclude the patterns
you don't want to rewrite, like /images, /stylesheets, etc. and then
use your generic rewrite rule.  I've not used ReWrite Base before, so
I can't help you there, but fundamentally, declare your exceptions
first, match them to the directories they ought to hit, then have
everything else be caught by your generic rewrite pattern.

Hope that helps,
Judah

On Sun, Jan 24, 2010 at 4:31 PM, Michael Muller mich...@mullertech.com wrote:

 Hey all,

 I'm having trouble conceptualizing something here.

 I just installed Helicon ISAPI_Rewrite so I can turn the following URLs...

 http://mysite.com/hello

 ... into this...

 http://mysite.com/page.cfm?name=hello


 I have the following config set:

 RewriteEngine on
 #RewriteBase /
 RewriteRule ^([^/]+)$ /index.cfm\?name=$1 [NC,L]


 It works well if I uncomment the RewriteBase line, but when I do that every 
 other page on the site (that I don't want to rewrite just yet) loses its 
 meta base path and can't find css files or any images.

 Anyone have experience with this module or a better grasp of regex than me?

 Thanks,

 Mik



 
 Michael Muller
 cell (413) 320-5336
 skype: michaelBmuller
 http://MontagueWebWorks.com

 Information is not knowledge
 Knowlege is not wisdom

 Eschew Obfuscation



 



~|
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:330095
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: language for mailer

2010-01-24 Thread Carey Duryea

i was positive there was some hook into creating more efficiency.  just like 
building a dragster, you basically can only go straight, but thats all you 
really wanna do!  i am sort of a beginning developer in CF and a few other 
technologies, but non such as java or C,  i have a potiential contract to build 
such a server device with a web application interface for control of these 
mailing actions. 
i know myself very well, that if i decide to contract this sort of work, i'll 
probably end up reading three books on java.  the more ya knwo, the less you 
pay, i wonder who coined that phrase.  so its like, build java application mail 
server, that exploits resourses, build flex cf web application as interface to 
server application 




There's this (pic at bottom):

http://ha-javamail.sourceforge.net/

Which should give you an idea of javamail's throughput.  Theoretically
ha-javamail should be usable from CF if you drop to the java level.
Dave knows more about what limitations there are on standard vs.
enterprise (spooling, I think?), tho I think if you handle it at the
java level you can do pretty much whatever you'd like.

Dave's right about me being right (which was really him being right a
few days ago :))-- the hardest part is usually managing getting
blacklisted and whatnot, and for the money, a 3rd party who
specializes in handling things like that is worth it.  A couple were
mentioned in a thread just a bit ago.

If I had less fun things to do, I'd see about adding ha-javamail
support to cfjavamail.  That'd be a good feature.

Anyways, if you do go the CF route for sending mail, I've got a
Wiser (part the subethasmtp project) deal for CF that lets you test
SMTP stuff pretty easy (fakes an SMTP server locally).

:Denny

-- 
Every creature is a word of God.
Meister Eckhart 

~|
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:330096
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4