What is a exact option for Attachement on the sending mail with smtp.
I got an error : can't assign to read-only property
....
strPdffile = "H:\ARCTest \" & Pdffile
....
With iMsg
.Configuration = iCfg
'.Subject = "Example Subject"
.Subject = "FPB - CAD"
.To = "hng@faisalpriv atebank.com"
.BCC = "mng@faisalpriv atebank.com"
.Attachments.Ad d.filename = strPdffile
.TextBody = "With the complinents from FPB - CAD team"
.Send
End With
if I did :
.Attachments.Ad d(strPdffile)
I got the error : Type Mismatch
Someone may gift me an solution. Thank you in advanced.
I got an error : can't assign to read-only property
....
strPdffile = "H:\ARCTest \" & Pdffile
....
With iMsg
.Configuration = iCfg
'.Subject = "Example Subject"
.Subject = "FPB - CAD"
.To = "hng@faisalpriv atebank.com"
.BCC = "mng@faisalpriv atebank.com"
.Attachments.Ad d.filename = strPdffile
.TextBody = "With the complinents from FPB - CAD team"
.Send
End With
if I did :
.Attachments.Ad d(strPdffile)
I got the error : Type Mismatch
Someone may gift me an solution. Thank you in advanced.
Comment