oMail = CreateObject("Persits.MailSender") oMail.Host = "yourSMTPServer@somewhere.com" oMail.FromName = "Bernard Bout" oMail.From = "bernard@ut.com.au" oMail.AddAddress("pete@pcprof.com.au","Peter Easson") oMail.IsHTML = .t. oMail.Body = "<HTML><BODY BGCOLOR=#0000FF>Hello World</BODY></HTML>" oMail.Attachment("C:\MYErrorTable.DBF") oMail.Send ** Check aError()oMail.Reset and loop again