Android Question Smtp

buras3

Active Member
Licensed User
Longtime User
Hello

I want to send simple mail
what do i do wrong ?

B4X:
    smp.Initialize("smtp.gmail.com", 465,  "xxxx@gmail.com",  "xxxxx", "SmtpClient" )
    smp.To.Add("xxxx@sheleg.co.il")
    smp.Sender="xxxx@gmail.com"
    smp.Body="sdvsd"
    smp.Send
 

walterf25

Expert
Licensed User
Longtime User
What is the issue, you are not telling us whether you get an error or not?

Walter
 
Upvote 0

walterf25

Expert
Licensed User
Longtime User
the user needs to send the mail
You need to give enable the less secure apps access on your gmail account, otherwise you will have to use the OAuth library to ask permission from the user.



Walter
 
Upvote 0

buras3

Active Member
Licensed User
Longtime User
B4X:
Sub SmtpClient_MessageSent(Success As Boolean)
    Msgbox ("",Success)
End Sub
You are not handling the MessageSent event and not checking the value of Log(LastException).
yes I do
Nothing shows
I get false
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…