CFMail not sending

I have a form that has two pages: the form itself, and an
action page. The form consists of text boxes, radio buttons, and a
place to attach a document. On the action page I have used cffile
to save the file to the server, which it does correctly, and then a
cfmail tag to send the e-mail with the file attached-- this is
where I'm lost! The file saves to the right place, but the e-mail
is never generated and I don't get any kind of error message to
point me in the right direction. I think it might have something to
do with some kind of missing <param> code, but I'm not too
familiar with that. Please help!

This works for me
YearMonth = DateFormat(StartDate, "yyyy-mm");
TheFile="d:\dw\dwweb\work\neuro_#YearMonth#.txt";
<cfmail to="#recipients#" from="#sender#"
subject="Neurosurgery Stats for #yearmonth#"
mimeattach="#thefile#">
</cfmail>

Similar Messages

  • Cfmail not sending to external address

    Hello,
    I have a new web server that I am testing before turning it on live. I have run into a cfmail issue. The server is
    Windows 2008 R2, 64Gig ram, 64-bit, IIS 7.5, Coldfusion 9.0.2 multi server, clustering 2 CF instances, JDK1.7.0_71
    We had a company setup CF and harden so this may be related to the hardening but I am not sure.
    <cfmail is not sending email to recipients outside of our domain/work domain. The 1st <cfmail> tag below sends the email but the 2nd one does not. This is what I see when trying to send via the 2nd <cfmail> tag with external recipient email address domain
    - no errors on the page I run in the browser
    - email is not received at [email protected] (syntax is correct)
    - attempt #2 shows up in 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 same error in addition to stack trace
    - server.log no error
    Any help is appreciated
    Joe
    <cfmail to="[email protected]" from="[email protected]" subject="test" type="html">
        #DateFormat(now(),"mm/dd/yyyy")# #TimeFormat(now(),"HH:mm:ss")#<br />
    </cfmail>
    <cfmail to="[email protected]" from="[email protected]" subject="test" type="html">
        #DateFormat(now(),"mm/dd/yyyy")# #TimeFormat(now(),"HH:mm:ss")#<br />
    </cfmail>

    CFMAIL is just a wrapper for the underlying Java mail API methods, so there should not be any problem with it.
    Seems like SMTP server is not registered to send mails out. So this is purly the problem with the SMTP server, not with the CFMAIL
    HTH
    Thanks
    VJ

  • Is any way in CFML send cfmail not code but rather a page.cfm

    is any way in CFML send cfmail not code but rather a page.cfm... one way is convert page.cfm (and server side code) to code lines and append in cfmail? if yes, how this? or any other way for first?

    shows below with eight smaller boxes 7px square about at the top, space and after the html....boxes can not copied  
    used:
    <cfsavecontent variable="theHTML">
         <cfinclude template="index.cfm">
    </cfsavecontent>
    <cfmail from="[email protected]" subject="Confirmation" to="[email protected]"><cfoutput>#trim(theHTML)#</cfoutput></cfmail>
    <!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"><!-- InstanceBegin template="/Templates/storeTempl1.dwt" codeOutsideHTMLIsLocked="false" --> <head>
    <!-- InstanceBeginEditable name="doctitle" --><meta name="google-site-verification" content="YMuLX_G2GYYC5vHgAVqEIoOE7xw6CBU6nKOaXXuJUyE" /> <title>Home Page - PolisPhotos.com new Layout Nov. 2010</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <meta name="description" content="new Layout - NOV 2010 - Photo Images of Polis, Pafos  District, Cyprus" /> <meta name="abstract" content="Polis, CY Photo Prints & Downloads Online Shop" /> <meta name="keywords" content="polis photos, polis fotos, polis chrysochous, pafos photos, paphos photos, Cyprus photos, polis images, polis fotos, polis chrysochous photos, polis chrysochous images, pafos images, paphos images, Cyprus images, polis cyprus, polis holidays, polis gifts, polis photos shop, polis shop, polis online, polis shop online" /> <meta name="robots" content="index,follow" /> <meta name="distribution" content="Global" /> <meta name="author" content="L web Dev net" /> <meta name="copyright" content="All contents copyright(c) 2011 of www.polisphotos.com" /> <meta name="Resource-Type" content="Document" /> <meta name="generator" content="Dreamweaver CS4" /> <meta name="language" content="EN-US" />
    <!-- InstanceEndEditable -->

  • 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

  • TS3899 I still can not send email from my ipad but iPhone works on those accounts

    I still can not send email from my .mac account or a .comcast.net from my ipad. I how 2 people so far that has brought to my attention. We have exchange accounts setup on the ipads for work. I compare the settings from iPad to iPhone from my view it appears identical. I am looking at an iPad 2 and a Mini.
    I turned on and off the ipads and nothing really changed. The emails come into those accounts.
    Any suggestions?
    Thanks
    VickiHTC

    When you say you can't send...as in they never get the email?  Does the email appear to send?  Error message?  When?
    It may be more than one iPad that has a problem....

  • Can not send email from this house

    I cannot send an email from any computer, laptop or phone (connected via wifi) from this house. However, if I take the laptop or phone to another place I can send with no problem. Oh, I can receive just fine.
    Here's the problem. I am not using Verizon's provided email. I am using one of my own, i.e. [email protected]
    Any email address (59 different accounts) that is on my server will not send from here. Now, no other Verizon user has this problem. Example: My parents have an email address from my server and it works. So does my son, as well as my brother and a few clients. None of them have a problem sending an email, and they are all Verizon customers. Yet, come to my house, use my internet and you can't send.
    I am using MS Exchange 2003 and I have been an Admin for 10 years and I know what I am doing. Before anyone asks, I set my exchange to listen for port 587 as well.
    I have called Verizon on numerous of occasions with no help. I called many IT friends and they keep saying it's Verizon. I called the Techs where my server resides and 7 of them attempted to figure this out and they too say it's Verizon. The only way I can send an email from my house is log onto my server remotely and send it from there, or use my phone's internet and send from there.
    Now, I can understand if I had a problem with every Verizon account out there, meaning if no one else using the email from my server couldn't send, but when it only happens here at my house it makes no sense.
    I have tried everything. I only had my laptop plugged directly into the modem (bypass the router) nothing. Got a new modem - same thing, still can't send.
    Oh, I can send emails with the Verizon email provided though. Just not mine own.
    Oh, I do have my own webmail setup on my server. I can log on to it via my browser and send from there just not from Outlooks, Thunderbird or any other 3rd party email.
    Any ideas or help it greatly appreciated. I've gone through this for over a month and it's driving me crazy!

    For the sake of example, we are going to pretend that we are setting up  your fictional account. Using "[email protected]" as the 3rd party address and "[email protected]" and the password for logging into that account in webmail is "fakepassword" - Again, this is a fictitious account for the sake of an example.
    The settings for using Verizon's servers would be:
    Incoming Server: incoming.mydomain.com (or whatever your 3rd party server is) - For this server you set up everything according to your domain's settings.
    Reply Address: [email protected]
    Outgoing Server: outgoing.verizon.net
    Server Requires Authentication: Yes
    Username: fakeacct
    Password: fakepassword
    Requires a Secure Connection (SSL): No
    Port: 25 (although 587 also works.)
    These settings should work unless you have a Verizon/Yahoo account, in which case the outgoing server name is: outgoing.yahoo.verizon.net
    Hope this makes a little more sense.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

  • I can not send email from my iPad .  Have been using it for over a year, all of a sudden I can only receive email.  I have a wifi connection in my home and have a A T &T cellular data plan?

    I can not send email from my iPad .  Have been using it for over a year, all of a sudden I can only receive email.  I have a wifi connection in my home and have a A T &amp;T cellular data plan?

    I have a 1st gen iPhone that I just updated the software to 2.0.2
    Now whenever I press the mail icon it goes to the mail app for about 4 seconds, does nothing, no loading of folders, old messages, nothing.
    Then it reverts back to the home screen. Tried restarting, haven't tried restoring, thought I'd look here first.
    Anyone???

  • TS2621 Cannot send emails from my iPad hotmail account.  I can receive but not send.  I get message"unable to send email"

    This just started out of the blue today.  I get a message saying email cannot be sent.  

    I have done everything in the link TechMastr suggested.  I can not send a hotmail message from any of my I-devices.  I thought it might be just my accounts, but tried my husband's device as well.  This includes things not connected to wi-fi and on 3G.  Could it be hotmail?  It is so frustrating. 

  • HT1430 Hello, email settings correct, can not send emails from the ipad,

    ****, I HAVE ENTERED ALL MY EMAIL SETTINGS CORECTLY INTO MY IPAD FROM MY EMAIL ACCOUNT ON MY PC AND I CANNOT SEND EMAILS FROM IPAD  , WHAT AM I DOING WRONG CAN YOU HELP PLEASE

    it could be one of many reasons, is it giving you a reason why it is not sending emails?
    I know you said everything is the same as your PC email settings, but I would double check, also the iPad will tend to default to IMAP, so if you are using POP3 for your email, you may need to change the settings on the mail server. For example Gmail default to POP3 and needs IMAP turning on.
    What email account are you using? Who is it with?

  • Ipad not sending email, forced to reboot for changes to apply

    Hi all
    I was asked to look at a friends two week old iPad today.
    It was set up for them last week.
    Initially the person setting it up tried to add a Gmail account but found that it would receive but not send emails (using the native email app).
    They then decided to open an outlook.com account and use that instead of the gmail account.
    This worked fine for two days but then error messages saying that the mail could not be sent started to pop up. It struck me that the speed with which the error message appeared after clicking send suggested that this was an iOS issue rather than the server rejecting anything.
    I tried to check the imap/smtp settings in the "control panel" but they were not available (read:visible) so I deleted the account and entered the settings manually.
    It still wouldn't send emails but this time it didn't throw up any error messages, instead it decided to just dump them in the outbox without notifying me that there was an issue.
    Suspecting that the issue was with the ipad rather than the outlook servers, I decided to use my own smtp server details. Initially I tried using SSL but when this too failed I switched to the unsecure version on port 25.
    It still wouldn't send anything so I eventually rebooted by holding down the power button until the power off slider appeared. On rebooting I discovered that I could now send emails.
    TBH I have no idea if using the different SMTP server will be an issue if they ever want to check their outlook.com "sent mail" on line or not but i do have some questions
    1. Why was the reboot necessary? I had closed all open, unnecessary apps by double tapping the home button Might it have been the case that manually entering the outlook.com settings would have worked (given that the ideal set up would be to use the SSL outlook servers).
    2. Is this an unresolved iOS7 problem. Google searches resulted in many owners complaining that the iOS7 upgrade had rendered their email accounts incapable of sending emails. TBH the advice given ranged from perhaps sensible to plain daft.
    3. can anyone using outlook.com as their email provider on iOS7 confirm which smtp server, port, etc they use?
    4. Are there better email apps that actually give you detailed feedback?
    i don't know when I will next get the chance to get my hands on their ipad again but I would rather that they were using the correct outgoing servers with encryption (rather than my unencrypted smtp server).
    Thanks in advance

    neilyoung1 wrote:
    For the past few days I am now having trouble sending my client emails.  I get them bounced back with a permanent error of retry time exceeded.
    This is getting fustrating now as my client is needing answers that I cant give.  She is unable to email her colleague in the USA, and I am now unable to email her on a btinternet.com address.
    Do BT engineers monitor these forums?
    -Neil
    Hi again Neil.
    Your extra info now to me means that it appears to be problem at the client end!
    I hope you don't mind me asking a few questions ....
    Is she a regular BT Broadband user with a normal BTinternet email address ? Does she use secondary email addresses ?
    Do you know if she can happily email other people ? If not - it could be an account problem which may last a few days ....
    If you don't wish to provide the complete bounce message you received, could you perhaps email me the detail (emailing me using my shortcuts). Also pehaps you could ask your client to email me via my shortcuts, and see what happens and I'll take a look at replying to see what happens.
    The user on shentel.net domain she's been trying to email, did she ever manage to send any emails initially ? It could be the destination user having a problem.
    The mods do monitor these forums, but there are a lot of posts to go through of course ......
    http://www.andyweb.co.uk/shortcuts
    http://www.andyweb.co.uk/pictures

  • Can not send SMS text message.

    Hi, I'm a BlackBerry user for 4 years now and this is the first time that I have a problem with SMS text messaging. My precious BB is a Q10.
    The problem is that I can receive SMS messages but I can not answer and I can not send messages. When I tap the 'send' icon or press Enter nothing happens. My message dissapears and i can not see in the upper window, below the message that I've previously receive and I wanted to aswer for.
    Also, I can compose SMS message, but when I press Enter or tap send, nothing happens. No message in the hub, or in the text messages folder.
    I've rebooted the device, reloaded the OS, but didn't help.

    Hi and Welcome to the Community!
    With a strong carrier network signal (e.g., not merely WiFi), I suggest the following steps, in order, even if they seem redundant to what you have already tried (step 1 should result in a message coming to your BB...please wait for that before proceeding to the next step):
    1) Register HRT
    KB00510 How to register a BlackBerry smartphone with the wireless network
    Please wait for one "registration" message to arrive
    2) Reboot
    Pre-BB10 Devices ONLY. With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes.
    BB10 Devices. Hold the top button down until the counter reaches zero. Wait for the device to be fully shut down (e.g., nothing at all displayed on the screen, no LED lights, etc.). Hold the top button until the red LED is lit. Wait through the full boot-up process. IF this fails, you can attempt the battery-pull method above, but it is normally NOT recommended unless nothing else works.
    See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure.
    Hopefully that will get things going again for you! If not, then you should contact your mobile service provider for formal support.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Blackberry curve (8300) is adding a 1 to phone number in SMS?? will not send message?

    I get an error message saying that I need to resend the message w/ a proper 10 digit number... Which I have in my address book, but then the phone will add an extra 1 to the #, making it 11 characters, and thus not sending messages.... I have looked through both phone and SMS options and have found nothing that helps.. I have turned off the country code in phone options, resent the SMS, and still had the same problem.  then I took the area code off and the same thing still happened. Please help b/c I cannot text my gf at the moment????!!!
    also, it adds a 1 to only certain phone numbers.  i can text almost everybody else just fine, apart from like 3-4 people.
    thanks in advance,
    ~Andrew~

    Try http://supportforums.blackberry.com/t5/BlackBerry-Storm/Menu-Key-not-working/td-p/151422
    Twitter: @IAmBenGiey | Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.
    Try my apps:
    The Ultimate Currency Converter and T2G - BloGFeed

  • Sharepoint Server 2013 not sending Email notification

    I have a Sharepoint 2013 farm that is not sending any kind of email notifications. I also have a Sharepoint 2010 farm whit the same Outgoing Email settings and it is sending emails notifications normaly.
    The SMTP service (the role) is in the same member servers of the 2013 farm, so it is reachable. The timer service is running well in both member servers of the 2013 farm. We don't have an On-premise Exchange enviroment because we use Office 365 (I cannot
    set the sharepoint servers as allowed to relay in Exchange). The 2010 farm and the 2013 farm have the same Outgoing Email settings, I don´t know why the 2013 does not send emails. It is driving me crazy!.
    How can I solve this?
    Melvintt
    MCTS, Windows Server 2008 R2: Network Infrastructure
    MCTS, Windows Server 2008 R2: Active Directory, Configuring

    What about Relay and Authentication?
    Trevor Seward, MCC
    Follow or contact me at...
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.
    Look.
    I think this is the correct configuration because it sends emails normaly with SharePoint 2010.
    If I configure my own email account in Outbound Security, Sharepoint 2013 sends emails but just when I login to Sharepoint, if other users login it doesn't send emails.
    Melvintt
    MCTS, Windows Server 2008 R2: Network Infrastructure
    MCTS, Windows Server 2008 R2: Active Directory, Configuring

  • SharePoint 2010: Scheduled Web Analytics Reports workflow is not sending ANY email

    Hello,
    I've a SharePoint 2010 Enterprise farm. I setup a Scheduled Web Analytics Reports workflow in a site collection with different web analytics reports options checked. So far I've not got ANY email. When I went to Site Workflows, I'm seeing that the workflow
    is running. When I click on Completed status, I see below outcome in the Workflow History section:
    "Email sent but reports with no data were not attached."
    And I see below information in the Workflow History list:
    "Attached are the daily Web Analytics reports for 1/7/2015 through 1/7/2015 for SharePoint Site Collection
    http://server/team/site scheduled by workflow "SharePoint Site Web Analytics Reports". "
    I am able to generate the reports manually by going to Site Collection Web Analytics Reports, but I want to schedule them. The problem is I'm not getting ANY email in my inbox. What am I missing here? Are the emails getting filtered by Outlook or workflow
    is not sending emails at all?
    Please help! This is getting frustrated.
    Thanks,
    Ashish

    Hi Ashish,
    Based on your description, my understanding is that the email is not sent from the Scheduled Web Analytics Reports workflow.
    I recommend to the things below:
    1. Check if the Outgoing email has been configured for the web application where you run the Scheduled Web Analytics Reports workflow.
    In Central Administration > Application management > Manage web applications > select the corresponding web application > click General Settings in the ribbon and select Outgoing E-mail.
    2. Make sure that your account has email address configured.
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • IPhone mail app not sending notifications

    I use the mail app for iphone to check my college email,
    usually it sends notifications when I receive a new messege but it is not sending any more (No sounds, no banners, no badges),
    Although the email app is in Notification Center when I check it in the settings
    Is that beacuse I Use IMAP Not POP ?

    If Mail is in the notification center and the badge icon is on, alert is on, and ect... Try to reset your device holding home and sleep/wake button; Wait til the Apple logo appears and then let go of the buttons and wait for reboot. Has nothing to do with what type of email account you are using.

Maybe you are looking for