Thanks to everyone who gave me the advice earlier about CDOSYS - I do plan on trying that out when I get some time. I did get ASP Email working with my script to the point where I can send mail, but now I get an error before something finishes processing:
After the SENT, I get:
Microsoft VBScript runtime error '800a0009'
Subscript out of range: '[number: 0]'
Any suggestions?
Thanks!
Code:
for i = 0 to last singlemail = split(maillist(i), delimiter, -1, vbtextcompare)
if mailpattern(singlemail(0)) then
mailresult = SendMail(Request.Form("from"), singlemail(0), Request.Form("subject"), lettext)
if mailresult then
Response.Write singlemail(0) & ": SENT" & vbCrlf
else
Response.Write singlemail(0) & ": MAIL NOT SENT"
end if
end if
next
Response.Write "<b>Processing completed!</b>"
on error goto 0
After the SENT, I get:
Microsoft VBScript runtime error '800a0009'
Subscript out of range: '[number: 0]'
Any suggestions?
Thanks!