I have an app to send email that based on this example http://www.b4x.com/android/forum/threads/building-a-mini-email-based-server.35030/
My app has an email distribution list, stored in sql database.
Codes something like this :
Since Cursor can return more than 1 row, should I paused a few second for each rows after email sent or the code above is ok (means no delay/only a few ms delay to send each email)?
My app has an email distribution list, stored in sql database.
Codes something like this :
B4X:
Cursor = Sql.ExecQuery("select * from table where tag = 'N' )
Do While Cursor.NextRow
Id = Cursor.GetInt("ID")
To = Cursor.GetString("TO")
Subject = Cursor.GetString("SUBJECT")
Body = Cursor.GetString("BODY")
SMTP.To.Add(To)
SMTP.Subject = Subject
SMTP.Body = Body
SMTP.Send
Loop
Cursor.Close