Cfmail - wraptext problems

I usually only do a wraptext in the cfmailpart for the text
version of my emails, but recently put it in my cmail call because
I had complaints that lines were too long for people who received
it on a blackberry (which was set to take HTML). Now it's inserting
a %0A in random places (like between a two letters in an image
call, i.e. e%0Amail_logo2.jpg and basically messing up the HTML
versions. Is there a way around this? Thanks in advance! Using CFMX
6.1 on Windows

This is normal.
CfLib.org has smarter wrap functions.

Similar Messages

  • Cfmail dash problems

    Does coldfusion 7 support having an email address with a dash
    in it. ie
    [email protected]
    I am getting this error in the log.
    Invalid Addresses; nested exception is: class
    javax.mail.SendFailedException: 501 5.5.4 Invalid Address
    This is proving to be a big problem as dealing with many
    users who have email addresses in this format.
    Is there any workaround - ie converting email address to
    ascii ??
    Any help would be much appreciated.
    Cheers

    FYI...our organization has a dash (-) in the domain name and
    have no problems sending email via cfmail.
    We're running CFMX7.0.2
    Good luck

  • Cfmailpart type="text" errors

    I cam trying to send an email message with the use of the
    cfmail tag like so:
    <cfmail from = "myemail" To = "myemail" Subject =
    "mysubject">
    <cfmailpart type="text" wraptext="72">
    Plain text content (roughly 2 ms word pages)
    </cfmailpart>
    <cfmailpart type="html">
    My HTML equivalent to the above content.
    </cfmailpart>
    </cfmail>
    My problem is the the content within the text version breaks
    at various point so different lines instead of the expected wrap at
    line 72. Some lines are only going about 20 characters or so and
    very inconsistent. Also, when testing the mail to an outside
    account such as hotmail, yahoo etc.. the mail is not getting
    delivered.
    Anyone else encounter anything similar.

    W (87) e (101) l (108) c (99) o (111) m (109) e (101) (32) t
    (116) o (111) (32) t (116) h (104) e (101) (32) V (86) i (105) m
    (109) y (121) (32) e (101) - (45) n (110) e (101) w (119) s (115) l
    (108) e (101) t (116) t (116) e (101) r (114) ! (33) (32) T (84) h
    (104) e (101) (32) g (103) o (111) a (97) l (108) (32) o (111) f
    (102) (32) t (116) h (104) i (105) s (115) (32) n (110) e (101) w
    (119) s (115) l (108) e (101) t (116) t (116) e (101) r (114) (32)
    i (105) s (115) (32) t (116) o (111) (32) k (107) e (101) e (101) p
    (112) (32) y (121) o (111) u (117) (32) u (117) p (112) - (45) t
    (116) o (111) - (45) d (100) a (97) t (116) e (101) (32) o (111) n
    (110) (32) t (116) h (104) e (101) (32) 9 (57) 0 (48) t (116) h
    (104) (32) a (97) n (110) n (110) i (105) v (118) e (101) r (114) s
    (115) a (97) r (114) y (121) (32) o (111) f (102) (32) t (116) h
    (104) e (101) (32) B (66) a (97) t (116) t (116) l (108) e (101)
    (32) o (111) f (102) (32) V (86) i (105) m (109) y (121) (32) R
    (82) i (105) d (100) g (103) e (101) (32) a (97) n (110) d (100)
    (32) d (100) e (101) d (100) i (105) c (99) a (97) t (116) i (105)
    o (111) n (110) (32) o (111) f (102) (32) t (116) h (104) e (101)
    (32) r (114) e (101) s (115) t (116) o (111) r (114) e (101) d
    (100) (32) C (67) a (97) n (110) a (97) d (100) i (105) a (97) n
    (110) (32) N (78) a (97) t (116) i (105) o (111) n (110) a (97) l
    (108) (32) V (86) i (105) m (109) y (121) (32) M (77) e (101) m
    (109) o (111) r (114) i (105) a (97) l (108) . (46) (32) E (69) v
    (118) e (101) r (114) y (121) (32) s (115) e (101) c (99) o (111) n
    (110) d (100) (32) M (77) o (111) n (110) d (100) a (97) y (121) ,
    (44) (32) y (121) o (111) u (117) (32) c (99) a (97) n (110) (32) e
    (101) x (120) p (112) e (101) c (99) t (116) (32) a (97) n (110)
    (32) u (117) p (112) d (100) a (97) t (116) e (101) , (44) (32) l
    (108) i (105) k (107) e (101) (32) t (116) h (104) i (105) s (115)
    (32) o (111) n (110) e (101) , (44) (32) w (119) i (105) t (116) h
    (104) (32) u (117) s (115) e (101) f (102) u (117) l (108) (32) t
    (116) i (105) p (112) s (115) (32) a (97) n (110) d (100) (32) i
    (105) m (109) p (112) o (111) r (114) t (116) a (97) n (110) t
    (116) (32) d (100) e (101) t (116) a (97) i (105) l (108) s (115)
    (32) a (97) b (98) o (111) u (117) t (116) (32) t (116) h (104) e
    (101) (32) e (101) v (118) e (101) n (110) t (116) s (115) (32) h
    (104) a (97) p (112) p (112) e (101) n (110) i (105) n (110) g
    (103) (32) i (105) n (110) (32) F (70) r (114) a (97) n (110) c
    (99) e (101) (32) a (97) n (110) d (100) (32) C (67) a (97) n (110)
    a (97) d (100) a (97) (32) t (116) o (111)

  • Dash (-) problems in to param of cfmail tag

    Does coldfusion 7 support having an email address with a dash
    in it. ie
    [email protected]
    I am getting this error in the log.
    Invalid Addresses; nested exception is: class
    javax.mail.SendFailedException: 501 5.5.4 Invalid Address
    This is proving to be a big problem as dealing with many
    users who have email addresses in this format.
    Is there any workaround - ie converting email address to
    ascii ??
    Any help would be much appreciated.
    Cheers

    just put actual string
    http://mysite/usermailregistrationpage?code=ADGBDGDFGAXAFADFDA
    in the mail body, without surrounding it with <a> or
    anything.
    if your cfmail type is plain (default) it will be shown as
    text, while
    more recent email application may automatically show it as
    link
    (Thunderbird does).
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

  • Cfmail problem

    I have a fomr with a query populated select box. When a user
    selects their name from the box I am passing their email address
    along with ohter contact info to the action page like so:
    <select name="AgentName" size="1">
    <option>-- Select Name --</option>
    <cfoutput query="Agent">
    <option
    value="#AgentName#,#email#,#VoiceMail#,#CellPhone#">#AgentName#</option>
    </cfoutput>
    </select>
    This works like a charm BUT on the action page I have a
    slight problem.
    <cfmail
    to="[email protected]"
    from= "form.AgentName"
    bcc="[email protected]"
    subject="New Work Order Request for Marketing Dept."
    server="mail.360buyers.com"
    username="[email protected]"
    password="PW">
    Requestor's Information:
    #form.AgentName#
    #form.balanceofoutput# , etc.
    The problem is the output in the from field is a comma
    separated set of values: agent name, email address, voice mail,
    cell phone. When the recipient hits the reply button the "To" field
    in the response message contains all the data including agent name,
    email address, voice mail, cell and of course this fails.
    How can I separate or identify the from email address so the
    recipient can just reply to the message when the get it::;
    I have tried <cfset form.email = reply> without
    success. Nothing happens.
    Can someone please point me in the right direction? Thank you
    in advance.

    Thanks for the response, Dempster. I have tried doing what
    you suggested and think you have a good point regarding the comma
    in a name. I actually have that situation and never thought about
    it before.
    Anyway, I am throwing errors (Id not defined in form) when I
    write the query on the cfmail page; the query reads:
    <cfquery name="AgentData" datasource="TripStats"
    username="un" password="pw">
    Select ID,AgentName,VoiceMail,CellPhone,eMail
    From Agent
    Where ID = 'Form.ID'
    </cfquery>
    The the select list again is:
    <td colspan="3"><select name="AgentName"
    size="1">
    <option>-- Select Name --</option>
    <cfoutput query="Agent">
    <option
    value="#ID#,#AgentName#,#email#,#VoiceMail#,#CellPhone#">#AgentName#</option>
    </cfoutput>
    </select>
    Does that make sense?

  • Cfmail problems

    Sorry for starting a new post with this but wasnt getting any
    replies so thought it might have been getting lost.
    I had my cf mail workng fine then i did something (not sure
    what) and have been trying to get it working again for a week.
    problem --> everything seems to function alright but the
    mails dont end up in my inbox
    thanks for any help
    helplessly hopeless
    link -
    http://www.healthhokkaido.com/files/contact_us.cfm
    using this code
    <cfif isDefined("form.foil") and Trim(form.foil) IS NOT
    "orange">
    <!--- bad submission. do nothing. --->
    <cfelseif isDefined("form.process")>
    <!--- Send the message to yourself, when the user posts it
    on your site. --->
    <CFMAIL to="[email protected]" from="#ContactEmail#"
    Subject="Contact From YourSite.Com">
    #ContactMessage#
    Message By: #ContactName# - #ContactEmail#
    ========================================
    </CFMAIL>
    <!--- Send one to the person writing, thanking them and
    reminding them what they wrote. --->
    <CFMAIL to="#ContactEmail#" from="From Email" Subject="The
    Subject!">
    Thank you for your message,
    healthhokkaido will be in touch as soon as possible!
    You wrote:
    #ContactMessage#
    Message By: #ContactName# - #ContactEmail#
    ========================================
    </CFMAIL>
    Thank you for contacting us. We will be in touch as soon as
    possible.
    <!--- If "Process" is not defined, let's show the form:
    --->
    <CFELSE>
    <cfoutput><form action="#cgi.script_name#"
    method="post"></cfoutput>
    <input type="hidden" name="Process" Value="1">
    Name: <br><input type="text" class="txtBoxes"
    name="ContactName"><br>
    <input type="hidden" name="ContactName_required"
    value="Please Enter Your Name!">
    E-mail: <br><input type="text" class="txtBoxes"
    name="ContactEmail"><br>
    <input type="hidden" name="ContactEmail_required"
    value="Please Enter Your Email Address!">
    Message: <br> <textarea name="ContactMessage"
    class="txtBoxes" rows="10" cols="20"></textarea>
    <input type="hidden" name="ContactMessage_required"
    value="Please Enter A Message.">
    <script src="foil.js"
    type="text/JavaScript"></script>
    <noscript><br>
    <td>Enter 'orange' here:</td><br>
    <td><input name='foil'/></td>
    </noscript>
    <br><br>
    <input type="submit" id="butComment" value="Send">
    </form></cfif>
    any ideas
    regards
    Mark

    Try this on a page:
    <cfmail
    from = "[email protected]"
    to = "[email protected]"
    subject = "CF Email Test"
    server="mail.yoursite.com"
    username="[email protected]"
    password="somepassword">
    This is a test
    </cfmail>
    Change the server, username and password to your server and a
    valid email user on that server.
    Ken Ford
    Adobe Community Expert
    Fordwebs, LLC
    http://www.fordwebs.com
    "quiero mas" <[email protected]> wrote in message
    news:f2gtpu$1ik$[email protected]..
    > Hi thanks for the advice - how do i make a simple mail
    test script?
    >
    > btw i am a begineer
    >
    > Many thanks

  • Server side validation for file type with cffil sent via cfmail problem

    Hello;
    I have a small app that I need to allow users to be able to use a form, and send me and email with a file attachment. I have it working nicely, I included file manipulation into the validation process of the form and required form fields. The problem I'm having, is this. I'm trying to create and instance where if they try and upload lets say a pdf, it throws and error: "You are trying to upload the wrong file, please try again we only accept bla bla bla" Problem is, even if I'm uploading the proper file, it's rejecting it and deleting it. Can someone help me fix this? I've tried a number of different ways and can't seem to get this to go off properly. I am posting some of the code. There is a ton, so I'm posting the main parts so you get the idea and see my variables.
    <!--- Declairing my variables and setting up form validation--->
    <cfparam name="FORM.descript" type="string" default=""/>
    <cfparam name="FORM.attachment_1" type="string" default=""/>
    <cfset arrErrors = ArrayNew( 1 ) />
    <cfset showForm = true>
    <cfif structKeyExists(form, "sendcomments")>
    <cfif NOT len(trim(FORM.name))>
    <cfset ArrayAppend(arrErrors,"Your Full Name!<br>") />
    </cfif>
    <!--- This is where the file error control is as you can see how the name is validated, the file will be dealt with in a similar maner--->
    <cfif NOT Len(Trim(FORM.attachment_1))>
    <cfset ArrayAppend(arrErrors,"You didn't attach a file!<br>") />
    <cfelseif ArrayLen( arrErrors )>
    <cftry>
    <cffile action="DELETE" file="#FORM.resume#"/>
    <cfcatch>
    <!--- File delete error. --->
    </cfcatch>
    </cftry>
    <cfelse>
    <!--- no errors with the file upload so lets upload it--->
    <cftry>
    <cfset request.AcceptImage="image/gif,image/jpg,image/jpeg,image/pjpeg,image/x-png">
    <cffile action="upload"
                     filefield="attachment_1"
                     accept="#request.AcceptImage#"
                     destination="c:\websites\187914Kg3\uploads\"
                     nameconflict="Makeunique">
    <!---
    Now that we have the file uploaded, let's
    check the file extension. I find this to be
    better than checking the MIME type as that
    can be inaccurate (so can this, but at least
    it doesn't throw a ColdFusion error).
    --->
    <cfif NOT ListFindNoCase("request.AcceptImage",CFFILE.ServerFileExt)>
    <cfset ArrayAppend(arrErrors,"Only JPEG, GIF, and PNG file formats are accepted!<br>") />
    <!---
    Since this was not an acceptable file,
    let's delete the one that was uploaded.
    --->
    <cftry>
    <cffile action="DELETE" file="#CFFILE.ServerDirectory#\#CFFILE.ServerFile#"/>
    <cfcatch>
    <!--- File Delete Error. --->
    </cfcatch>
    </cftry>
    </cfif>
    <!--- This is the code that is causing my problem. The above code is saying everything is not the proper file and rejecting it all--->
    Can anyone help me out. I can make more of this code available if needed. Like i said, there's a lot and I didn't want to dump it all out, this is the section creating the problem. There are no errors at this time, just rejecting all file types.
    thank you.

    It appears you are comparing your content_length with 1MB.
    1KB: 1024 bytes
    1MB: 1024*1024 bytes
    Let us use max allowable size of 25KB here and amend the second half of our code.
    <!--- Set max allowable file size in KB at the top --->
    <cfset maxFileSize = 25>
          <!--- Check if file is an image file of acceptable size --->
          <cfif (#reFindNoCase("gif|jpg|jpeg|pjpeg|png",myResult.clientFileExt, 1)# EQ 1) AND (#myResult.FileSize# LTE (#maxFileSize#*1024))>
                <!--- Retain if right file type and size --->
                <p>
                Your file <strong>#myResult.clientFile#</strong> has been uploaded successfully!<br />
                <a href="yourTemplate.cfm">Back</a></p>
                <!--- Otherwise if wrong type --->
          <cfelseif #reFindNoCase("gif|jpg|jpeg|pjpeg|png",myResult.clientFileExt, 1)# NEQ 1>
                <p>
                You are trying to upload a <strong>#myResult.clientFileExt#</strong> file, please try again. We only accept <strong>gif, jpg, jpeg, and png</strong>.
                </p>
                <!--- Delete unacceptable file and show form to user to try again--->  
                <cffile action="delete"  file="#svrFile#" />
                      <form method="post" action=#cgi.script_name# 
                      name="uploadForm" enctype="multipart/form-data">
                      <input name="attachment_1" type="file">
                      <br>
                      <input name="submit" type="submit" value="Try again!">
                </form>
                <!--- Or size too large --->
          <cfelseif #myResult.FileSize# GT (#maxFileSize#*1024)>
                <p>
                Your file was too large (<strong>#numberFormat(myResult.fileSize/1024, "____.__")# KB</strong>). Please try a smaller file!
                </p>
                <!--- Delete file and show form--->
                <cffile action="delete"  file="#svrFile#" />
                      <form method="post" action=#cgi.script_name# 
                      name="uploadForm" enctype="multipart/form-data">
                      <input name="attachment_1" type="file">
                      <br>
                      <input name="submit" type="submit" value="Try again!">
                </form>
          </cfif>
    </cfif>        <!--- Closes the cfif tag which started from the first half --->
    </cfoutput><!--- ditto --->

  • Problem with vCalendar in CFMail tag

    I've created an Outlook meeting invitation using cfmail and vCalendar and it works under normal conditions. But I have an event that is a three-day class. I attempt to create three invitations within the same cfm file, using three diffeent cfmail tags and using different times, subjects, descriptions, and summaries in the vCalendar. But when the three invitations arrive in my Outlook mailbox, Outlook thinks they are all the same event and posts tentative appointment to the last of the three days, but not to day 1 or day 2. Anyone have any clues as to what I'm doing wrong?
    <cfmail to="#form.email#" from="#fromemail#" subject="Event to be named" type="multipart">
    <cfmailparam name="content-class" value="urn:content-classes:calendarmessage">
    <cfmailparam name="Content-Type" value="text">
    <cfmailparam name="method" value="REQUEST">
    <cfmailparam name="charset" value="utf-8">
    <cfmailparam name="Content-Transfer-Encoding" value="7bit">
    <cfmailpart type="text">
    This is your meeting invitation for the following Insurance Administration Training and Development Class:
    August Annuity University Day 3
    </cfmailpart>
    <cfmailpart type="text/calendar">
    BEGIN:VCALENDAR
    PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN
    VERSION:2.0
    METHOD:PUBLISH
    BEGIN:VEVENT
    DTSTART:20090820T140000Z
    DTEND:20090820T170000Z
    LOCATION:C5 Main
    TRANSP:OPAQUE
    SEQUENCE:0
    UID:0
    DTSTAMP:#tmstmp#
    DESCRIPTION;ENCODING=QUOTED-PRINTABLE:Insurance Administration Annuity University-- August Day 3\n
    SUMMARY:Class
    PRIORITY:5
    X-MICROSOFT-CDO-IMPORTANCE:1
    CLASS:PUBLIC
    END:VEVENT
    END:VCALENDAR
    </cfmailpart>
    </cfmail>
    </cfif>
    <cfif form.session eq "AnnU-2">
      <cfmail to="#form.email#" from="#fromemail#" subject="November Day 2 Annuity University Insurance Administration Training and Development Class" type="multipart">
    <cfmailparam name="content-class" value="urn:content-classes:calendarmessage">
    <cfmailparam name="Content-Type" value="text">
    <cfmailparam name="method" value="REQUEST">
    <cfmailparam name="charset" value="utf-8">
    <cfmailparam name="Content-Transfer-Encoding" value="7bit">
    <cfmailpart type="text">
    This is your meeting invitation for the following Insurance Administration Training and Development Class:
    August Annuity University Day 2
    </cfmailpart>
    <cfmailpart type="text/calendar">
    BEGIN:VCALENDAR
    PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN
    VERSION:2.0
    METHOD:PUBLISH
    BEGIN:VEVENT
    DTSTART:20091118T150000Z
    DTEND:20091118T180000Z
    LOCATION:C5 Main
    TRANSP:OPAQUE
    SEQUENCE:0
    UID:0
    DTSTAMP:#tmstmp#
    DESCRIPTION:Insurance Administration Annuity University--August Day 2\n
    SUMMARY:summary
    PRIORITY:5
    X-MICROSOFT-CDO-IMPORTANCE:1
    CLASS:PUBLIC
    END:VEVENT
    END:VCALENDAR
    </cfmailpart>
    </cfmail>
      <cfmail to="#form.email#" from="#fromemail#" subject="November Day 3 University Insurance Administration Training and Development Class" type="multipart">
    <cfmailparam name="content-class" value="urn:content-classes:calendarmessage">
    <cfmailparam name="Content-Type" value="text">
    <cfmailparam name="method" value="REQUEST">
    <cfmailparam name="charset" value="utf-8">
    <cfmailparam name="Content-Transfer-Encoding" value="7bit">
    <cfmailpart type="text">
    This is your meeting invitation for the following Insurance Administration Training and Development Class:
    August Annuity University Day 3
    </cfmailpart>
    <cfmailpart type="text/calendar">
    BEGIN:VCALENDAR
    PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN
    VERSION:2.0
    METHOD:PUBLISH
    BEGIN:VEVENT
    DTSTART:20091119T150000Z
    DTEND:20091119T180000Z
    LOCATION:C5 Main
    TRANSP:OPAQUE
    SEQUENCE:0
    UID:0
    DTSTAMP:#tmstmp#
    DESCRIPTION:Insurance Administration Annuity University--August Day 3\n
    SUMMARY:summary
    PRIORITY:5
    X-MICROSOFT-CDO-IMPORTANCE:1
    CLASS:PUBLIC
    END:VEVENT
    END:VCALENDAR
    </cfmailpart>
    </cfmail>
    </cfif>

    Hi there,
    I think its because youre using the same UID for all your events. From what I understand, every event needs its own unique reference,
    hope that helps.

  • Using a radio button in cfmail / form.

    Hello;
    This is a silly question, but I can't remember how to program in radio buttons for a cfmailer. I have 3 radio buttons, basically, I just need to know what the users choice was when they checked it off. The following is my radio buttons and what I have for code right now. But I'm not grabbing the proper variable, I also tried dumping a few diffrerent variables to see if I could get it.
    <input name="type" type="radio" onClick="setVisibility('sub3', 'inline');setVisibility('sub4','none');setVisibility('sub5','none');" value='male' checked="checked"/>Magnets
    <input type="radio" name="type" value='female' onClick="setVisibility('sub3', 'none');setVisibility('sub4','inline');setVisibility('sub5', 'none');"/>Paper Steel
    <input type="radio" name="type" value='child' onClick="setVisibility('sub3', 'none');setVisibility('sub4','none');setVisibility('sub5', 'inline');"/> both
    on my response page, I tried this:
    <cfif form.type EQ "male">
    if this was their choice, then this set of rules would apply
    </cfif>
    and so on for the other two choices. This isn't catching my buttons, what am I doing wrong? do I need to make a paramiter for the radio buttons before I can allow it to function? like this?
    <cfparam name="FORM.type" default="">
    then I can use my if statement? (that isn't working right now either)
    here is what I'm trying to dump:
    <cfdump var="#form.type#">
    <cfabort>
    </cfdump>
    How do I do this? Can anyone help me?

    I suspect that you have a problem in some portion of your code that you have not posted. To help debugging I suggest you create a simple test using two pages: input.cfm and action.cfm.  Get the most simple case working then add the javascript, css, and CF code to make your application work.
    <!--- contents of input.cfm --->
    <html>
    <head>
         <title>Input</title>
    </head>
    <body>
         <form action="action.cfm" method="POST">
              Choose type: <br />
              <input name="type" type="radio" value="male" />     Male<br />
              <input name="type" type="radio" value="female" /> Female<br />
              <input type="submit" />
         </form>
    </body>
    </html>
    <!--- content of action.cfm --->
    <html>
    <head>
         <title>Action</title>
    </head>
    <body>
         <cfif form.type eq "male">
              Type is male.
         <cfelseif form.type eq "female">
              Type is female.
         </cfif>
         Here is a cfdump of the form variables:<br />
         <cfdump var="#form#" />
    </body>
    </html>
    Message was edited by: JR "Bob" Dobbs
    Added sample for action.cfm

  • Cfmail spool sending one message at a time

    I have mx7 standard installed on win 2003 server
    a cfmail page sends files to the spool corectly.
    The spool is only sending out one message every 60 seconds or
    so. Changing the spool interval has no effect.
    these need to go out a lot faster than this.
    the mail.log is showing this but i'm not sure it's the
    problem.
    Aug 4, 2006 11:19 AM Error 0
    Exception reading response; nested exception is:
    java.net.SocketTimeoutException: Read timed out
    Aug 4, 2006 11:18 AM Error 0
    Exception reading response; nested exception is:
    java.net.SocketTimeoutException: Read timed out
    Aug 4, 2006 11:17 AM Error 0
    Exception reading response; nested exception is:
    java.net.SocketTimeoutException: Read timed out
    Aug 4, 2006 11:16 AM Error 0
    Exception reading response; nested exception is:
    java.net.SocketTimeoutException: Read timed out
    Aug 4, 2006 11:15 AM Error 0
    Exception reading response; nested exception is:
    java.net.SocketTimeoutException: Read timed out
    thanks for any help in advance.

    I would suggest playing with the other mail specific
    settings, such as #of mail delivery threads, but my guess is you've
    already messed with these.
    Perhaps it has nothing to do with CF, but rather a bottleneck
    with the process that is creating the emails. How many emails are
    you trying to send?
    Is it a query driven mail tag?
    Another aspect to check would be the version of JRUN being
    used by CF. You might find an update to a newer version of JRUN
    would solve the problem.
    Given the errors you've listed (SocketTimeout), they seem to
    be JAVA specific.
    In any case, good luck!
    bh

  • Inserting or embed and image into cfmail output from a database-stored path to an actual image.

    I am trying to insert or embed and image into cfmail from a database-stored path to an actual image. The actual JPEG image is stored in a folder called "images_personnel". The path to the image under the column titled photopath is stored in my database table as "/file/images_personnel/28.jpg". Displaying the image on the screen renders without a problem, embedding the same image as part of a cfloop query does not insert/embed the image into an email. All of the other output of the same cfloop displays and emails just fine. However none of the photos of each personelle show up. What an I doing wrong?
    My code is below:
    <cfquery name="Staffreport" datasource="master">
    Select staffreport.*, name.personnelid, name.email, name.last, name.noiid, stafflt, CONCAT(name.fname,' ',name.middle,' (',name.last,')') AS teammember, CONCAT(name.fname,' ',name.middle) AS teammember2, concat(name.photopath,'',name.photo)as hisphoto, stafflt.*, trim(concat(ltfname,' ',ltmiddle)) as LT from Staffreport, name, stafflt
    where 0=0
    and stalt = '#Session.user_id#'
    and ltid = '#session.user_id#'
    and staweekbegin = <cfqueryparam value="#form.staweekbegin#" cfsqltype="cf_sql_date" />
    AND staweekend = <cfqueryparam value="#form.staweekend#" cfsqltype="cf_sql_date" />
    AND stapersonnelid = personnelID
    <!---AND ltid = stalt--->
    AND CITY = 'richmond'
    AND STATUS <> 'd'
    AND STATUS <> 'T'
    AND type = 'personnel'
    Group by personnelid
    Order by teammember
    </cfquery>
    <cfmail>...
    <cfloop query="staffreport"><br />
    <table width="90%" border="0" cellspacing="2" cellpadding="4" align="left">
      <tr>
        <td colspan="2" align="center" valign="top" nowrap="nowrap" bgcolor="cccccc"><strong><font color="black"><cfif #staffreport.last# eq ".">#Ucase(Staffreport.teammember2)# <cfelse>#Ucase(Staffreport.teammember)#</cfif> - ID: <cfoutput>#Staffreport.noiid#</cfoutput></font></strong></td>
      </tr>
    <tr>
        <td align="left" valign="top" nowrap="nowrap" bgcolor="#000000">Name:</td>
        <td>#Staffreport.teammember#</td>
      </tr>
    <tr>
        <td bgcolor="E6E1FD">Photo:</td>
        <td bgcolor="EBEBEB">
    <img src="#staffreport.hisphoto#" alt="Photo" width="98" height="98">
    </td>
      </tr>
    <tr>
        <td bgcolor="E6E1FD">Email:</td>
        <td bgcolor="EBEBEB">#staffreport.email#</td>
      </tr>
    </table>
    </cfloop>
    </cfmail>

    You'll need to provide a full URL link to the image ("http://mywebserver/file/images_personnel/28.jpg"), not just a relative path.  Remember, the email client that is used to view the email content knows nothing of the internals of your web server - it can only follow a complete URL to get images and other resources.
    -Carl V.

  • Cfmail file attachements

    I want to dynamically attach a document and send via cfmail.I
    use various queries to get the recipent names, and unique id info,
    then retrieve the document that corresponds.
    One cfmail documentation says to use cfparam inside cfmail
    and specifiy the full path. Another says to use the mimeattach
    attribute with the full path.
    This is where I am having the problem. My document
    name/variable from my query is #qryName.document#.
    How do I set this up with the path, in either cfparam or
    mimeattach ?

    I understand your code, but I still cannot seem to get the
    correct path.
    I use this query to find th file that I want as an
    attachement to the cfmail :
    <cfquery name="qryName" datasource="dbname">
    select
    uploadFileName
    from tableName
    where docNo = '#form.DocNo#'
    </cfquery>
    So the file that was uploaded with this docNo is stored in a
    variable named uploadFileName in the specifield table.
    What is the full path that I would setup in cfmailparam so
    that this documant is an attachemetn in cfmail ?

  • Problem with 3Forms to one Mail

    Hi there,
    My problem:
    I have three forms in the first file (index.cfm). The first
    2forms have checkboxes and the last form input fields.
    With a java script, I'm submitting all three forms. In the
    second file I have a <cfset MailFile = " ----function.
    How can I adress the thrid file in this function?
    index.cfm
    <form name="form3" method="post"
    action="quick_vote.cfm">
    <table border="0" cellspacing="0" cellpadding="0" >
    <td width="1" valign="top"
    class="content"> </td>
    <td valign="top" class="content"
    width="129">Name*</td>
    <td valign="top" class="content" width="141">
    <input class="formfeld" name="Name_" size="20" >
    </td>
    </tr>
    quick_vote.cfm:
    <cfset MailFile = "
    This message was sent by an automatic mailer built with
    CFMAIL:
    ================================================================
    Name: #Form3.Name_#
    Vorname: #Form3.Vorname#
    Straße: #Form3.Strasse#
    Ort: #Form3.Ort#
    ">
    Following error message:
    Error Diagnostic Information
    An error occurred while evaluating the expression:
    MailFile = "
    This message was sent by an automatic mailer built with
    CFMAIL:
    ================================================================
    Name: #Form3.Name_#
    Vorname: #Form3.Vorname#
    Straße: #Form3.Strasse#
    Ort: #Form3.Ort#
    Error resolving parameter FORM3.NAME_
    ColdFusion was unable to determine the value of the
    parameter.
    Has anyone an idea?
    Thanks

    Hi Dawidsk99,
    According to your description, you can connect to cube success, the issue is that nothing happens when clicking OK to import data to pivot table, right?
    I have tested it on my local environment, we cannot reproduce this issue. So in you scenario, please ensure that not select "Only Create Connection" option In the Import Data dialog box, under Select how you want to view this data in your workbook.
    Besides, you can analyze SSAS using Excel directly from SSMS. In SSMS, browse the cube, and click on the Excel button as shown below.
    References
    http://www.mssqltips.com/sqlservertip/2828/using-excel-to-interact-with-a-ssas-cube/
    http://office.microsoft.com/en-in/excel-help/connect-to-or-import-data-from-sql-server-analysis-services-HP010342296.aspx
    Regards,
    Charlie Liao
    TechNet Community Support

  • Trouble with CFMAIL

    I'm using CFMail on a Win2k server running IIS and having a
    wierd mail problem.
    I can send mail to certain email addresses, but not others.
    The ones that don't get mail
    are *definitely* valid emails, at places like gmail with no
    problems in the account.
    There's no clear logic to which emails do work and which
    don't, but the log shows this for
    the ones that don't send out
    "Error","scheduler-5","12/04/06","06:41:47",,"Invalid
    Addresses; nested exception is: class
    javax.mail.SendFailedException: 452 4.2.2 Mailbox full "
    "Error","scheduler-5","12/04/06","06:44:04",,"Invalid
    Addresses; nested exception is: class
    javax.mail.SendFailedException: 452 4.2.2 Mailbox full "
    What can I do to find more information out, are there are any
    articles/resources or anyone with war-scars that can help explain
    this one?
    Thanks much
    Paul Berry

    > Hi!
    >
    > I'm having trouble sending e-mail with cfmail to domains
    containing characters
    > like å ä ö. In mail.log I get the
    following message: "508 5.5.2 Illegal
    > character in address".
    >
    > Is this a bug or a setting somewhere in the
    Administrator?
    According to this:
    http://en.wikipedia.org/wiki/Domain_name_system#Internationalised_domain_names,
    it's legal to have those sort of characters in a domain name,
    but not a
    host name.
    But according to this:
    http://java.sun.com/products/javamail/javadocs/javax/mail/Address.html,
    it
    sticks to RFC 822 (
    http://www.ietf.org/rfc/rfc822.txt),
    which doesn't seem
    to differentiate between the host part and the domain part of
    an address,
    and only allows for ASCII 0-127 in the domain name.
    So the bottom line is those domain names - for the purposes
    of internet
    email addressing - aren't actually legal. So - strictly
    speaking - it's
    correct for CF to reject them.
    I would say you're screwed, unless you can find some
    alterative emailing
    system (not <cfmail>), and use that. But then again,
    the alternatives
    could quite possibly disallow those addresses too.
    Adam

  • CFMAIL issue in cf8

    I have set up the mail connection via CF Admin.
    I tested connection and I ahve no problem.
    But now when I send any emails where the address is in
    format:
    [email protected] it fails with invalid address
    but if i try [email protected] it send the email with no problem.
    So I know that my connection is correct.
    In fact, I already CF7 as my production server, but we are
    testing this to see if it is worth it for us to
    upgrade.
    So far this issue is cauing a major issue.
    Because many of clients have email format that I specified.
    I tested this from my email account from ail server to an
    address [email protected], and was able to send it with no problem.
    Only when using cfmail, seems to be having an issue.
    If anyone can give me a pointer or a some information to
    andle this wuld be great.
    Asad

    i have no problems sending mail to addresses like
    [email protected] using
    cf8's cfmail...
    tested on cf8 with hf2 on winxp. do you have all hotfixes in
    stalled?
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

Maybe you are looking for

  • What are the system requirements to develop ipad apps?

    So I'm in the Apple store with $10k burning a hole in my pocket. I am a windows developer and now want to start developing mobile apps for the ipad and iphone that will go as far as magazines with video. But no-one has a clue what system I need. The

  • "Go Back One Page" doesn't work on first page visited from Home Page

    When opening FF4.0, my homepage opens fine. Whether I manually type a webpage address, use a book mark from list or button bar, once that page opens, the "Go Back One Page" button is still gray and the only way to get back home is to click the "Home"

  • Images Not Showing. Help appreciated.

    Hello. I've made an API that loads ImageIcons into some JLabels when they are clicked on. This works perfectly when run in the NetBeans IDE, but for when I run the JAR separately, they will not appear. I've tried putting both the images and JAR in th

  • Putting a html swf file on the web

    Hi this is the last hurdle for me. I created an swf and a HTML output. Localy it works when I double click the html except IE keeps telling me I need to accept the plug in. Verry annoying. But if I put the HTML and the SWF on the website the HTML is

  • Printing a image created by java?

    is there an fairly easy way to print an image created by a java applet or a way to write an application or applet that creates a image file? I know about print screen so if there's no other (easy) way, what do i need to install to use it?