B4J Question SMTP

Discussion in 'B4J Questions' started by le_toubib, May 3, 2015.

  1. le_toubib

    le_toubib Active Member Licensed User

    hello there :
    1- im trying to send an email using a gmail account , but i get this error , and never get to job done , even though it used to work before .

    is there anything missing.

    error:


    Program started.
    javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
    at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1937)
    at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
    at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)


    2- also : i m trying to send an attachement also using gmail , and it send succesfully , BUT the file is renamed when downloaded at the recepient , is there a way to prevent this renaming.

    3- is there a better email to use with smtp , other than gmail (less false positive security alerts , or preventing login) ?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. le_toubib

    le_toubib Active Member Licensed User

    1- yess , it was AVAST antivirus with email shield ... ThanKS a million
    2-
    using this code :
    Code:
    SMTP.AddAttachment(File.DirApp, "/dirname/" & "graph.jpg")
    the file name is reached to recipient as "dirnamegraph.jpg" , instead of "graph.jpg"
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Change your code to:
    Code:
    SMTP.AddAttachment(File.Combine(File.DirApp, "dirname"), "graph.jpg")
     
  5. le_toubib

    le_toubib Active Member Licensed User

    Aha OK, thanks
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice