HaveTrouble
Programmer
What's the best way to send email from VB 6.0 ? I tried CDO but it won't work if there is attachment with file size > 4M. I tried outlook but it works in 1 server but not the other. Below are the codes for outlook. It errors out in .send:
Set objMail = appOutlook.CreateItem(0)
objMail.To = sEmailTo
objMail.Subject = EmailSubject
objMail.Body = EmailBody
'= if has more than one file to attach, send the file in as
'= file1;file2;file3....
If Not IsMissing(sAttachmentPath) Then
glo_objs = Split(sAttachmentPath, ";")
For Each glo_obj In glo_objs
objMail.Attachments.Add glo_obj
Next
End If
objMail.Send
any suggestion ??
Set objMail = appOutlook.CreateItem(0)
objMail.To = sEmailTo
objMail.Subject = EmailSubject
objMail.Body = EmailBody
'= if has more than one file to attach, send the file in as
'= file1;file2;file3....
If Not IsMissing(sAttachmentPath) Then
glo_objs = Split(sAttachmentPath, ";")
For Each glo_obj In glo_objs
objMail.Attachments.Add glo_obj
Next
End If
objMail.Send
any suggestion ??