theninjamanz 29 Posted September 20, 2013 Report Share Posted September 20, 2013 The error message I am getting is as follows: Object reference not set to an instance of an object: Source: Loop email. The csv attached to #webdomain and email has the following format.url,email Here is the ubot code: clear table(&list of website and emails)ui stat monitor("Status:", #status message)ui open file("Data File", #webdomain and email)ui stat monitor("<BR><BR>", "")ui text box("Email Subject", #email subject)ui block text("Email Message", #email message)create table from file(#webdomain and email, &list of website and emails)set(#total messages, $table total rows(&list of website and emails), "Global")set(#current row, 0, "Global")loop($table total rows(&list of website and emails)) { connect to mail server("IMAP With SSL", "thisistheemailIamusingforsending@gmail.com", "XXXXX", "imap.gmail.com", 993) { } set(#current website, $table cell(&list of website and emails, #current row, 0), "Global") set(#current email, $table cell(&list of website and emails, #current row, 1), "Global") set(#status message, "Sending Message # {#current row} of {#total messages}", "Global") send email(#current email, #email subject, "Plain Text", #email message, "", "thisistheemailIamusingforsending@gmail.com", "") increment(#current row)} This should just cycle through the text file and send the email no? I note to Seth that the Tutorial Reference (inside ubot) is out of date and therefore does not provide an example for sending that can be followed. Neither on the Wiki. Cheers Ninjamanz. Quote Link to post Share on other sites
Lucius 7 Posted September 20, 2013 Report Share Posted September 20, 2013 try using SMTP to send... Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.