Send SMTP Mail: No compiled code to run error BC30561: 'Attachment' is ambiguous, imported from the namespaces or types 'Microsoft.SharePoint.Client, System.Net.Mail'. At line 16

Hi Guys,

anyone know how to decipher below issue -

Send SMTP Mail: No compiled code to run
error BC30561: ‘Attachment’ is ambiguous, imported from the namespaces or types ‘Microsoft.SharePoint.Client, System.Net.Mail’. At line 16

it seems like saying the parameter - attachment have a difficulty to identify from the 2 imported places. but i don’t really understand how to make this issue gone.

Thanks!

@Victor_Victory

Check below post

Hope this helps you

Thanks

Thanks.

If i have no attachment to attach to this SMTP mail, how would i do ?

@Victor_Victory

If you don’t have any attachments, then check any thing you created in Attachment parameters

I believe this error will not come if there are no attachments, If you still getting error, share the screens

So that we can check

Thanks

Thanks. I think i over complicated my case. it is resolved with a simpler way to send out email.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.