Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Attachment types supported

Help
2010-09-15
2013-04-25
  • hello stephan,
    can you tell me whether yawebmail supports all attachment types. when i tried to attach some files like .csv or .xls etc although the file is attached, while sending the mail IOException occurs. Is there restriction on the type of attachments supported ? Please suggest solution for this problem.

    regards
    -yogeen

     
  • Stephan Sann
    Stephan Sann
    2010-09-15

    Hello Yogeen,

    yawebmail does not restrict the types of attachments. Do you get this Exception with any .csv- and .xls-files?

    Best regards
    Stephan

     
  • hello stephan,

    yes am getting exception whenever i try to send .csv or .xls files. can you please check at your end to send these type of attachments. pls let me know if you are able to send the files as attachments.
    regards
    -yogeen

     
  • Stephan Sann
    Stephan Sann
    2010-09-16

    Hello yogeen,

    I tried to send a test-.csv-file to myself without any problem.

    As you can see below yawebmail formed a valid Multipart-Mail. I don't know why this should cause any problem with sending.

    Is there anything in your logfile?

    Best regards
    Stephan

    Date: Thu, 16 Sep 2010 08:02:10 +0000 (GMT)
    From: Stephan Sann <stephan@XXXX.de>
    To: stephan@XXXX.de
    Message-ID: <174576567.204.1284624130586.JavaMail.tomcat@rz.weltbeherrschungszentrale.de>
    Subject: Der CSV-Test
    MIME-Version: 1.0
    Content-Type: multipart/mixed;
    boundary="---=_Part_202_501269544.1284624130580"
    User-Agent: yawebmail/1.2.5 (FreeBSD; U; FreeBSD 7.0-RELEASE-p2 (amd64); en) http://yawebmail.sourceforge.net/

    ----=_Part_202_501269544.1284624130580
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: quoted-printable

    Hier der gew=C3=BCnschte Test
    Stephan

    ----=_Part_202_501269544.1284624130580
    Content-Type: application/vnd.ms-excel; name=test.csv
    Content-Transfer-Encoding: 7bit
    Content-Disposition: attachment; filename=test.csv

    dies;ist;ein;test
    la;le;lu;lo

    ----=_Part_202_501269544.1284624130580-

     
  • hello stephan,
    Thanks for your reply. It seems you created a file with extension .csv and put some content it and not the actual content of csv files. Please put the content below in a csv file and try to send it after attaching.

    "Day","Requests","Page Views","Browse Time","Total Bytes","Bytes Received","Bytes Sent"
    "Jun 30, 2010","940","141","2799","420918257","420307155","611102"
    "Jul 1, 2010","614880","55508","555852","11834673202","10911864885","922808317"
    "Jul 2, 2010","648590","55792","550842","11373883395","10540128111","833755284"
    "Jul 3, 2010","152134","13063","149093","3860611950","3706823427","153788523"

    If still you are able to send then i'll try to explore the logs and send you details.

    regards
    -yogeen

     
  • Stephan Sann
    Stephan Sann
    2010-09-16

    Again, a "well-formed" Multipart-Mail was created and successfully send:

    Date: Thu, 16 Sep 2010 11:04:50 +0000 (GMT)
    From: Stephan Sann <stephan@XXXX.de>
    To: stephan@XXXX.de
    Message-ID: <1505602022.209.1284635090862.JavaMail.tomcat@rz.weltbeherrschungszentrale.de>
    Subject: Another CSV-Test
    MIME-Version: 1.0
    Content-Type: multipart/mixed;
            boundary="---=_Part_207_1683234178.1284635090858"
    User-Agent: yawebmail/1.2.5 (FreeBSD; U; FreeBSD 7.0-RELEASE-p2 (amd64); en) http://yawebmail.sourceforge.net/

    ----=_Part_207_1683234178.1284635090858
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 7bit

    Here we go again…

    ----=_Part_207_1683234178.1284635090858
    Content-Type: application/vnd.ms-excel; name=another-test.csv
    Content-Transfer-Encoding: 7bit
    Content-Disposition: attachment; filename=another-test.csv

    "Day","Requests","Page Views","Browse Time","Total Bytes","Bytes Received","Bytes Sent"
    "Jun 30, 2010","940","141","2799","420918257","420307155","611102"
    "Jul 1, 2010","614880","55508","555852","11834673202","10911864885","922808317"
    "Jul 2, 2010","648590","55792","550842","11373883395","10540128111","833755284"
    "Jul 3, 2010","152134","13063","149093","3860611950","3706823427","153788523"

    ----=_Part_207_1683234178.1284635090858-

     
  • hello stephan,
    thanks again. pls find the log message am getting below. this error occurs only when certain types of attachments are added. it seems to be some encoding compatibility issue between java mail api and my smtp software. am i right ? any suggestions ?

    An error occurred:

         * Technical error.

    Details:

         * javax.mail.MessagingException IOException while sending message 
    com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:930) 
    javax.mail.Transport.send0(Transport.java:191) 
    javax.mail.Transport.send(Transport.java:120) 
    de.lotk.yawebmail.controller.CreateMailController.sendMail(CreateMailController.java:438) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:618) org.apache.el.parser.AstValue.invoke(AstValue.java:191) org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276) org.apache.jasper.el.JspMethodExpression.invoke(JspMethodExpression.java:68) javax.faces.component._MethodExpressionToMethodBinding.invoke(_MethodExpressionToMethodBinding.java:78) org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:57) javax.faces.component.UICommand.broadcast(UICommand.java:127) javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:369) javax.faces.component.UIViewRoot.process(UIViewRoot.java:264) javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:153) org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32) org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103) org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76) javax.faces.webapp.FacesServlet.service(FacesServlet.java:183) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) 
    java.lang.Thread.run(Thread.java:811)

     
  • Stephan Sann
    Stephan Sann
    2010-09-20

    Hello yogeen,

    sorry, from this stacktrace I can't identify the problem.

    I don't know about your SMTP-software, but the mails formed are standard-Mime-Multipart-mails. Are there any log-informations on the SMTP-server-side?

    If nothing helps you will have to debug…

    Best regards
    Stephan