i suspect end = 0 Which means your 'this is the footer' include isnt being found.
Main Topics
Browse All TopicsI found the following code to output content from web pages
<CFHTTP URL="http://collegenet/Pol
METHOD="GET"
RESOLVEURL="true">
<CFSET Start = Find('<!-- Main body of page -->',cfhttp.filecontent)>
<CFSET End = Find('<!-- This is the footer include. -->',cfhttp.filecontent,St
<CFSET Content = mid(cfhttp.filecontent,Sta
<CFOUTPUT>#content#</CFOUT
When I try and use it I get the following in the debug.......
Parameter 3 of function Mid which is now -13412 must be a non-negative integer
The error occurred in C:\Inetpub\wwwroot\emailbl
54 : <CFSET Start = Find('<!-- Main body of page -->',cfhttp.filecontent)>
55 : <CFSET End = Find('<!-- This is the footer include. -->',cfhttp.filecontent,St
56 : <CFSET Content = mid(cfhttp.filecontent,Sta
57 : <CFOUTPUT>#content#</CFOUT
58 :
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Here is the html page.
<html>
<head>
<title>Member_e-mail policy</title>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#3333ff" vlink="#3333ff" alink="#FF0000">
<center>
<!-- This is the include for the top navigation bar and quick search bar. -->
<!--#include virtual="includes/header.i
<table width=600 cellspacing=0 cellpadding=2 border=0>
<tr valign=top>
<td width=116 bgcolor="ffffcc">
<!-- This is the include for the side navigation bar. -->
<!--#include virtual="includes/sidenav-
<td width=2>
</td>
<td width=482>
<!-- Main body of page -->
<table width=460 cellpadding=2 cellspacing=0 border=0 align=left>
<tr valign=top>
<td width="456">
<table width="100%" border="0" bgcolor="#ffffff">
<tr valign=top>
<td><font size="4" face="Arial, Helvetica, sans-serif"><b></b></font>
</tr>
</table>
<table border="1" cellpadding="7" cellspacing="1" width="100%" bordercolor="#000000">
<tr>
<td width="34%" valign="TOP">
<p><font size="3"><b>Policy Index:</b> <br>
MC-002 </font></p>
<p><font size="3"><b>Policy Title:<br>
</b> E-mail Communications to ACP Members</font></p>
<p>
</td>
<td width="30%" valign="TOP">
<p><font size="3"><b>Originator:<br
</b>David Sgrignoli, SVP, Marketing & Comm<b></b></font></p>
<p><font size="3"><b>Date Originated:</b> 11/20/2001</font>
</td>
<td width="36%" valign="TOP" bgcolor="#ffffff">
<p><font size="3"><b>Senior Staff Sponsor:<br>
</b></font><font size="3">David Sgrignoli</font></p>
<p><font size="3"><b>Senior Staff Review Date:<br>
</b></font><font size="3">December 18, 2001</font> </p>
</td>
</tr>
<tr>
<td width="34%" valign="TOP">
<p> </p>
</td>
<td width="30%" valign="TOP">
<p><font size="3"><b>Revised by: </b><br>
</font></p>
<p><font size="3"><b>Date Revised:</b> </font>
</td>
<td width="36%" valign="TOP" bgcolor="#ffffff">
<p><font size="3"><b>EVP/CEO Approval:<br>
</b>Walter J. McDonald, MD, FACP<br>
<br>
<b>Date Approved:</b><br>
December 18, 2001<br>
<b>BOR Approval:</b> January 26-27, 2002</font></p>
</td>
</tr>
</table>
<table border="0" cellpadding="7" cellspacing="0" width="100%" height="958">
<tr>
<td valign="TOP" height="1364">
<p>
<p> </p>
<p><b><font face="Times New Roman, Times, serif">Rationale</font></b
</font>E-mail communications to members is becoming an increasingly
important medium to:<br>
</p>
<ol>
<li> Inform members about College programs, products, and
services;</li>
<li>Elicit feedback and input from members;</li>
<li> Drive traffic to the College Web site; and</li>
<li> Rapidly communicate with the membership on national
emergencies, critical public health alerts, and important
calls-to-action.</li>
</ol>
<p>In addition to enhancing the College’s member communications
effectiveness, increased use of e-mail will help reduce
expenses associated with production and distribution of
printed materials.</p>
<p>The College currently maintains a database of member e-mail
addresses and is engaged in an intensive campaign to collect
e-mail addresses for all members.</p>
<p><b>Policy:</b></p>
<p>To facilitate the College’s judicious management and use
of members’ e-mail addresses.
<ol>
<li> College e-mail communications to members must be used
for conveying information that is useful and valuable
to internists and/or their patients; </li>
<li>Information disseminated to members via E-mail must
be succinct, accurate, and well written; and</li>
<li> Members must not be inundated with College e-mail thus
rendering College e-mail intrusive and ineffective.</li>
</ol>
<p>This policy governs three categories of College E-mail
communications with members:</p>
<ol>
<li> Urgent communications to the membership</li>
<li> E-mail communications with governance </li>
<li> Optional E-mail services that members can elect to
receive<br>
</li>
</ol>
<p>This policy does not restrict the use of automatic e-mail
services that are an integral part of a College product’s
user interface—such as, the delivery of a CME certificate
upon completion of an educational program, e-mail confirmation
of event registration or product order, or the announcement
of new enhancements for an online College product. </p>
<p><b>1.
policy</b></p>
<p>The College will not share, sell, or lease member e-mail
addresses with any other organization. The College will
use member e-mail addresses for the sole purpose of conducting
College business and for communicating with College members.
This e-mail privacy policy shall apply to all e-mail lists
maintained by headquarters, by Chapters, or by any other
officially sanctioned ACP agent. </p>
<p><b>2.
communications (no opt-out) </b></p>
<p>Certain circumstances require that the College rapidly
communicate with its membership. The most effective method
for rapid communication with the ACP membership is via e-mail.</p>
<p>Urgent communication via e-mail to the entire membership
likely will fall into one of the following categories: </p>
<ul>
<li> <u>National emergencies and critical public health
alerts:</u> Examples include requests from the Secretary
of Health and Human Services or the Director of the Center
for Disease Control and Prevention to rapidly disseminate
information to our physician members. <br>
</li>
<li> <u>Critical, time-sensitive information on legislative,
regulatory, and public policy issues affecting internists
and their patients</u>. Use of e-mail for such purposes
is expected to be rare and would be appropriate only in
instances where rapid communication to the entire membership
is the best—or the only way—for the College to communicate
the desired information in a timely and cost-effective
manner. <br>
<br>
<p><b>Examples</b>: </p>
<p>—calls to action on an urgent vote in Congress on an
issue that is of such critical importance to patient
care and internal medicine that a general membership
alert and call to action is deemed to be appropriate.</p>
<p>—informing members about an imminent regulatory, reimbursement,
or other federal policy that would have a direct impact
on members' practices and one for which they will need
to take some immediate action as a result of the policy.</p>
</li>
</ul>
<p><br>
The EVP/CEO or DEVP/COO will make a determination on the
use of e-mail for such purposes based on the recommendation
of the SVP of Governmental Affairs and Public Policy. All
other time-sensitive information on public policy issues
will be communicated via select "opt-out" lists
such as the Advocacy Key Contact list (see # 5: <a href="#_Optional_E-mail_Se
E-mail Services for Members</a>) or through regularly scheduled
e-mail communications with members (see # 4: <a
href="#_Regularly_schedule
to Members</a>).<br>
<br>
</p>
<ul>
<li> <u>Important announcements from the College.</u><b>
</b>Examples may include the announcement of a new EVP/CEO,
resolution on ABIM recertification, Annual Session, the
launch of a significant new College product such as PIER
and MKSAP 13, etc. Because of the expected frequency
of announcements that fall into this category, it is recommended
that the College establish a regularly scheduled e-mail
communication to inform members about College news (See
#4: <a
href="#_Regularly_schedule
to Members</a> below). As deemed appropriate by the Executive
Office, special College announcements of an important
and urgent nature will be distributed to the entire membership
in addition to this regular College news vehicle.</li>
</ul>
<p><b>Only the EVP/CEO or DEVP/COO can authorize an e-mail
communication to the entire membership e-mail list. </b></p>
<p>All requests for e-mail communications to the entire membership
e-mail list shall be made through the Director of Communications
(or his/her designee). The Director of Communications will
in turn advise the initiator as to whether the request satisfies
the criteria (to be established by the Executive Office).
If it does, the Director of Communications will seek the
EVP/CEO or DEVP/COO’s approval to proceed.</p>
<p>Once approved, the e-mail message will be written by the
Communications Department (for national emergencies and
critical public health alerts and important College announcements)
or the Public Affairs Department (for calls-to-action on
key legislative and/or regulatory issues) to ensure style
consistency. The Communications or Public Affairs Department
will seek the approval of the initiator to ensure the accuracy
of the e-mail message content. Final approval of the message
content will be the responsibility of the EVP/CEO and/or
DEVP/COO. </p>
<p>There will not be an opt-out provision for e-mail communications
covered under this section. </p>
<p><b>3.
with governance (no opt-out)</b></p>
<p>The College maintains e-mail lists for various governance
groups and routinely distributes information to these lists.
Governance lists are used on an as-needed basis to conduct
College business. Governance lists are based on appointments
by the elected leadership, Regents or Governors. These
include: </p>
<ul>
<li> Board of Regents</li>
<li> Board of Governors </li>
<li>Committees and Councils </li>
<li> College Representatives</li>
<li> Chapter Leader Network</li>
</ul>
<p>E-mail communications to governance is managed by assigned
staff liaisons. Because these are governance appointments,
there is no opt-out provision for these e-mail communications.</p>
<p><b><a name="_Regularly_scheduled
Regularly scheduled e-mail communications with members (opt-out)</b></p>
<p>The College will develop e-mail communications to routinely
inform members of programs and services available through
the College and to promote benefits of membership. <i>College
Update</i>, produced monthly, currently serves this purpose
but is currently distributed to only the College leadership.
It is recommended that <i>College Update </i>be modified
as necessary to serve as a brief e-mail communication and
be distributed to the entire ACP membership on an “opt-out”
basis. It is recommended that <i>College Update</i> be
distributed on a monthly basis. Content for <i>College
Update</i> will continue to require the approval of the
EVP/CEO and/or DEVP/COO.</p>
<p><b>5.
services for members (opt-in)<a
name="_Optional_E-mail_Ser
<p>E-mail distribution of the following College services is
available to all members and is considered optional: </p>
<ul>
<li> <i>Observer Express</i></li>
<li> <i>IMpact </i>student member newsletter</li>
<li> Associate E-News</li>
<li>Advocacy Key Contacts list</li>
<li> <i>Annals</i> Table of Content list</li>
<li> PIER Updates</li>
</ul>
<p>To inform members of the availability of these e-mail services,
e-mail announcements to the entire membership will be conducted
periodically. These announcements will be subject to the
terms outlined above in the section “e-mail as a rapid response
medium.” Announcements will include links to the online
versions of these newsletters and services. </p>
<p>From the ACP Online Web site, members will be able to opt-in
to receive these various services.</p>
<p>All optional e-mail services must have an opt-out feature
to enable members to be removed from the e-mail list upon
request.<br>
</p>
<p>Optional E-mail services are governed by the College’s
Policies, Procedures & Standards for E-mail Publishing
and Communications. </p>
<p>Content for these services <u>does not require approval</u>
by the EVP/CEO or DEVP/COO. </p>
<p>The Communications Department will maintain a record of
all e-mail communications that are distributed to 5000 or
more members. The initiator of any e-mail distribution
exceeding 5000 shall notify the Director of Communications.
The SVP, Marketing & Communications will report to the
Senior Staff annually on the use of e-mail communications.
</p>
<p><b>6.
<p>Member e-mail addresses can be used for conducting College
surveys of the membership. All e-mail surveys shall be
coordinated through the ACP Research Center. To avoid excessive
surveying of members, approval for all membership surveys
must be obtained from the EVP/CEO or DEVP/COO.</p>
<p><b>7.
and management</b></p>
<p>College governance will be notified of all e-mail communications
that are distributed to the entire College e-mail list.
This will be done by posting an announcement of the e-mail
communication on the RIC, GIC, and Commons Web sites.</p>
<p>The College Staff Leadership Group will also be notified
in advance of all e-mail communications that are distributed
to the entire College e-mail list. </p>
<p><b>8.
log<u> </u></b></p>
<p>The Communications Department will maintain a record of
all e-mail communications that are distributed to 5000 or
more members. The initiator of any e-mail distribution
exceeding 5000 shall notify the Director of Communications.
</p>
<p><b>9.
</u></b>Governors and their designated representative(s)
will have access to updated e-mail lists of Chapters members
upon request.<br>
</p>
<p><b>Administration:</b><
<p>Communications Department and Executive Office.</p>
<p><b>Divisions Affected:</b> </p>
<p>All
<p><b>Procedure:</b></p>
Included in policy discussion.
</td>
</tr>
<tr>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- This is the footer include. -->
<!--#include virtual="includes/footer.i
</center>
</body></html>
It seems that the problem comes from the redirect at www.collegenet.com. When I put the body of your htm page into a new file and attempted to read that new file, it worked exactly as you would have expected. When you output the contents of the cfhttp.filecontent object you get a "Connection Refused" error. If you have access to the server, you can use:
<cffile action="read" file="[server-path-to-file
<cfset start = find('<!-- Main body of page -->', content) />
<cfset end = find('<!-- This is the footer include. -->', content) />
<cfset output = mid(content, start, end-start) />
<cfoutput>#output#</cfoutp
Whenever you do an operation like this first you should have:
<cffile action="read" file="[server-path-to-file
<cfset start = find('<!-- Main body of page -->', content) />
<cfset end = find('<!-- This is the footer include. -->', content) />
<cfif start EQ -1 OR end EQ -1>
the search strings were not found
<cfelse>
<cfset output = mid(content, start, end-start) />
</cfif>
Always, always check the results of find operations before using in a subtraction where you then pass into Mid....
Business Accounts
Answer for Membership
by: CFDevHeadPosted on 2005-11-01 at 12:15:25ID: 15203294
can you member_e-mail policy file somewhere we can see it?