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

Reply via email to