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

Tags: ColdFusion

Similar Questions

  • Problem with intrusion via CFMAIL in MX7

    I have used intrusion via CFMAIL in a former model on the previous versions of the CF without problem, but seem to trigger an error on MX7.

    Anyone know what I'm doing wrong?

    My code:
    < request of intrusion via CFMAIL = "mailing".
    (OBJET = "#DateFormat (maintenant (),)" MMMM (YYYY) ") #-what's new wild Asia."
    FROM = "" #AdminEmail # ""
    TO = "(email) #Trim" # ""
    is = "" #MailingList # ""
    >

    This was my mistake:

    Validation error of intrusion via CFMAIL tag attribute.
    The value of the attribute, which is currently "[email protected] my ', is not valid.

    The error occurred in Asia D:\Reza\DATA\PROJECTS\Wild web\WEB\Wild Asia\public_html\WWW\members\mass_emails_submit.cfm: line 332
    Called from the Asia D:\Reza\DATA\PROJECTS\Wild web\WEB\Wild Asia\public_html\WWW\members\mass_emails_submit.cfm: line 329
    Called from the Asia D:\Reza\DATA\PROJECTS\Wild web\WEB\Wild Asia\public_html\WWW\members\mass_emails_submit.cfm: line 326
    Called from the Asia D:\Reza\DATA\PROJECTS\Wild web\WEB\Wild Asia\public_html\WWW\members\mass_emails_submit.cfm: line 1

    330: <! - send the e-mail message, based on the entry form - >
    331: < query intrusion via CFMAIL = "mailing".
    (332: OBJET = "#DateFormat (maintenant (),)" MMMM (YYYY) ") #-what's new wild Asia."
    333: FROM = "" #AdminEmail # ""
    334: TO = "(eMail) #Trim" # ""

    Resources:

    * See the ColdFusion documentation to verify that you are using the correct syntax.
    * Search the Knowledge Base to find a solution to your problem.

    Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; RV:1.8.1) Gecko/20061010 Firefox/2.0
    Remote address 127.0.0.1
    Reference http://127.0.0.1/wildasia/members/mass_emails.cfm
    DateTime December 6 06 14:23
    Stack trace
    to cfmass_emails_submit2ecfm1053470653._factor12 (Asia D:\Reza\DATA\PROJECTS\Wild web\WEB\Wild Asia\public_html\WWW\members\mass_emails_submit.cfm:332) at cfmass_emails_submit2ecfm1053470653._factor13 (Asia D:\Reza\DATA\PROJECTS\Wild web\WEB\Wild Asia\public_html\WWW\members\mass_emails_submit.cfm:329) at cfmass_emails_submit2ecfm1053470653._factor14 (Asia D:\Reza\DATA\PROJECTS\Wild web\WEB\Wild Asia\public_html\WWW\members\mass_emails_submit.cfm:326) at cfmass_emails_submit2ecfm1053470653.runPage (D:\Reza\DATA\PROJECTS\Wild Asia web\ WEB\Wild Asia\public_html\WWW\members\mass_emails_submit.cfm:1)

    coldfusion.tagext.InvalidTagAttributeException: validation error for tag intrusion via CFMAIL to attribute.
    at coldfusion.tagext.net.MailTag.validate(MailTag.java:489)
    at coldfusion.tagext.net.MailTag.processAttributes(MailTag.java:549)
    to cfmass_emails_submit2ecfm1053470653._factor12 (Asia D:\Reza\DATA\PROJECTS\Wild web\WEB\Wild Asia\public_html\WWW\members\mass_emails_submit.cfm:332)
    to cfmass_emails_submit2ecfm1053470653._factor13 (Asia D:\Reza\DATA\PROJECTS\Wild web\WEB\Wild Asia\public_html\WWW\members\mass_emails_submit.cfm:329)
    to cfmass_emails_submit2ecfm1053470653._factor14 (Asia D:\Reza\DATA\PROJECTS\Wild web\WEB\Wild Asia\public_html\WWW\members\mass_emails_submit.cfm:326)
    to cfmass_emails_submit2ecfm1053470653.runPage (Asia D:\Reza\DATA\PROJECTS\Wild web\WEB\Wild Asia\public_html\WWW\members\mass_emails_submit.cfm:1)
    at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
    at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349)
    at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
    at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:225)
    at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:51)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
    at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
    at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
    at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
    at coldfusion.filter.ClientScopePersistenceFilter.invoke (ClientScopePersistenceFilter.java:2 8)
    at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115)
    to coldfusion. CfmServlet.service (CfmServlet.java:107)
    at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
    at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
    at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
    at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
    to jrunx.scheduler.ThreadPool$ DownstreamMetrics.invokeRunnable (ThreadPool.java:318)
    to jrunx.scheduler.ThreadPool$ ThreadThrottle.invokeRunnable (ThreadPool.java:426)
    to jrunx.scheduler.ThreadPool$ UpstreamMetrics.invokeRunnable (ThreadPool.java:264)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

    Try:
    TO = "#IIf (IsValid ('email', Trim (e-mail)), (TRIM (e-mail)), TO (MailingList)) ' # '"
    (adjusted citations)

    I tested it and it works.

    But, remember it as a stop gap. The DB needs to be cleaned.

  • 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.

  • a symbol "£" in a line of object intrusion via cfmail

    Hi guys

    I have this:

    < cfif mailtosend eq 1 >
    < cfset mailsubject = "buy this for £10" > ".
    < cfelseif mailtosend eq 2 >
    < cfset mailsubject = "buy something else for £20" > ".
    < / cfif >

    < intrusion via cfmail to = "[email protected]" = "[email protected]" subject = "" #mailsubject # ">"
    Message
    < / intrusion via cfmail >

    (my subject lines are not really as spam like this - but you get my point)

    I need a symbol of £ pound in the subject, but when I do a test broadcast of the pound sign converts into a funny symbol

    Ive tried to use the & pound; and & #163; but the former does not work, and the latter has caused an error in CF because of the #.

    I tried to change the # to # but that no longer works

    im sure im missing something somewhere

    Maybe I need a function like cfencodee_as_subject_line ("buy this for £10" ""), but I can't find anything in google

    any help would be grateful received

    Thank you very much


    I finally discovered what the problem was...

    Dreamweaver - would you believe?

    It seems that if I type the £ using dreamweaver, it 'encodes?' weird somehow, which means that when the server it serves (as html for a page or text of an email), it puts a funny 'A' symbol before the sign £. (a drawing has a little "Chinese hat" mark on top of it, if you know what I mean).

    In any case because now when I want a sign £ to appear anywhere where & book; work not (as in the subject of an email), I'll use Notepad to put it there.

    Thought I'd document it here in case it helps someone else suffers from the same problem.

    Thanks again to everyone for their suggestions.

  • intrusion via CFMAIL to = &amp; quot; &amp; quot; attribute problem

    We used the list of the emais in < intrusion via cfmail to = "" attribute for years and it worked very well: "

    < intrusion via cfmail to = '[email protected], [email protected], [email protected]...

    Now that she stops working and all emails end up in UNDELIVER foder.

    But if we use the LOOP through this list, then it works fine:

    < cfset mylist = "[email protected], [email protected], [email protected].

    < cfloop list = "" #mylist # "index 'i' = >"

    < intrusion via cfmail to = "" #i # ""

    ......

    < / cfloop >

    What could happen? Why it no longer works as it used to work before?
    Ladies and gentlemen,
    Help, please!

    This message means that you are using Microsoft Exchange. You must pass your mail servers to something decent.

    In the meantime, you can get this message if one our most of the addresses in the list is invalid or blacklisted.

    You can also get this error if a limit has been placed on the number of recipients, the e-mail CF client can send simultaneously.

  • Intrusion via CFMail problem

    Anybody out there remember CF5? I have this app that has been in use for about 100 years. We have not changed the pages associated with our comments page lately and yet our intrusion via CFMail Tag started throwing the following error message:

    Quote:
    ... unknown exception condition

    TagCFMail::sendMessage

    The error occurred while processing an element with a general identifier of (intrusion via CFMAIL), occupying document position...
  • Problem of intrusion via CFMail/CFFile

    I have a form that collects several form fields, but also an attached document. On the subsequent page, I have the following code, but even if the document is saved in the correct directory, the email is not sent with the attachment, as well as the rest of the form information, and I don't get any kind of error message! If anyone has any ideas, I would be eternally grateful. Thanks in advance!

    Ahh, it's necessary to specify the mail server in the code of intrusion via cfmail. Thanks for the help everyone!

  • 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 attachments double sending.

    Hello;

    I wrote an intrusion via cfmail application that allows you to send an attachment. Everything works very well. The problem is that it sends 2 of the uploaded image and I can't understand why. I'm not going to put all my code error and so on, I'm just showing my cffile and then the main part of my intrusion via cfmail, I think that the problem is in the way in which I enclose my file which must be downloaded by the user.

    < cffile action = "upload".
    FileField = "attachment_1."
    destination = "c:\websites\187914Kg3\uploads\".
    nameconflict = "Makeunique" accept = "#request. AcceptImage #">"

    "" < intrusion via cfmail to = "[email protected]"
    "CC ="[email protected]"
    from = "" #Form.email # ""
    object = "has supported the idea.
    Type = "html" SpoolEnable = "no".
    Server = "mail.gmail.com"
    port = "25" >
    < name cfmailparam = 'X-Priority' value = "1" / >

    It's all my stuff e-mail forms

    < cfsilent >
    < cfif FORM.attachment_1 NEQ "" > "".
    < cfmailparam file = "#attachment_local_file_1 #" >
    < / cfif >
    < / cfsilent >
    < cfmailparam file = '#CFFILE. ServerDirectory #/ #CFFILE. ' ServerFile # "remove ="true"/ >
    < / intrusion via cfmail >

    and that's the main part of it outside the shape to send and control of error and these things.
    Can you see what I'm doing wrong here? maybe help me to solve my problem?

    Thank you.

    You have 2 cfmailparam tags there are therefore 2 copies of the attachment. Remove the cfmailparam outside the cfif statement. You may need to add the button remove = "true" to the cfmailparam within the cfif tag.

  • intrusion via CFMAIL sends only not to external address

    Hello

    I have a new web server that I have tested before turning on live. I ran into a problem of intrusion via cfmail. The server is

    Windows 2008 R2, 64Gig ram, 64-bit, IIS 7.5, Coldfusion 9.0.2 multi server, consolidation of cases CF 2, JDK1.7.0_71

    We had a company CF and harden so it can be linked to the curing, but I'm not sure.

    < intrusion via cfmail doesn't send e-mail to recipients outside our field of work/field. The tag < intrusion via cfmail > 1 below sends the e-mail but the 2nd one does not work. That's what I see when trying to send via the tag < intrusion via cfmail > 2nd external e-mail address field

    -no errors on the page I run in browser

    -l' email is not received at the [email protected] (the syntax is correct)

    -the #2 attempt is displayed in the mail/Undelivr folder

    -mail.log has this error

    "Error","scheduler-3","01/15/15","10:13:27",,"javax.mail.SendFailedException: Invalid addresses;   nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay

    -application.log - no error

    -exception.log has the same error in addition to stack trace

    -server.log errors

    Any help is appreciated

    Joe

    "< intrusion via cfmail to ="me @ .comworks"from ="[email protected]"subject ="test"type ="html"> "

    #DateFormat (now (), "mm/dd/yyyy") # #TimeFormat (now (), "Hh") # < br / >

    < / intrusion via cfmail >

    "< intrusion via cfmail to ="me @home.com"from ="[email protected]"subject ="test"type ="html"> "

    #DateFormat (now (), "mm/dd/yyyy") # #TimeFormat (now (), "Hh") # < br / >

    < / intrusion via cfmail >

    Intrusion via CFMAIL is simply a wrapper for the underlying methods of mail Java API, so it shouldn't be any problem with him.

    Looks like that the SMTP server is not registered to send mails. So here's the problem with the SMTP server events, and not with the intrusion via CFMAIL

    HTH

    Thank you

    VJ

  • 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.

  • 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 - sending of any email address?

    I am very familiar with the intrusion via cfmail tag and how it works, but I'm still a little unsure about sending an email to any address of e-mail (without the references to server connection). To clarify, I want to send an email FROM an email address is entered by a person who submits my form.
    I know that this is possible by using:

    < from = "intrusion via cfmail form.email" = "[email database]"... "

    Are there problems by sending an e-mail to the e-mail address entered by the customer by means of a form? This will be sullen cause the email to be classified as Spam, it will not?

    Thank you

    SMTP has no built-in mechanism to validate the sender's address. So, in many cases, you can put whatever you want for the address. But many e-mail servers today use standards such as SPF and DKIM to validate the origin of the e-mail as matching the address of the sender email - valid SPF and DKIM expects this email must be signed by the sender. In addition, the mail server through which you send some mails may refuse messages if it did not belong to a domain for which the server has been configured to accept messages.

    Now, if your goal is to ensure the distribution of mail, but to allow a user to receive a response from an item being sent by a form on your server, you can specify an address corresponding to your infrastructure, but a meet corresponding to their address valid.

    Dave Watts, CTO, Fig Leaf Software

    http://www.figleaf.com/

    http://training.figleaf.com/

  • Intrusion via CFMAIL - conditional aid?

    Hi - I have a form that a user sends feedback about a product, and it sends an e-mail to three people.

    Is it possible to use a certain conditional statement that says that if the product A, B, C and D is selected - send an email to person 1, 2 and 3

    AND if the product E is selected - send email to one person 1,2,3 and 4

    my code so far looks like this, and the error I get is listed under code thank you!

    CFINSERT datasource = "MobWebDataSource" tablename = "mobilityFeedback."
    FormFields = "name, e-mail, count, product, description, telephone1, telephone2, phone3, ext, userComments" >

    < cfif product = gasTax, RAP, CAPP, FFC >

    < intrusion via CFMAIL = "" #email # ""
    TO = "q@crab.wa.gov.
    CC = ' p@crab.wa.gov.
    BCC = "r@crab.wa.gov.
    OBJECT = "REPORT of FEEDBACK" SERVER = "crab13" >
    < cfoutput >
    #name # #county # County introduced a feedback report to the Information Services of CRAB.

    Phone:(#phone1#) #phone2 #-#phone3 # #ext ext #.

    Product: #product #.

    Description: #Description #.

    Comments: #userComments #.
    < / cfoutput >


    < / intrusion via CFMAIL >
    < cfelse >

    < intrusion via CFMAIL = "" #email # ""
    TO = "u@crab.wa.gov, q@crab.wa.gov, p@crab.wa.govr@crab.wa.gov.
    OBJECT = 'REPORT FEEDBACK' SERVER = "CRABMX" >
    < cfoutput >
    #name # #county # County introduced a feedback report to the Information Services of CRAB.

    Phone:(#phone1#) #phone2 #-#phone3 # #ext ext #.

    Product: #product #.

    Description: #Description #.

    Comments: #userComments #.
    < / cfoutput >
    < / intrusion via CFMAIL >

    < / cfif >

    Invalid CFML construction found on line 85 in column 14.

    ColdFusion has been looking at the following:

    =

    The CFML compiler treated:

    • A cfif tag beginning on line 85, column 2.

    85 < cfif product gasTax, RAP, CAPP, FFC = >

    rockhiker wrote:

    You test the literal string 'product' from the list.  You probably mean testing the value of a variable named product.

    I.E.

    You can also consider the lilistFindNoCase() function, so that you don't need to worry about the capitalization of the values.

    The documentation for the functions of list would help to understand what would be the best choice for you.

    http://livedocs.Adobe.com/ColdFusion/8/htmldocs/functions-pt0_13.html

  • 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 #.

Maybe you are looking for

  • I can't reboot my MacBook. When I try to start, I get a screen Black w/note, in 5 languages, to restart, but without success.

    I tried the option key pressed down when I restart now. An ikon of the hard drive is displayed but when selected the screen will return to the black with remark, in 5 languages, to restart. I also tried to leave and now pressed the keys order and r w

  • Adding other repairs to a service order

    Hello I know that this is not the right place for it, but I don't know where to put this. There is no general 'customer support' support forum. Recently, I put in a repair order for my laptop (HP Pavilion g7 - 2217cl) because the right hinge broke. T

  • using a mouse

    Can someone tell me what is the best mouse to use on my HP Pavilion 64 bit running windows 8.1? Now, I am using a HP wireless mouse connected to the USB port. The mouse seems to scroll slowly, if at all. Thanx

  • V3 772g 9653 VGA Windows 10

    Go straight to "BOLD" to the question, prior is what led to the question. I put an mSATA SSD and a clean installed Windows 10 of USB support. To my delight, that I didn't provide a key (made 2 days before the Win 10 free upgrade offer finished) altho

  • icons to disappear

    My 2 year old has been tinkering on the control panel key and managed to do the icons have right left side of the computer screen disappear. I tried to rebuild the icons on the desktop, but I can't do it.  What should I do to get the icons on my desk