Good Afternoon...
I have a problemto sendemailwith attachment.
I havea listin SharePoint 2010that hasattachedto it.
Must do the following.When thee-mailgoto the SharePoint listitshootan emailto a specific recipientcontainingthe form dataandattachment thatyousent.By defaultonlyoneattachment.
I founda codeon the net thathelped meto some extent...
whenI insertthe line of code:
hostaddresssite.WebApplication.OutboundMailServiceInstance.Server.Address=string;
it'smethe following error:Object referencenot set to aninstance of an object.
I triedpassing adirectsmtp addressegsmtp.exemplo.com.br
then hegavea server error
I'mrunningitlocally ...
If anyone canlend a handor other solution
I thank you
I have a problemto sendemailwith attachment.
I havea listin SharePoint 2010that hasattachedto it.
Must do the following.When thee-mailgoto the SharePoint listitshootan emailto a specific recipientcontainingthe form dataandattachment thatyousent.By defaultonlyoneattachment.
I founda codeon the net thathelped meto some extent...
whenI insertthe line of code:
hostaddresssite.WebApplication.OutboundMailServiceInstance.Server.Address=string;
it'smethe following error:Object referencenot set to aninstance of an object.
I triedpassing adirectsmtp addressegsmtp.exemplo.com.br
then hegavea server error
I'mrunningitlocally ...
If anyone canlend a handor other solution
I thank you
Watson Marconato