Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

WPF C# - Send Email Message with Attachment - WPF C#

$
0
0

Hi,

What I want to do is send an email to a certain email address and attach one text file that is stored locally in the PC.

The whole process needs to happen behind the scenes so there is no user input except for a button click that sends the email.

Basically I want the email to say:

Hi Dev Team,

Something went wrong with CheckoutPOS

Here is the error log:

<bold>Insert Error log contents here</bold>


Thanks,
<itallics>Use a set variable for this</itallics>

So not only do I want the text file attached, I want to have the contents in the actual email itself and use a variable for after "Thanks,"

Any thoughts???

Thanks for any help in advance...


From, Nathaniel Peiffer


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>