B4A Library New Net library - Android FTP, SMTP and POP3

Status
Not open for further replies.

catyinwong

Active Member
Licensed User
Longtime User
How to obtain the Success parameter???

"public_html/PublicPhotos/Products/20150224132632.jpg, Success=true " <- This is what appeared in the log after the FTP process..

Below is my code for uploadcompleted... A failure message will show if it is not successful and other functions will run if it succeeded.. And when I ran it, no failure message was shown and the next function was started..

Sub FTP_UploadCompleted (ServerPath As String, Success As Boolean)
Log(ServerPath & ", Success=" & Success)
If Success = False Then
ToastMessageShow(FailMsg,False)
Activity.Finish
End If
If Success = True Then Functions(2)
End Sub
 

catyinwong

Active Member
Licensed User
Longtime User
Please use [code]code here...[/code] tags when posting code.

Success is true in this case. This means that the file was uploaded successfully.

But the file is somehow damaged during the process.... why is that??
 

Maki25

Member
Licensed User
Longtime User

THXs I have same problem and this is de solution for my, too.
 

merlin2049er

Well-Known Member
Licensed User
Longtime User
Hi, I've been using this library to send smtp emails thru smpt.gmail.com, unfortunately, they are not getting delivered.

server: smtp.gmail.com
port: 465

etc..., I tried several ports, 25, 587

any ideas?
 

MotoMusher

Active Member
Licensed User
Longtime User
Are you enabling SSL and tls? I use port 587 for gmail connections and it works well.

B4X:
 If MyAuth.CamPort = "587" Then
                       SMTP.StartTLSMode = True
                    SMTP.UseSSL = MyAuth.CamSSL
               Else
...
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…