Hi,
I using ME COM Component on my ASP page. All is OK, but ...
how I can add two or more files as attachments?
Properties can add only one file.
Thanks,
Perunco, Italy
MailEnable COM Component & attachments
Use the AddAttachment function.
Notice the use of the AddAttachment function multiple times below.
Dim oMail
Set oMail = server.CreateObject("MEMail.Message")
oMail.MailFrom = "peter@mailenable.com"
oMail.MailFromDisplayName = "Test Account"
oMail.ContentType = "text/html;"
oMail.MailTo = "peter@mailenable.com"
oMail.Subject = "Welcome to our service"
oMail.AddAttachment ("c:\autoexnt.log","autoexnt.log")
oMail.AddAttachment ("d:\amet.txt","amet.txt")
oMail.MessageBody = "<html><body><h1>Hello there,<BR>Welcome to our new service.</h1></body></html>"
oMail.SendMessage
I hope this helps.
Dim oMail
Set oMail = server.CreateObject("MEMail.Message")
oMail.MailFrom = "peter@mailenable.com"
oMail.MailFromDisplayName = "Test Account"
oMail.ContentType = "text/html;"
oMail.MailTo = "peter@mailenable.com"
oMail.Subject = "Welcome to our service"
oMail.AddAttachment ("c:\autoexnt.log","autoexnt.log")
oMail.AddAttachment ("d:\amet.txt","amet.txt")
oMail.MessageBody = "<html><body><h1>Hello there,<BR>Welcome to our new service.</h1></body></html>"
oMail.SendMessage
I hope this helps.