• send document attachment not attaching file to email

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #16742  by jllort
 
Enable debug in mail-service.xml and take a look what happens when you're sendin mail attached. And finally which openkm version do you have installed ?
 #16746  by rasha123
 
hi,

im using openkm 5.1.9
im new to openkm ,and im littele bit confused here, i enabeled mail debug but i have no clue from where i can find what is happening!

i open server.log and it was empty, a tried to run debug consule and that is what it gives me!
debug.png
debug.png (33.21 KiB) Viewed 6903 times
this is my mail configuration
Code: Select all
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- $Id: mail-service.xml 62349 2007-04-15 16:48:15Z dimitris@jboss.org $ -->
    <server>
      <!-- ==================================================================== -->
      <!-- Mail Connection Factory                                              -->
      <!-- ==================================================================== -->
      <mbean code="org.jboss.mail.MailService"
             name="jboss:service=Mail">
        <attribute name="JNDIName">java:/Mail</attribute>
        <attribute name="User">openkm@domain.com</attribute>
        <attribute name="Password">pasword</attribute>
        <attribute name="Configuration">
          <!-- A test configuration -->
          <configuration>
            <!-- Change to your mail server prototocol -->
            <property name="mail.store.protocol" value="imap"/>
            <property name="mail.transport.protocol" value="smtp"/>
            <!-- Change to the user who will receive mail  -->
            <property name="mail.user" value="openkm@domain.com"/>
            <!-- Change to the mail server  -->
            <property name="mail.imap.host" value="mail.domain.com"/>
            <!-- Change to the SMTP gateway server -->
            <property name="mail.smtp.host" value="mail.domain.com"/>
    <property name="mail.smtp.starttls.enable" value="true" />
          <property name="mail.smtp.socketFactory.class" value="javax.net.ssl.SSLSocketFactory" />
            <!-- The mail server port -->
            <property name="mail.smtp.port" value="587"/>
    <property name="mail.smtp.socketFactory.port" value="587" />
            <!-- Change to the address mail will be from  -->
            <property name="mail.from" value="openkm@domain.com"/>
            <!-- Enable debugging output from the javamail classes -->
            <property name="mail.debug" value="false"/>
          </configuration>
        </attribute>
        <depends>jboss:service=Naming</depends>
    </mbean>

      <!-- OpenKM -->
      <mbean code="org.jboss.mail.MailService" name="jboss:service=OpenKM">
        <attribute name="JNDIName">java:/mail/OpenKM</attribute>
        <attribute name="User">openkm@domain.com</attribute>
        <attribute name="Password">password</attribute>
        <attribute name="Configuration">
          <configuration>
            <property name="mail.transport.protocol" value="smtp"/>
            <property name="mail.smtp.host" value="mail.domain.com"/>
            <property name="mail.smtp.port" value="587"/>
            <property name="mail.from" value="noreply@openkm.com"/>
            <property name="mail.debug" value="true"/>
          </configuration>
        </attribute>
        <depends>jboss:service=Naming</depends>
      </mbean>
    </server>
and from the run i see these charectres
Code: Select all
AABYAwAAWQMAAFoDAABbAwAAXAMAAF0DAABeAwAAXwMAAGADAABhAwAAYgMAAGMDAABkAwAAZQMA
AGYDAABnAwAAaAMAAGkDAABqAwAAawMAAGwDAABtAwAAbgMAAG8DAABwAwAAcQMAAHIDAABzAwAA
dAMAAHUDAAB2AwAAdwMAAHgDAAB5AwAAegMAAHsDAAB8AwAAfQMAAH4DAAB/AwAAgAMAAIEDAACC
AwAAgwMAAIQDAACFAwAAhgMAAIcDAACIAwAAiQMAAIoDAACLAwAAjAMAAI0DAACOAwAAjwMAAJAD
AACRAwAAkgMAAJMDAACUAwAAlQMAAJYDAACXAwAAmAMAAJkDAACaAwAAmwMAAJwDAACdAwAAngMA
AJ8DAACgAwAAoQMAAKIDAACjAwAApAMAAKUDAACmAwAApwMAAKgDAAC3/
A
can you guide me plz
 #16758  by jllort
 
From UI you'll not see this error, because the mail is sending as server process ( take no effect on UI ).

About strange characters, that should be the file encoded. Could you test with other mail client to ensure is not a mail client problem in the way the attachement is sent.
 #17253  by jllort
 
If you receive the mail, then mail-service is yet enabled and nothing else must be done. I suggest upgrade to 5.1.10 if it's a bug that we have solved.

Enable debug=true in mail-service.xml to see inf really is sending the attachment or not. ( take a look at server.xml to see it ).
 #17288  by jllort
 
For what I have seen in other post ( debug mode enabled ) seems attachment is sended. Which is your mails client. Can you test with other like some gmail account ( only for testing purpose ). Could be some problem with how we sending the mail and the client you're using.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.