tags:

views:

23

answers:

1

How to determine an attachment is there or not in WCF service when an user send a mail(either simple text mail or an attachment email) using C#.NET

+1  A: 

It really depends on how you implemented your mail service, how do you describe an email message when you send it? At a very basic level you would have something like:

<MailMessage>
   <Sender>[email protected]</Sender>
   <Reciever>[email protected]</Reciever>
   <Subject>Some subject here...</Subject>
   <Attatchment>...</Attachement>
   <Message>
       Some message here...
   </Message>
</MailMessage>

Using something like this you can easily parse a link to an attatchment and when a user clicks on it they can download the file.

kyndigs