Android Question Smtp

buras3

Active Member
Licensed 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
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
What is the issue, you are not telling us whether you get an error or not?

Walter
 
Upvote 0

walterf25

Expert
Licensed 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.

Capture.PNG

Walter
 
Upvote 0
Top