issue of intrusion via CFMAIL and text area

I have a form that allows us to enter the body of the text of an email in a text form resembles the form that I use to create this new position. What I can't understand is how to keep the carriage returns in place when the contents of the text box is sent using intrusion via cfmail in the html part of the message intrusion via cfmail? We have been manually adding break tags, but it's a pain.

I tried to add wrap = "hard" in the text box and also using < cfprocessingdirective suppresswhitespace = "no" > around the intrusion via cfmail tags, but the content text box appears in the emails as a big paragraph.

Someone knows how to do this? Thank you

Replace Chr (10) Chr (13) with

Tags: ColdFusion

Similar Questions

  • issue of intrusion via CFMAIL authentication mod...

    Ok. I have a site of cf for a long time... Appears as in the old days, you could use little intrusion via cfmail tag with params as...

    < intrusion via cfmail to = "xxx".

    from = "xx".

    object = "xxx".

    Server = "xxx" >

    test

    < / intrusion via cfmail >

    but when you're working on a new mod site - NOW, it seems I need authentication more - with user and Pass as:

    Server = "xxx" username = "xxx" password = "xxx" >

    More information: in reality the MX mail is NOW on another server on the site of CF - then maybe this could lead to the necessary changes?

    Q: is it true?

    It really depends on your mail server.  Are they using the same email on its new server software as they did when he was on the same square as ColdFusion?  In addition, if you put the servername, username information and password in CF administrator, you shouldn't include in your tags.

    -Carl V.

  • intrusion via CFMAIL and JavaMail

    Hi all

    My applicatoin must send notifications by e-mail with registration included my clients codes. So they can sign up for an account using this code to verify that owns it email addresses. In my local machine, I try to implement the functionality of e-mail. I encountered some problems, however. 5 hours left for a such beautify Saturday. I'm tired alittle. So I come here for help again. Greatly appreciated for any help. Here are two of my questions.

    1. intrusion via cfmail does not work in the developer edition?

    Of course, intrusion via cfmail tag is the easiest way to do it by e-mail. In the Administrator page, I entered 'smtp.gmail.com' (without the quotes) as the mail server and my gmail username and the password as authentication. So I try of intrusion via cfmail tag in ColdFusion page. It does not work, or it displays an error message. In addition, in the Administrator page I'm not able to "Verify the connection to the mail server" is checked. If I check and click on the button 'Submit changes', the remains of the disabled check box and the check box I put them disappear. I suspect that intrusion via cfmail tag does not work in the edition developer, right?

    2. second question: I went to come and try to write a program myself using JavaMail. I've done it before in a Java project. So it did not take me long to reuse before code. After having fully tested, I moved the C:\ColdFusion9\wwwroot\WEB-inf\classes Java class files. So I called this Java class in a ColdFusion page, the system gave me this error message below. I tried to find me the solution. But it turns out to be much more complited I thought. Someone suggests deleting activation.jar file in the C:\ColdFusion9\lib folder. But if I do that, my java program would not work. I know that the below error is caused by the version of the different class loader. But I don't know where and how reach to tweak it. Anyone has any experience in this or problems before? Many many thanks!

    Error casting an object of type com Sun.mail.Handlers.text_plain cannot be cast to javax.activation.DataContentHandler by an incompatible type. This usually indicates an error in programming in Java, although it could also mean that you tried to use a foreign object in a different way, it has designed.

    com Sun.mail.Handlers.text_plain cannot be cast to javax.activation.DataContentHandler

    I know where goes wrong. It has nothing to do with the mail server, user name and password fileds. These fields are filled in correctly. The problem is linked to the number of port and SSL and TLS. First port 25 does not work for smtp.gmail.com. If you set only port 25 on the Administrator page, the page will finish succesffully, but mail will not in your Inbox. Instead I need to specify the two active port 465 and SSL, or the two number of ticked off port 587 and TLS. I can't specify port 465 in the Administrator page and enable SSl on the ColdFusion page. It will not work. I never see this kind of thing. Why do I have to specify in one place or another. FC is not smart enough to understand.

  • Intrusion via CFMail, and Message-Id

    All emails sent from my server (Win 2 k 3, CFMX7) using intrusion via CFMAIL have a Message Id, which looks like:
    Message-ID: < xxx.xxx.JavaMail.SYSTEM@serverName >,
    where servername is the local name of my server. It is recommended to have a complete domain name instead:
    Message-ID: < [email protected] >

    I tried to add a Message-ID to my emails using CFMAILPARAM, but it did not work. Does anyone know where CF takes the name of the computer and how to use a FULL domain name?

    Thank you



    In CFMX7, you can set mail.host as a property of java by updating your JVM arguments with:
    -Dmail.host = machine.server.com
    IE. :
    -Dmail.host = ksmith.adobe.com

    Put this in your ShadoMX/util/Flex/SDK/bin/jvm.config or in the java cfadmin settings page. Restart cfmx.

    My mail now creates the message-ID like:
    Message-id:<[email protected]>

    It also seems to work if you set the system on the model property before calling the intrusion via CFMail:

    sysObj = CreateObject ("java", "java.lang.System");
    sysObj.setProperty ("mail.host", "kensmith.adobe.com");

    NOTE: Like java.lang.System should get involved - you're updating a system property. Therefore, all users of intrusion via cfmail will use this mail.host. If you use multiple mail hosts, you can use named herds around that code, you don't have several changes to the mail host, while it is in use. If you want only a single mail.host, it works fine as it is.

  • Intrusion via CFMAIL and HTML content

    I created a page of the newsletter for a client and I would give him the opportunity to send it via the intrusion via cfmail but I can't send the dynamic content because I have errors with nesting.

    The page is quite complicated, but comes in fine, until it is in intrusion via cfmail tags.

    Is it possible to copy the html code of a page and send it to another page to send by cmmail?

    Any suggestions would be helpful.

    I found a great solution in CFINCLUDE. I was able to include the intrusion via CFMAIL tags inside the page

  • CFINCLUDE within the intrusion via CFMAIL

    I have a done a CFQUERY user and retrieve email and name.  Then I try to make an intrusion via CFMAIL something like:

    < to = "" #user.email # intrusion via cfmail "from =" " [email protected] "subject =" Message from #sender_name # "type ="html"> "

    < table > < tr > < td >

    Dear #receiver_name #.

    < table > < /tr >

    < tr > < td >

    #form.message #.

    < table > < /tr >

    < /table >

    < / intrusion via cfmail >

    It seems to work with intrusion via CFMAIL and variables are populated correctly.  However, when I put the content in a template content.cfm because I want to use elsewhere as well. So content.cfm has:

    < table > < tr > < td >

    Dear #receiver_name #.

    < table > < /tr >

    < tr > < td >

    #form.message #.

    < table > < /tr >

    < /table >

    and the program has become:

    < to = "" #user.email # intrusion via cfmail "from =" " [email protected] "subject =" Message from #sender_name # "type ="html"> "

    < cfinclue template = "content.cfm" >

    < / intrusion via cfmail >

    Now the problem is, I don't get the variables (#receiver_name # and #form.message #), populated by Coldfusion when using the cfinclue model.  Why?  It drives me crazy.  I don't know why it does not work.    Thanks in advance.

    Your code works in intrusion via cfmail because Coldfusion executes cfoutput implicitly in the intrusion via cfmail tag. The solution is to add the in content.cfm cfoutput tag, as follows:

    Dear #receiver_name #.

    #form.message #.

    Either way, your post is a typo: cfinclue instead of cfinclude. It just is a typo for the road and has nothing to do with the question.

  • intrusion via CFMAIL multipart, treated like a virus

    Hello

    I created a post to multiple parties using intrusion via cfmail and cfmailpart, there is a part of text and an html part that includes inline images. Messages are captured by our email antivirus (declude). The antivirus message indicates that the message contains "the [Outlook 'Space gap' vulnerability]."

    The vulnerability can be defined as:

    This vulnerability occurs when there is a space in one of the MIME
    headers or there is not normally a space (e.g. "Content-Type
    (': ' instead of ' Content-Type: "). This is not consistent with the RFC, but
    Outlook treats valid and be able to see a virus that
    virus scanners will not usually see. There is no legitimate reason
    an e-mail that will be shaped like that.

    When I look at the source of the message, it seems that coldfusion does the following for mime headers:

    MIME-Version: 1.0
    Content-Type: multipart/related;
    Boundary = ""-_Part_401935_27323735.1170444413143 = ""

    I think the line break and the tab before the Boundary are creating the problem.

    Any help would be well evaluated.

    Thank you.

    Figured it out. There was a space in the name of the file to one of the inline images.

  • Firewall problem possible intrusion via CFMAIL

    I'm new to coldfusion - please speak slowly. I have CF mx 7 std on Windows 2003 with IIS 6 - and excahange std STD 2003 all on the same box. I am trying to send e-mails using intrusion via cfmail, and I am sure that the code is correct - the query is also very good (checked with cfdump). But here's the problem - the email goes to several addresses, some internal (using the name of the full address) and some external i.e. [email protected]. My internal users receive the external email are not. I have a device astaro firewall. Any suggestions welcome - how trouble shoot if it is the CF Exchange or my firewall.

    Thanks for the help.

    I thought about it - and shameful never asked. Incase someone else is there, but has the same amount of brain, I did... Here's what I did (I hate to find the question I'm looking for just to see a message saying "too bad", I would like to post the same answer to my own stupid questions)

    Once I saw the msg of error in CFmX - it did not take long for fix - took me more time to put in place an external account to test. On your box Exchange - Exchange System manager - expand your virtual server (points to a cold fusion) - develop protocols (this may be different depending on whether you have an administrative view running)-expand properties click on SMTP - then right click on the SMTP virtual server by default.

    In the Access tab - click on relay - add IP to authorized computers. Note: allow all computers to relay authenicate... check - if this box is checked or not - you must always have the IP address, even if coldfusion is the same square - successfully added to computers permit.

    At least it fixed it for me.

  • Using cfquery GROUP of output within the intrusion via CFMAIL

    Having a problem with the display of the CFQUERY results grouped in an intrusion via CFMAIL. After studying this question on these forums and the internet, I found some useful information, but have been unable to find the answer to my question...

    Here's what I'm trying to do. I want to send an intrusion via CFMAIL to a single user. So far so good. I do not use CFOUTPUT in the intrusion via CFMAIL and it displays correctly the variables CF.

    The problem is this: I have a CFQUERY that uses the GROUP setting and I want to display these results in AN e-mail. The display works if outside intrusion via CFMAIL:

    < cfoutput query = "GetHoliday" group = "year" >
    < b > #year # < /b > < br >
    < cfoutput > #DateFormat(holiday,"mm/dd/yyyy") #-< / cfoutput > < br > < br >
    < / cfoutput >

    The output looks like this:

    2010

    05/02/2010 - 05/03/2010 - 23/05/2010

    2009

    07/06/2009 - 05/07/2009 - 23/08/2009

    However, inside the intrusion via CFMAIL it does not work. First of all, I took the CFOUTPUTs and used CFLOOP, but then I can't use the GROUP attribute.

    I tried the attribute of the GROUP on the intrusion via CFMAIL, but who sends an e-mail by group. I want only an email sent and the results grouped into this one email as described above.

    Any ideas on what I am doing wrong?

    Or is there a way to run the group outside the intrusion via CFMAIL, store in a variable and display it somehow? I guess not since the query is a type of complex data...

    loamguy wrote:

    Any ideas on what I am doing wrong?

    Or is there a way to run the group outside the intrusion via CFMAIL, store in a variable and display it somehow? I guess not since the query is a type of complex data...

    I don't think you're doing something wrong. As far as I KNOW, there is no method integrated to group the content of the mail exactly in this way that you have described.

    Yes, you could use cfsavecontent to capture grouped. Then include it in your e-mail message.



        #year #.

        #DateFormat(holiday,"mm/dd/yyyy") # -.


    [email protected]"from ="[email protected]"subject ="Holidays">"
    #mailContent #.

  • Send attachments with intrusion via cfmail?

    Greetings!
    I'm in trouble... I need to send information to our list. It is long. I prefer to send a letter with intrusion via CFMAIL and send the rest as a PDF attachment, but I don't know the coding and the settings for attachments! : D

    Help?
    Thank you very much!!!

    See the documentation for it gives a couple of
    examples.

    cfmailparam examples


    This example display only use cfmailparam to 1) add the header of a message
    (and 2) reach files and 3) to return an acknowledgment to the sender.



    Please see the new logo. Tell us what you think.



    This example only display displays an image in the body of the
    an HTML message.


    to = "#form.mailto #".
    from = ' #form.mailFrom # '.
    object = "Sample image inline" >

    available = 'inline '.
    contentID = "image1" >

    There should be a picture here



    After the photo


  • Attaching generated the file in the intrusion via cfmail excel

    Hello

    I have attached the code in which I generated an excel file of my data, which the user can then open/save on their PC. Now, I want to join this excel file to an email (using intrusion via cfmail) and send it (the task will then become planned).

    How do I save rather than the excel output file?

    Katie

    Hello

    Take a look at the following tags:

    1)
    to generate a variable of your tabs-delimited content
    to generate a file temp with your content
    and attach this file to your e-mail
    or
    2)

    to attach the variable directly to e-mail without prior establishment of a temporary file (have not tried myself)

    see you soon,
    Fouad

  • Submit FORM and intrusion via CFMAIL

    I use PayPal to process payments to members via a form. Unfortunately, information collected by PayPal are not sufficient to meet all of my needs. Can I get additional information of a cfquery to my database and wants to send to myself when the member clicks the button PayPal (submit) - i.e. to generate the email ONLY IF you click on the submit button

    Is there a way to do this?

    If it needs a script, I would appreciate an example script that my scripting capabilities are very limited.

    280844 wrote:
    ... send an email to myself when the member clicks the button PayPal (submit) - i.e. generate the email ONLY IF you click on the submit button

    Then just use intrusion via cfmail on page of the form of action to send mail to yourself.

  • Problem of object strange intrusion via cfmail

    Now later in my adventures of coldfusion!

    I have a variable field that I put in my subject line of the email:

    < cfset objet_message = ' apply for leave has been deleted by #User_Name #-FYI only "/ >

    < intrusion via cfmail

    to =[email protected]

    object = "" # objet_message # "type ="html">"

    Dumping User_Name watch what it is: 'Bob Marley', with only 1 space between the first and last name.

    Dumping the objet_message filed prior to sending the email says: "Leave request deleted by Bob Marley - FYI Only"

    However, when the mail arrives, 17 additional seats have been added between the names!

    "Leave request removed by Bob Marley - FYI only"

    I even tried Trim without result.  And the type = "text", "plain" and simply omitted, make no difference in the subject line.

    Any suggestions?

    Do what Adam has suggested.  Put the output of the var between a pair of delimiters such as [] so that you can visually see what is in the var.  Try out its length as well, just in case there are all nonprinting characters in it - the length is what you see visually on the screen?  Also try to view this result by VIEW SOURCE.  Finally, what happens if you include the content of the var even in the body of the email?  As someone has pointed out, the SUBJECT line is not HTML formatted.

    -reed

  • Variables inside of a variable in the intrusion via CFmail?

    Hey all!  Thanks in advance for help on this...

    I try to send an email with a variable in it... example:

    "" < to = "" #camperdetails.cEmail # intrusion via cfmail "from ="[email protected]"user name ="[email protected]"password ="xxxxx"Server ="xxxxxx"subject =" #msubject # "type ="html">
    #campdetail.camperaccept #.
    < / intrusion via cfmail >

    However, the camperaccept variable is dynamic and has variables stored inside.  For example, it could have #campdetail.campername # in it.

    Whenever I get an email from test on this, the #campdetail.campername # just as well as text, rather than pulling them down from the real variable.  I tried to use the < cfoutput > tags as well.

    Any thoughts on how to make this truly dynamic content?  The problem is that I can't analyze only the variables because these variables are defined by the user so that they have to be pulled from a database entry.

    Let me know if you have an overview, it would be greatly appreciated!

    I

    The other day in another list replied:

    http://forums.Adobe.com/thread/416669?TSTART=0

    The idea is to use the evaluate() and de() together to do this kind of thing until you can rework a such problematic code.

    
         #evalute(de(campdetail.camperaccept))#
    
    
  • Intrusion via CFmail... help please!

    I send you a link URL using intrusion via cfmail be clicked directly and the person who receives it can go directly to the link without having to cut and paste in the browser. It works for some but not for others. Some, but not all those who have problems with it, using their email via a browser "Safari" or "group of wise men."

    Here's the code I used for the intrusion via cfmail:


    < intrusion via cfmail
    Query = "getemails."
    from = 'forum Admin of the EP '.
    to = "" #getemails.email # ""
    ReplyTo = "[email protected]."
    is = "[email protected]."
    subject = "new comment on" #get_current_case.title # "»
    charset = "utf-8".
    Server = "localhost".
    spoolenable = "yes".
    >

    < cfmailpart
    Type = "text".
    WrapText = "74" >
    A new comment was listed - click here to check it out: http://67.59.160.70/mywebsite/index.cfm
    < / cfmailpart >

    < cfmailpart
    Type = "html" >
    < p > case title: < strong > "#get_current_case.title #" < facilities > < / p >
    < P > comment submitted by: < strong > #getusername.first_name #getusername.last_name # < / strong > < / p >
    index.cfm http://67.59.160.70/mywebsite < p > < /p >
    < / cfmailpart >

    < / intrusion via cfmail >

    probably, users who use maybe text messaging users, who can not see Rich HTML content. Another possible cause may be that I do not see that you are using pure HTML content,

    your URL does not wrappers. try to send URLS like this

    <>
    Type = "text".
    WrapText = "74" >
    A new comment was listed - click here to check it out: http://67.59.160.70/mywebsite/index.cfm "> http://67.59.160.70/mywebsite/index.cfm "

    Who should do the trick... and I don't see your headers messages with the mail content type (text/html)

Maybe you are looking for