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.

Tags: ColdFusion

Similar Questions

  • Intrusion via CFMail, and Message-Id

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

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

    Thank you



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

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

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

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

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

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

  • Intrusion via CFMAIL and HTML content

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

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

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

    Any suggestions would be helpful.

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

  • issue of intrusion via CFMAIL and text area

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

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

    Someone knows how to do this? Thank you

    Replace Chr (10) Chr (13) with

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

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

  • intrusion via CFMAIL multipart, treated like a virus

    Hello

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

    The vulnerability can be defined as:

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

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

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

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

    Any help would be well evaluated.

    Thank you.

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

  • Firewall problem possible intrusion via CFMAIL

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

    Thanks for the help.

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

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

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

    At least it fixed it for me.

  • Send attachments with intrusion via cfmail?

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

    Help?
    Thank you very much!!!

    See the documentation for it gives a couple of
    examples.

    cfmailparam examples


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



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



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


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

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

    There should be a picture here



    After the photo


  • Attaching generated the file in the intrusion via cfmail excel

    Hello

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

    How do I save rather than the excel output file?

    Katie

    Hello

    Take a look at the following tags:

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

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

    see you soon,
    Fouad

  • Submit FORM and intrusion via CFMAIL

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

    Is there a way to do this?

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

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

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

  • How to encrypt messages of intrusion via cfmail in CF 10?

    Hello

    In my view, there is a useful attribute encrypt for intrusion via cfmail in ColdFusion 11. But I have version 10. Is there a work around to encrypt messages via cfmail intrusion?

    Thank you
    Josh

    I did some research on Google and found nothing.  This does not mean that it is not possible or practicable; but there is no native way to do it, as far as I know, in CF10.

    V/r,

    ^_^

  • 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

  • intrusion via CFMAIL utf-8

    I use the intrusion via CFMail to send mail. Because the mail contains Spanish, I need email support for utf-8 character set.

    I use following code to display the Spanish characters, but the email shows funny characters.

    I would like to know is there any way to display utf-8 characters for a particular language.

    Your information and help is much appreciated,

    Kind regards

    Iccsi,

    "< FROM =" "#myMail.Frommail # intrusion via CFMAIL" TO = "#MyMail.ToEMail #".
    BCC = "" #MyMail.BccEMail # "SUBJECT ="My subject"charset ="utf - 8 ""
    TYPE = "Plain Text" >


    #MyEmail.EMailMessage #.

    < / intrusion via CFMAIL >

    I use the following code, then it works,

    Thanks for the help and information,

    Iccsi,

  • Intrusion via CFMail

    I would use intrusion via CFMail to send e-mail.

    Intrusion via CFMail must mail SMTP server to install or ColdFusion mail server?

    Information and help Yuor is great appreciated,

    Kind regards

    Iccsi,

    No, ColdFusion doesn't have an e-mail server. Just as you must provide the database server yourself, so, too, the case with the mail server.

    What ColdFusion needs to know for purposes of configuration are the domain name or address IP of your e-mail server, the user name and password. You must enter information in the mail page in the ColdFusion administrator. Once the mail server is configured, you can re-use intrusion via cfmail to send mail.

    You can configure ColdFusion to use an existing Google mail e-mail server. However, if you want to have your own mail server, I recommend hMailServer (for Windows). It of free and is well documented.

Maybe you are looking for