> I have a cfmail question.  Im building a site for alphanumeric paging 
> and
> ive come across a problem.  Our pagers accept 260 characters.  Id 
> like to
> make it so that anything after 260 characters is sent in a seperate 
> email so
> that there is no real character limit to paging.  Is this possible, 
> and how
> would i do it.

Emmet,

You don't say where your mail message text is coming from, but you could
do this:

<cfset MaxMsgLen = 260>
Loop from 1 to (Len(MessageText)/MaxMsgLen)+1
   <cfmail>
   Mid(MessageText,(loopindex-1)*MaxMsgLen+1,MaxMsgLen )
   </cfmail>
End loop

You could add some helpful text, such as "Part 2 of 4 parts."  You'd have
to shorten the message text accordingly.

-David
________________________________________________________________
YOU'RE PAYING TOO MUCH FOR THE INTERNET!
Juno now offers FREE Internet Access!
Try it today - there's no risk!  For your FREE software, visit:
http://dl.www.juno.com/get/tagj.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
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.

Reply via email to