I have a sub that is like this:
Sub sendmail (fromaddr, toaddr, cc, bcc, subject, body, amount)
Dim counter, Mail
Set Mail = CreateObject("CDONTS.NewMail"
For counter = 1 to amount
Mail.From = fromaddr
Mail.To = toaddr
Mail.cc = cc
Mail.bcc = bcc
Mail.Subject = subject
Mail.Body = body
Mail.Send
Next
Set Mail = Nothing
End Sub
I know it's simple but I want to be able to make the cc and bcc args optional..is this possible?
thanxs
3d1tund0
3d1tund0@globalmark-e.com
Sub sendmail (fromaddr, toaddr, cc, bcc, subject, body, amount)
Dim counter, Mail
Set Mail = CreateObject("CDONTS.NewMail"
For counter = 1 to amount
Mail.From = fromaddr
Mail.To = toaddr
Mail.cc = cc
Mail.bcc = bcc
Mail.Subject = subject
Mail.Body = body
Mail.Send
Next
Set Mail = Nothing
End Sub
I know it's simple but I want to be able to make the cc and bcc args optional..is this possible?
thanxs
3d1tund0
3d1tund0@globalmark-e.com