Infotech Member Licensed User May 15, 2017 #1 i follow tutorial this link : https://www.b4x.com/android/forum/t...on-sending-email-through-gmail.47073/#content and https://www.b4x.com/android/forum/threads/new-net-library-android-ftp-smtp-and-pop3.10892/ When this message send, this massge fail to send and this log on my apps java.lang.RuntimeException: Empty writer returned: 503 5.5.1 RCPT first. i63sm17173298pgc.26 - gsmtp
i follow tutorial this link : https://www.b4x.com/android/forum/t...on-sending-email-through-gmail.47073/#content and https://www.b4x.com/android/forum/threads/new-net-library-android-ftp-smtp-and-pop3.10892/ When this message send, this massge fail to send and this log on my apps java.lang.RuntimeException: Empty writer returned: 503 5.5.1 RCPT first. i63sm17173298pgc.26 - gsmtp
Erel B4X founder Staff member Licensed User Longtime User May 15, 2017 #2 Can you post the code (without the username and password)? Upvote 0
Infotech Member Licensed User May 15, 2017 #3 B4X: Mail.Initialize("smtp.gmail.com", 587, "xxxxxx@gmail.com", "xxxxxxxxxxx", "SMTP") Mail.StartTLSMode = True Mail.To.Add("xxxxxx@gmail.com") Mail.Subject = "This is subjek" Mail.Body = "This is body" Mail.AddAttachment(File.DirRootExternal,"/kunjungan ke - "&(No)&".pdf") Mail.Sender = "xxxxxx@gmail.com" Mail.Send Upvote 0
B4X: Mail.Initialize("smtp.gmail.com", 587, "xxxxxx@gmail.com", "xxxxxxxxxxx", "SMTP") Mail.StartTLSMode = True Mail.To.Add("xxxxxx@gmail.com") Mail.Subject = "This is subjek" Mail.Body = "This is body" Mail.AddAttachment(File.DirRootExternal,"/kunjungan ke - "&(No)&".pdf") Mail.Sender = "xxxxxx@gmail.com" Mail.Send
Erel B4X founder Staff member Licensed User Longtime User May 15, 2017 #4 Your code works here. Have you enabled access to insecure apps: https://support.google.com/accounts/answer/6010255?hl=en ? Upvote 0
Your code works here. Have you enabled access to insecure apps: https://support.google.com/accounts/answer/6010255?hl=en ?