RE: Calling CF template from perl?
Sounds like you can use the HTTP Mod in PERL. HTTP::Request::Common::GET or HTTP::Request::Common::POST If you need a little help - email me off list and I'll see if I can dig up some code for you if you need more help. Chris Christopher Conrad Victoria's Secret Catalogue Limited Technology Services - New Media Senior.Programmer.Analyst http://www.VictoriasSecret.com 614.337.5653 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 23, 2000 9:00 AM To: [EMAIL PROTECTED] Subject: Re: Calling CF template from perl? Thanks for that, but we need to call a ColdFusion template from Perl rather than call Perl from CF - I did download your CF_Perl tag and it looks like a very handy tag which may well come in useful in the future, but unless I am missing something (quite possible!) it won't do what we need in this instance. - Original Message - From: "Raymond K. Camden" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 23, 2000 1:28 PM Subject: RE: Calling CF template from perl? > Two ways, three ways actually: > > CFEXECUTE - Under CF 4.5 > CFHTTP (set up the perl script as a CGI) > CF_Perl, a custom tag I wrote, that allows you to embed the code directly in > the file (but it uses CFEXECUTE as well) > > === > Raymond Camden, Cold Fusion Jedi Master for Syntegra (www.syntegra.com) > Allaire Certified Instructor and Member of Team Allaire > > Email : [EMAIL PROTECTED] > ICQ UIN : 3679482 > > "My ally is the Force, and a powerful ally it is." - Yoda > > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, August 23, 2000 7:49 AM > > To: [EMAIL PROTECTED] > > Subject: Calling CF template from perl? > > > > > > Hi, through a combination of circumstances beyond our control we have > > inherited a Perl script which we need to get running on an NT system. The > > part thats giving us problems is mailing from the script as we > > can't use an > > SMTP server or install any additional software on the NT box > > (don't ask why, > > if we could do it Blat would be on that machine as we speak). > > > > We do have access to CF 4.0 on the server though, so we were > > wondering - can > > we send the email data from the perl script to a CF template > > which would do > > the mailing? The script is set up with a mailing subroutine which > > is passed > > four variables - To, From, Subject and Message, all messages will be > > pre-defined and fairly short in length. > > > > Anyone have any ideas on this? We have a very basic level of Perl > > experience > > so if any answers can not assume we know what we are doing it may > > save time > > ;) > > > > Wayne Putterill > > > > -- > > > > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > > To Unsubscribe visit > http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or > send a message to [EMAIL PROTECTED] with 'unsubscribe' in > the body. > > -- > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. > -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: Calling CF template from perl?
The LWP package works very nicely. I use it in a scheduled environment everyday. DC - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 23, 2000 12:59 Subject: Re: Calling CF template from perl? > Thanks for that, but we need to call a ColdFusion template from Perl > rather > than call Perl from CF - I did download your CF_Perl tag and it looks > like a > very handy tag which may well come in useful in the future, but unless I > am > missing something (quite possible!) it won't do what we need in this > instance. > > - Original Message - > From: "Raymond K. Camden" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, August 23, 2000 1:28 PM > Subject: RE: Calling CF template from perl? > > > > Two ways, three ways actually: > > > > CFEXECUTE - Under CF 4.5 > > CFHTTP (set up the perl script as a CGI) > > CF_Perl, a custom tag I wrote, that allows you to embed the code > directly > in > > the file (but it uses CFEXECUTE as well) > > > > > === > > Raymond Camden, Cold Fusion Jedi Master for Syntegra > (www.syntegra.com) > > Allaire Certified Instructor and Member of Team Allaire > > > > Email : [EMAIL PROTECTED] > > ICQ UIN : 3679482 > > > > "My ally is the Force, and a powerful ally it is." - Yoda > > > > > > > -Original Message- > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > > Sent: Wednesday, August 23, 2000 7:49 AM > > > To: [EMAIL PROTECTED] > > > Subject: Calling CF template from perl? > > > > > > > > > Hi, through a combination of circumstances beyond our control we > have > > > inherited a Perl script which we need to get running on an NT > system. > The > > > part thats giving us problems is mailing from the script as we > > > can't use an > > > SMTP server or install any additional software on the NT box > > > (don't ask why, > > > if we could do it Blat would be on that machine as we speak). > > > > > > We do have access to CF 4.0 on the server though, so we were > > > wondering - can > > > we send the email data from the perl script to a CF template > > > which would do > > > the mailing? The script is set up with a mailing subroutine which > > > is passed > > > four variables - To, From, Subject and Message, all messages will be > > > pre-defined and fairly short in length. > > > > > > Anyone have any ideas on this? We have a very basic level of Perl > > > experience > > > so if any answers can not assume we know what we are doing it may > > > save time > > > ;) > > > > > > Wayne Putterill > > > > > > -- > > > > > > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > > > To Unsubscribe visit > > > http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk > or > > send a message to [EMAIL PROTECTED] with 'unsubscribe' > in > > the body. > > > > > > -- > > > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > > To Unsubscribe visit > http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk > or > send a message to [EMAIL PROTECTED] with 'unsubscribe' > in > the body. > > > > > -- > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > To Unsubscribe visit > http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk > or send a message to [EMAIL PROTECTED] with > 'unsubscribe' in the body. > -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: Calling CF template from perl?
Thanks for that, but we need to call a ColdFusion template from Perl rather than call Perl from CF - I did download your CF_Perl tag and it looks like a very handy tag which may well come in useful in the future, but unless I am missing something (quite possible!) it won't do what we need in this instance. - Original Message - From: "Raymond K. Camden" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 23, 2000 1:28 PM Subject: RE: Calling CF template from perl? > Two ways, three ways actually: > > CFEXECUTE - Under CF 4.5 > CFHTTP (set up the perl script as a CGI) > CF_Perl, a custom tag I wrote, that allows you to embed the code directly in > the file (but it uses CFEXECUTE as well) > > === > Raymond Camden, Cold Fusion Jedi Master for Syntegra (www.syntegra.com) > Allaire Certified Instructor and Member of Team Allaire > > Email : [EMAIL PROTECTED] > ICQ UIN : 3679482 > > "My ally is the Force, and a powerful ally it is." - Yoda > > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, August 23, 2000 7:49 AM > > To: [EMAIL PROTECTED] > > Subject: Calling CF template from perl? > > > > > > Hi, through a combination of circumstances beyond our control we have > > inherited a Perl script which we need to get running on an NT system. The > > part thats giving us problems is mailing from the script as we > > can't use an > > SMTP server or install any additional software on the NT box > > (don't ask why, > > if we could do it Blat would be on that machine as we speak). > > > > We do have access to CF 4.0 on the server though, so we were > > wondering - can > > we send the email data from the perl script to a CF template > > which would do > > the mailing? The script is set up with a mailing subroutine which > > is passed > > four variables - To, From, Subject and Message, all messages will be > > pre-defined and fairly short in length. > > > > Anyone have any ideas on this? We have a very basic level of Perl > > experience > > so if any answers can not assume we know what we are doing it may > > save time > > ;) > > > > Wayne Putterill > > > > -- > > > > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > > To Unsubscribe visit > http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or > send a message to [EMAIL PROTECTED] with 'unsubscribe' in > the body. > > -- > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. > -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Calling CF template from perl?
Two ways, three ways actually: CFEXECUTE - Under CF 4.5 CFHTTP (set up the perl script as a CGI) CF_Perl, a custom tag I wrote, that allows you to embed the code directly in the file (but it uses CFEXECUTE as well) === Raymond Camden, Cold Fusion Jedi Master for Syntegra (www.syntegra.com) Allaire Certified Instructor and Member of Team Allaire Email : [EMAIL PROTECTED] ICQ UIN : 3679482 "My ally is the Force, and a powerful ally it is." - Yoda > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 23, 2000 7:49 AM > To: [EMAIL PROTECTED] > Subject: Calling CF template from perl? > > > Hi, through a combination of circumstances beyond our control we have > inherited a Perl script which we need to get running on an NT system. The > part thats giving us problems is mailing from the script as we > can't use an > SMTP server or install any additional software on the NT box > (don't ask why, > if we could do it Blat would be on that machine as we speak). > > We do have access to CF 4.0 on the server though, so we were > wondering - can > we send the email data from the perl script to a CF template > which would do > the mailing? The script is set up with a mailing subroutine which > is passed > four variables - To, From, Subject and Message, all messages will be > pre-defined and fairly short in length. > > Anyone have any ideas on this? We have a very basic level of Perl > experience > so if any answers can not assume we know what we are doing it may > save time > ;) > > Wayne Putterill > > -- > > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: Calling CF template from perl?
Can't you use the Net::SMTP module ??? or to call the cf using "libwww-perl (LWP) modules" , something like ... use LWP::Simple; $content = get($URL); you'll need to encode the URL you send more @ http://www.perl.com/pub/doc/manual/html/pod/perlfaq9.html or www.cpan.org to get the modules. ~Justin MacCarthy - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 23, 2000 12:48 PM Subject: Calling CF template from perl? > Hi, through a combination of circumstances beyond our control we have > inherited a Perl script which we need to get running on an NT system. The > part thats giving us problems is mailing from the script as we can't use an > SMTP server or install any additional software on the NT box (don't ask why, > if we could do it Blat would be on that machine as we speak). > > We do have access to CF 4.0 on the server though, so we were wondering - can > we send the email data from the perl script to a CF template which would do > the mailing? The script is set up with a mailing subroutine which is passed > four variables - To, From, Subject and Message, all messages will be > pre-defined and fairly short in length. > > Anyone have any ideas on this? We have a very basic level of Perl experience > so if any answers can not assume we know what we are doing it may save time > ;) > > Wayne Putterill > > -- > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. > > -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.