Cfmail

when i send mail using cfmail and under cfmail i add this
cfmailpart tag......
after i add this cfmailpart tag..if will automatically attach
an empty .txt file......
how to solve it????
thx to answer my question

cfmail does not send mail. It puts files in a spool
directory. From there, either the mail gets sent and the files
disappear, or the files go to an undelivered directory. In some, if
not all cases, the person in the "from" attribute, will get
notified in the mail is not sent.
Another approach might be to assume all the mail was sent,
unless informed otherwise.

Similar Messages

  • Cfmail  - works locally but not when uploaded

    Hi,
    I'm using cfmail with form variables for the email addreses.
    It's so users can send email to political candidates. Here's the
    code:
    <cfoutput>#Form.semails#</cfoutput>,<cfoutput>#Form.hemails#</cfoutput></p>
    <cfmail to="#Form.semails#,#Form.hemails#"
    replyto="#Form.useremail#" failto="[email protected]"
    from="#Form.useremail#" subject="Keep Maine Toxin-Free!"
    server="mail.nosuch.com" port="26" timeout="40"
    username="[email protected]" password="nosuch">
    #Form.usermessage#
    </cfmail>
    The form submit page collects those variables and passes them
    as form variables - GET. The "to" field in cfmail is populated by
    hidden fields that contain session variables... they're forwarded
    on as those .semails and .hemails form variables. Actual values
    have been replaced with "none" or "nosuch" for security, but you
    can see the structure anyway.
    This works when run locally, sends the emails as it should.
    When uploaded exactly as is to godaddy's server, it doesn't send
    emails. Doesn't throw any errors, the form results page displays as
    it should... but the emails just never get sent.
    I'd really appreciate any ideas...
    Joe

    Adam Cameron wrote:
    > I don't know how these shared hosting outfits work, and
    what access you
    > have to what, but here's some questions:
    >
    > - have you inspected the mail logs to see if they cast
    any light on the
    > scene
    > - have you configured CF to tell it where the SMTP
    server is?
    > - do you need to authenticate to it, and that sort of
    thing?
    > - are the email messages failing @ the CF end (in which
    case they'll be in
    > the mail/undeliverable dir (not entirely sure that's the
    name of it, but
    > have a shufti around in the cfusion dir...), or are they
    getting to the
    > SMTP server and failing there (check the SMTP server's
    logs).
    >
    Unfortunately all that can't be done by us users of these
    shared hosting
    outfits. You'll need to contact GoDaddy support and ask them
    to take
    these steps. I'm sorry about your probably experience with
    this.
    While I use GoDaddy for my personal hosting where I care more
    about not
    spending a great deal of money over high performance. I do
    not wish my
    support experiences on anybody. If you know ColdFusion well
    and can
    tell support what needs to be done, they should be able to do
    it. Or,
    more likely, you would be able to figure out the self help
    tools to do
    it yourself. But, unless this has changed since my last
    experience,
    their support staff is not ColdFusion literate and are unable
    to guide
    other, inexperienced ColdFusion users.
    Saying all that. Email works just fine on my GoDaddy website
    and I do
    not believe I had to do anything special to use it.

  • How to use cfmail without specifying username and password??

    Hi pp,
    i have been trying to use the cfmail functionality to send and receive e-mails connecting to the smtp server of <MyUniversity>
    i am creating a page where, at the end a e-mail has to be sent from <[email protected]> to <[email protected]>
    i am connecting with the univ server from the cf server to test whether the e-mails are delivered.
    the e-mails are sent only if i mention the <Username> and <Password> fields belonging to the <[email protected]>
    for my test case i used my own id and the if i set the username and pwd, the e mails are sent, otherwise the emails are not getting delivered.
    can someone suggest why this is happening and i have to make sure that at the end of launching the site, i dont have to get the username and password, because i will not be given access to it as a developer.
    Please suggest me wat to do.
    i am using the simple cfmail function.
    <cfmail
                server="smtp.<univ>.edu"
                port="25"
                from="[email protected]"
                username="[email protected]"
                password="**********"
                to="[email protected]"
                subject="testing testing">
                       <testing the mail functionalities>
    </cfmail>

    Use :
    Properties prop = System.getProperties();
    prop.put("proxySet","true");
    prop.put("http.proxyHost","yourProxy");
    prop.put("http.proxyPort","8080"); // change the port
    //prop.put("https.proxyHost","yourProxy");
    //prop.put("https.proxyPort","8080"); // change the port
    Denis

  • 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 Any Faster In CF8? How many mails per minute?

    Hi there,
    We are currently running CF 7.02 and are considering
    upgrading to 8.
    I've seen lots of articles extolling the speed increases in
    CF8 over 7 etc. but I wondered if there was much of a performance
    increase in regards to CFMAIL?
    We send out vast quantities of emails every day and at busy
    times CFMAIL struggles to keep up. Mails seem to be sent out quick
    enough to our mail server but it seems to be the physical process
    of creating the cfmail files ready for sending that is a little
    slow.
    I think I read somewhere that under CF7 CFMAIL could create
    about 600 CFMAIL files a minute. Does anyone know what the figure
    is for CFMAIL under CF8?
    Or does anyone have any real world experience of CFMAIL
    speeding up or slowing down following an upgrade from CF 7 to 8?
    If this is still slow does anyone have any experience of
    using third party, dedicated, products to do what CFMAIL does? The
    mails we send are stored as entries in our SQL DB and we currently
    use CFMAIL to query the DB and produce html and plain text emails
    from these entries. Is there anything that we coul use to do that
    and take CFMAIL out of the loop?
    Cheers,
    Tem

    Hi there,
    We are currently running CF 7.02 and are considering
    upgrading to 8.
    I've seen lots of articles extolling the speed increases in
    CF8 over 7 etc. but I wondered if there was much of a performance
    increase in regards to CFMAIL?
    We send out vast quantities of emails every day and at busy
    times CFMAIL struggles to keep up. Mails seem to be sent out quick
    enough to our mail server but it seems to be the physical process
    of creating the cfmail files ready for sending that is a little
    slow.
    I think I read somewhere that under CF7 CFMAIL could create
    about 600 CFMAIL files a minute. Does anyone know what the figure
    is for CFMAIL under CF8?
    Or does anyone have any real world experience of CFMAIL
    speeding up or slowing down following an upgrade from CF 7 to 8?
    If this is still slow does anyone have any experience of
    using third party, dedicated, products to do what CFMAIL does? The
    mails we send are stored as entries in our SQL DB and we currently
    use CFMAIL to query the DB and produce html and plain text emails
    from these entries. Is there anything that we coul use to do that
    and take CFMAIL out of the loop?
    Cheers,
    Tem

  • 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

  • Cfmail loops back to original form document yet not sending email.

    I had produced a form to be emailed. after one finishes the form and press submit it loops back top the form again, yet i do not get an email. Doen anyone know why this is happening? Below is the code for the original form and below that is code to my action page... Any suggestions would be welcomed..
    FORM ORIGINAL CODE
    <cfquery name="select_ministry" datasource="ministry9">
    SELECT ministry.ministry
    FROM ministry
    ORDER BY ministry.ministry
    </cfquery>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    @import url("CSS/event_Req_Label.css");
    -->
    </style>
    </head>
    <body>
    <!--- Begin ColdFusion Form --->
    <cfform name="Event_Request" action="EventRequestSend.cfm" method="post" >
    <strong>Event Contact</strong><br />
    <br />
      <span class="eventReq_label">First Name:</span>
                        <cfinput
                        type="text"
                        name="First_Name"
                        message="Please enter your First Name..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">Last Name:</span>
                          <cfinput
                        type="text"
                        name="Last_Name"
                        message="Please enter your Last Name..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">Phone:</span>
                          <cfinput
                        type="text"
                        name="Phone"
                        message="Please enter your Phone Number..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">Email:</span>
                          <cfinput
                        type="text"
                        name="Email_Address"
                        message="Please enter your Email Address..."
                        required="yes" class="event_Request_Box"
                        size="30">
                        </span><br />
                          <br />
                        <br />
                          <strong>About Event/Program</strong><br />
                        <br />
                          <span class="eventReq_label">Event Title:</span>
                          <cfinput
                        type="text"
                        name="Event_Title"
                        message="Please enter the Name of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <br />
                          <span class="eventReq_label">Ministry: </span>
                               <select name="select_ministry" size="1" class="event_Request_Box">
                                 <cfoutput query="select_ministry">
                                   <option value= "#select_ministry.Ministry#" <cfif (isDefined("select_ministry.Ministry") AND select_ministry.Ministry EQ select_ministry.Ministry)>selected</cfif>>#select_ministry.Ministry#</option>
                                 </cfoutput>
                                 </select>
                               <br />
                          <span class="eventReq_label">Event Description:</span>
                          <cftextarea name="Event_Description" cols="40" rows="10" label="Event_Description" required="yes" class="event_Request_Box" id="Event_Description" message="Please Enter a description for the event." tooltip="Please Describe the event in 75 words or less." enabled="no" value="Event_Description" maxlenght="75"></cftextarea>
                          <br />
                          <span class="eventReq_label">Event Date:</span>
                          <cfinput
                        type="text"
                        name="Event_Date"
                        message="Please enter the Date of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">Event Time:</span>
                          <cfinput
                        type="text"
                        name="Event_Time"
                        message="Please enter the Time of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">Address:</span>
             <cfinput
                        type="text"
                        name="Event_address"
                        message="Please enter the Address of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                        <br />
                          <span class="eventReq_label">Address 2:</span>
                          <cfinput
                        type="text"
                        name="Event_address_2"
                        message="Please enter the Address of the Event..."
                        required="no" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">City:</span>
                          <cfinput
                        type="text"
                        name="Event_City"
                        message="Please enter the City of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">State:</span>
                          <cfinput
                        type="text"
                        name="Event_State"
                        message="Please enter the State of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">Zipcode:</span>
                          <cfinput
                        type="text"
                        name="Event_Zip_code"
                        message="Please enter the Zip Code of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">Admission Cost:</span>
                          <cfinput
                        type="text"
                        name="admission_Cost"
                        message="Please enter the cost of admission for the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                        <br />
                        <input type="submit" name="Submit" class="submit" value="Submit">
                        <br />
                        <br />
             <!--- End ColdFusion Form --->
                        </cfform>
    </body>
    </html>
    FORM ACTION PAGE CODE
    <!--- Add cfparams to prevent errors on the page --->
    <cfparam name="Event_Request.First_Name" default="">
    <cfparam name="Event_Request.Last_Name" default="">
    <cfparam name="Event_Request.Phone" default="">
    <cfparam name="Event_Request.Email_address" default="">
    <cfparam name="Event_Request.Event_title" default="">
    <cfparam name="Event_Request.select_ministry" default="">
    <cfparam name="Event_Request.Event_Description" default="">
    <cfparam name="Event_Request.Event_Date" default="">
    <cfparam name="Event_Request.Event_Time" default="">
    <cfparam name="Event_Request.Event_address" default="">
    <cfparam name="Event_Request.Event_address_2" default="">
    <cfparam name="Event_Request.Event_City" default="">
    <cfparam name="Event_Request.Event_State" default="">
    <cfparam name="Event_Request.Event_Zip_code" default="">
    <cfparam name="Event_Request.admission_Cost" default="">
    <!--- Create an empty error string --->
    <cfset strError = "">
    <!--- If the form is submitted --->
    <cfif isDefined("Event_Request.Submit")>
    <!--- If the First Name field is empty --->
        <cfif Len(Trim(Event_Request.First_Name)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "Please enter your First Name...<br>">
        </cfif>
    <!--- If the Last Name field is empty --->
        <cfif Len(Trim(Event_Request.Last_Name)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "Please enter your Last Name...<br>">
        </cfif>
        <!--- If the Phone field is empty --->
        <cfif Len(Trim(Event_Request.Phone)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "Please enter your Phone Number...<br>">
        </cfif>
        <!--- If the Email field is empty --->
        <cfif Len(Trim(Event_Request.Email_address)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "Please enter your Email Address...<br>">
        </cfif>
        <!--- If the Event_title field is empty --->
        <cfif Len(Trim(Event_Request.Event_title)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "Please enter the Name of the Event...<br>">
        </cfif>
    <!--- If the select_ministry is empty --->
        <cfif Len(Trim(Event_Request.select_ministry)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "Please select the ministry...<br>">
        </cfif>
    <!--- If the Event_Description is empty --->
        <cfif Len(Trim(Event_Request.Event_Description)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "please include your description...<br>">
        </cfif>
    <!--- If the Event_Date is empty --->
        <cfif Len(Trim(Event_Request.Event_Date)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "Please enter the date of your program...<br>">
        </cfif>
    <!--- If the Event_Time is empty --->
        <cfif Len(Trim(Event_Request.Event_Time)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "Please enter the Time of your program...<br>">
        </cfif>
    <!--- If the Event_address is empty --->
        <cfif Len(Trim(Event_Request.Event_address)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "Please enter the address of your program...<br>">
        </cfif>
    <!--- If the Event_City is empty --->
        <cfif Len(Trim(Event_Request.Event_City)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "Please enter the city of your program...<br>">
        </cfif>
    <!--- If the Event_State is empty --->
        <cfif Len(Trim(Event_Request.Event_State)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "Please enter the state of your program...<br>">
        </cfif>
    <!--- If the Event_Zip_code is empty --->
        <cfif Len(Trim(Event_Request.Event_Zip_code)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "Please enter the zipcode of your program...<br>">
        </cfif>
    <!--- If the admission_Cost is empty --->
        <cfif Len(Trim(Event_Request.admission_Cost)) LT 1>
            <!--- Add this to the error string --->
            <cfset strError = strError & "Please enter the Admission Cost of your program...<br>">
        </cfif>
    <!--- If the form was not submitted --->
    <cfelse>
        <!--- Send the user to the form page --->
        <cflocation addtoken="no" url="Event_Request.cfm">
    </cfif>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>Response Page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    <!--
    @import url("CSS/event_Req_Label.css");
    -->
    </style>
    </head>
    <body>
    <!--- If the error string is still empty show the results --->
    <cfif strError EQ "">
        <p>Thank you for submitting the Event Request form.</p>
        <p>You submitted the following information:</p>
        <cfoutput>
            <p>    First Name:     #Trim(EVENT_REQUEST.First_Name)#<br><br>
                Last Name:     #Trim(EVENT_REQUEST.Last_Name)#<br><br>
                      Phone:         #Trim(EVENT_REQUEST.Phone)#<br><br>
                Email:         #Trim(EVENT_REQUEST.Email_Address)#<br><br><br><br>
                Event Title:     #Trim(EVENT_REQUEST.Event_Title)#<br><br>
                Ministry:     #Trim(EVENT_REQUEST.select_ministry)#<br><br>
                Description:     #Trim(EVENT_REQUEST.Event_Description)#<br><br>
                Event Date:     #Trim(EVENT_REQUEST.Event_Date)#<br><br>
                Event Time:     #Trim(EVENT_REQUEST.Event_Time)#<br><br>
                Event Address:     #Trim(EVENT_REQUEST.Event_address)#<br><br>
                Event Address 2:#Trim(EVENT_REQUEST.Event_address_2)#<br><br>
                Event City:     #Trim(EVENT_REQUEST.Event_City)#<br><br>
                Event State:     #Trim(EVENT_REQUEST.Event_State)#<br><br>
                Zip code:     #Trim(EVENT_REQUEST.Event_Zip_code)#<br><br>
          Admission_Cost:    #Trim(EVENT_REQUEST.admission_Cost)#<br><br></p>
        </cfoutput>
        <p>Someone will contact you if necessary. </p>
    <!--- Send the email --->
    <cfmail from="#EVENT_REQUEST.Email_Address#"         to="[email protected]"
            subject="You have mail from"
            replyto="#EVENT_REQUEST.Email_Address#"
            server="mail.thehansonco.com">
    You Have an inquiry from:     #Trim(EVENT_REQUEST.First_Name)#
                                #Trim(EVENT_REQUEST.Last_Name)#<br><br>
                          Phone:     #Trim(EVENT_REQUEST.Phone)#<br><br>
                        Email:     #Trim(EVENT_REQUEST.Email_Address)#<br><br><br><br>
                        Event Title:     #Trim(EVENT_REQUEST.Event_Title)#<br><br>
                        Ministry:         #Trim(EVENT_REQUEST.select_ministry)#<br><br>
                        Description:     #Trim(EVENT_REQUEST.Event_Description)#<br><br>
                        Event Date:     #Trim(EVENT_REQUEST.Event_Date)#<br><br>
                        Event Time:     #Trim(EVENT_REQUEST.Event_Time)#<br><br>
                        Event Address:     #Trim(EVENT_REQUEST.Event_address)#<br><br>
                        Event Address 2:#Trim(EVENT_REQUEST.Event_address_2)#<br><br>
                        Event City:     #Trim(EVENT_REQUEST.Event_City)#<br><br>
                        Event State:     #Trim(EVENT_REQUEST.Event_State)#<br><br>
                        Zip code:         #Trim(EVENT_REQUEST.Event_Zip_code)#<br><br>
                        Admission_Cost:    #Trim(EVENT_REQUEST.admission_Cost)#<br><br>
        </cfmail>
    <!--- If the error string is not empty show the form again --->
        <cfelse>
        <!--- Begin ColdFusion Form --->
    <cfform name="Event_Request"  action="EventRequestSend.cfm" method="post" >
    <strong>Event Contact</strong><br />
    <br />
    <!--- Add table row to show error message --->
                    <cfoutput>#strError#</cfoutput>
      <span class="eventReq_label">First Name:</span>
                        <cfinput
                        type="text"
                        name="First_Name"
                        message="Please enter your First Name..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">Last Name:</span>
                          <cfinput
                        type="text"
                        name="Last_Name"
                        message="Please enter your Last Name..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">Phone:</span>
                          <cfinput
                        type="text"
                        name="Phone"
                        message="Please enter your Phone Number..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">Email:</span>
                          <cfinput
                        type="text"
                        name="Email_Address"
                        message="Please enter your Email Address..."
                        required="yes" class="event_Request_Box"
                        size="30">
                        </span><br />
                          <br />
                        <br />
                          <strong>About Event/Program</strong><br />
                        <br />
                          <span class="eventReq_label">Event Title:</span>
                          <cfinput
                        type="text"
                        name="Event_Title"
                        message="Please enter the Name of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <br />
                          <span class="eventReq_label">Ministry: </span>
                               <select name="select_ministry" size="1" class="event_Request_Box">
                                 <cfoutput query="select_ministry">
                                   <option value= "#select_ministry.Ministry#" <cfif (isDefined("select_ministry.Ministry") AND select_ministry.Ministry EQ select_ministry.Ministry)>selected</cfif>>#select_ministry.Ministry#</option>
                                 </cfoutput>
                                 </select>
                               <br />
                          <span class="eventReq_label">Event Description:</span>
                          <cftextarea name="Event_Description" cols="40" rows="10" label="Event_Description" required="yes" class="event_Request_Box" id="Event_Description" message="Please Enter a description for the event." tooltip="Please Describe the event in 75 words or less." enabled="no" value="Event_Description" maxlenght="75"></cftextarea>
                          <br />
                          <span class="eventReq_label">Event Date:</span>
                          <cfinput
                        type="text"
                        name="Event_Date"
                        message="Please enter the Date of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">Event Time:</span>
                          <cfinput
                        type="text"
                        name="Event_Time"
                        message="Please enter the Time of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">Address:</span>
             <cfinput
                        type="text"
                        name="Event_address"
                        message="Please enter the Address of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                        <br />
                          <span class="eventReq_label">Address 2:</span>
                          <cfinput
                        type="text"
                        name="Event_address_2"
                        message="Please enter the Address of the Event..."
                        required="no" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">City:</span>
                          <cfinput
                        type="text"
                        name="Event_City"
                        message="Please enter the City of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
      <span class="eventReq_label">State:</span>
      <cfinput
                        type="text"
                        name="Event_State"
                        message="Please enter the State of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
    <br />
                          <span class="eventReq_label">Zipcode:</span>
                          <cfinput
                        type="text"
                        name="Event_Zip_code"
                        message="Please enter the Zip Code of the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                          <span class="eventReq_label">Admission Cost:</span>
                          <cfinput
                        type="text"
                        name="admission_Cost"
                        message="Please enter the cost of admission for the Event..."
                        required="yes" class="event_Request_Box"
                        size="30">
                          <br />
                        <br />
                        <input type="submit" name="Submit" class="submit" value="Submit">
                        <br />
                        <br />
                        </cfform>
                        </cfif>
    </body>
    </html>

    When you submit a form, the name of it doesn't matter.  When you process it it's form.this and form.that, not name_of_form.this and name_of_form.that.  In your code, the structure event_request does not exist until the cfparam tags create it.  All of those tags will create variables with empty strings.  Later your code adds a bunch of error messages and doesn't send any mail because of your if/else logic.

  • 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 not working. Please help!

    I am trying to get this to send an email each time a file is
    uploaded. All the fields in the form are updating the database
    correctly but the email is never sent and no error message is
    generated. Any ideas....please help!!!
    <cfif IsDefined("FORM.ID")>
    <cfupdate datasource="xxxxxxx" tablename="FTPCatalog">
    <cfelse>
    <cfinsert datasource="xxxxxxx" tablename="FTPCatalog">
    <cfmail to = "#SendTo#"
    from = "#EmailAddress#"
    subject = "FTP file upload notification!"
    server = "mail.server.net" >
    A file has been uploaded to the server.
    </cfmail>
    </cfif>

    you do realise that your code as it is in your original post
    will only
    send email when a NEW RECORD is INSERTED into the db? no
    email will be
    sent on UPDATE of db because how your cfif/cfelse is
    constructed.
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • CFMail Tag Issue

    I have a form on my website that use the cfmail tag to send
    information collected from a form via email. I am no longer getting
    the email submitted from the form yet I'm also not getting an error
    and I haven't changed anything. I suspect it's a relay issue but my
    Sys Adm insist it's not and suggest I use mailto: I don't see the
    point of using a client side solution when I have a server side
    (and probably better) solution already in place.
    I have listed the code I'm using to process the form for
    reference in case I am missing something. Could anyone shed some
    light on this for me. If it's not my code what are the downsides to
    using a client side solution such as mailto ?
    Thanks

    I'm assuming the isDefined leadershipopp and joinassociation
    are checkboxes.
    But..
    If for any reason one of the other form elements wasn't
    defined, you'd have an error condition.
    Wrap the cfmail tag in a cftry block and then in the cfcatch
    email an admin email with the cfcatch.message and cfcatch.detail.
    Make sure you validate the form.email format, check cflib.org
    for a udf for this. you could also use cfform validation routines.
    An invalid email will throw an error.
    Additionally, use cfparam tags for each of the form elements
    with a default value.

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

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

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

  • Performance tuning & Securing MX 7 on IIS 6

    I never had much at all to do with Coldfusion and have just been asked to look into making some security and performance suggestions for a small Windows 2003/IIS 6 server farm using Coldfusion MX 7. This is what I was planning; Configure all IIS webs

  • Intercompany Sales/STO??-ANY IDEAS

    We have requirement- we have 2 Company codes ( Ltd comp & Pvt Ltd comp) When company-1 requests for req-other company issues the same. Tax & duty is applicable. I planned to, Rec.Plant- 1- Creates ME21N- doc type - NB S.Plant- 2. Creates Delivery - V

  • Abstract class : newbie

    import java.io.*; abstract class Area double dim1; double dim2; Area(double x, double y)           dim1=x;           dim2=y;      abstract double claculate();      void Call()           System.out.println(" I am a concrete method and I can exist in a

  • Can not open .pages file on new iMac Mavericks

    Cannot open a .pages file on 2014 iMac with Mavericks. Pages v 5.2.2  says there is a newer version but I cannot upgrade Pages either. Thoughts?

  • Snow Leopard and Firefox -- Color Management

    Hello I am using using Snow Leopard 10.6.1 and Firefox 3.5.2 and I noticed that the color management doesn't really work anynore...when I compared my photo on smugmug PS and Safari are displaying the right color but FF doesn't really really show the