Hi,
I'm trying to send an e-mail with an attachment via JMAIL.
I'm getting "object requested" error on line with "Attachment.New". Any hints?
Thanks, Gany
I'm trying to send an e-mail with an attachment via JMAIL.
Code:
set msg = Server.CreateObject("JMail.Message")
msg.Logging = true
msg.Silent = true
msg.From = "someone@somewhere"
msg.AddRecipient "me@localhost"
msg.Subject = "a bad try"
msg.Body = "didn't work, did it?"
msg.Charset = "windows-1250"
msg.ContentType = "multipart/mixed; charset=windows-1250"
set Attachments = msg.Attachments
set attachment = Attachment.New("myAttachment.text","text/plain","this is my newtext file")
Attachments.Add(attachment)
msg.Send("localhost")
I'm getting "object requested" error on line with "Attachment.New". Any hints?
Thanks, Gany