My posted was wrong; in my original code I use the complete path: http://www.companywebsite.com/Folder/Image.jpg The error message is fired even with the complete path.
About downloading the image, I don't believe this is the est option for me. In my application, the user has the option to send 0..n emails and each one of these email may contain a different Image. Suppose we have 100 emails to be sent and 70 different Images. This means I would have to download 70 images from the Company Website and I would have to do this in the client machine. I don't think this would be the best solution. Any other suggestions? Ana On Dec 18, 11:53 pm, "[email protected]" <[email protected]> wrote: > hi, > > Give the complete path :http://www.websitename/Folder/image.jpg > instead of the relative path > > Regards > Mateen > > On Dec 18, 11:34 pm, Ana <[email protected]> wrote: > > > Hi, > > > I need to send an email with attachment, but the attachment is in the > > company website. What I'm doing is: > > > thumbPath = "Folder/Image.jpg" > > thumbPath = "www.companywebsite.com/" & thumbPath > > Dim attachment As New MailAttachment(thumbPath) > > > However, the following error message is fired: Invalid mail attachment > > 'www.companywebsite.com/Folder/Image.jpg' > > > I typed the thumbPath in the browser and the Image is found in the > > website. How to attach this image in my email? > > > Thanks in advance, > > > Ana
