B4J Question SMTP

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) ?
 

le_toubib

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