Page 1 of 1
send document attachment not attaching file to email
PostPosted:Wed May 23, 2012 12:39 pm
by rasha123
hi,
when i select send document as attachment, the email sent with the file name but no attachment there ??
any idea why is that??
thanksss
Re: send document attachment not attaching file to email
PostPosted:Sat May 26, 2012 7:26 am
by rasha123
i tried to solvethe problem but no clue

Re: send document attachment not attaching file to email
PostPosted:Mon May 28, 2012 7:10 am
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 ?
Re: send document attachment not attaching file to email
PostPosted:Mon May 28, 2012 10:34 am
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 (33.21 KiB) Viewed 6913 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 allAABYAwAAWQMAAFoDAABbAwAAXAMAAF0DAABeAwAAXwMAAGADAABhAwAAYgMAAGMDAABkAwAAZQMA
AGYDAABnAwAAaAMAAGkDAABqAwAAawMAAGwDAABtAwAAbgMAAG8DAABwAwAAcQMAAHIDAABzAwAA
dAMAAHUDAAB2AwAAdwMAAHgDAAB5AwAAegMAAHsDAAB8AwAAfQMAAH4DAAB/AwAAgAMAAIEDAACC
AwAAgwMAAIQDAACFAwAAhgMAAIcDAACIAwAAiQMAAIoDAACLAwAAjAMAAI0DAACOAwAAjwMAAJAD
AACRAwAAkgMAAJMDAACUAwAAlQMAAJYDAACXAwAAmAMAAJkDAACaAwAAmwMAAJwDAACdAwAAngMA
AJ8DAACgAwAAoQMAAKIDAACjAwAApAMAAKUDAACmAwAApwMAAKgDAAC3/
A
can you guide me plz
Re: send document attachment not attaching file to email
PostPosted:Wed May 30, 2012 10:54 am
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.
Re: send document attachment not attaching file to email
PostPosted:Sun Jul 22, 2012 12:58 pm
by rasha123
How can i enable mail-service.xml??
i am using openkm 5.1.9
when i send the file as attachment o only recieve the link to the file in my email not the attachement.
any help ?
Re: send document attachment not attaching file to email
PostPosted:Mon Jul 23, 2012 11:26 am
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 ).
Re: send document attachment not attaching file to email
PostPosted:Wed Jul 25, 2012 12:20 pm
by rasha123
hi,
i upgarded to openkm 5.1.10 , Enable debug=true in mail-service.xml , but still no attachement! am i missing something ?
how can i check if the attachement is sent or not ?please guide me
Re: send document attachment not attaching file to email
PostPosted:Thu Jul 26, 2012 3:26 pm
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.
Re: send document attachment not attaching file to email
PostPosted:Sun Jul 29, 2012 8:23 pm
by pavila
Please, try the last night build.
Re: send document attachment not attaching file to email
PostPosted:Wed Aug 08, 2012 1:42 pm
by michaeled
pavila wrote:Please, try the last night build.
Some tried it ? Did the trick resolved the issue ?
Re: send document attachment not attaching file to email
PostPosted:Wed Aug 29, 2012 10:27 am
by rasha123
i tried still not solved yet
