Skip to content
en.code-bude.net
  • Home
  • Categories
    • Android
    • Apple
    • Downloads
    • Hardware
    • Linux
    • Microsoft Office
    • Personal stuff
    • Programming
    • Tutorials
    • Web Tips
    • Wiki
    • Windows
  • About
Menu
  • Home
  • Categories
    • Android
    • Apple
    • Downloads
    • Hardware
    • Linux
    • Microsoft Office
    • Personal stuff
    • Programming
    • Tutorials
    • Web Tips
    • Wiki
    • Windows
  • About
Search
PRESS ENTER TO SEE RESULTS OR ESC TO CANCEL. Close

Tags: system.net.mail

Send emails in C#

Posted by Raffael on 01/04/2013 Posted in C#.Net, Tutorials Tagged C#, c# email template, c# fake mail, c# fake sender, c# mailmessage, c# mailto, c# system.net.mail html, mail, system.net.mail

Today I’ll show you how to send easily emails in C#. All that is required, comes with the System.Net.Mail namespace.
In order to be able to send email using the subsequent snippets, all you need is the address of a SMTP server and some login data for even those. (Open, i.e. anonymous STMP servers, aren’t eas to find these days.)
To obtain the address of your provider’s SMTP server you should look on the websites of your provider or glance at one of the following three lists ([1] [2] [3]).
If you have found out the server address and your credentials, we can begin.

public void sendMail(string sender, string recipient,
string subject, string message,
[…]

Continue reading
Leave a comment
0 Likes
Share
  • SHARE IT
  • TWEET IT
  • PIN IT
en  gb
Read the english translation of this article

Follow us

Visit Us On Facebook Visit Us On Twitter Check Our Feed

Categories

  • Android 18
    • News & Apps 18
    • Programming 2
  • Apple 5
    • MAC OS X 5
  • Downloads 32
  • Hardware 9
    • Arduino 6
    • Hardware Hacks 5
    • Raspberry Pi 1
  • Linux 25
    • Kubuntu 5
    • Linux Mint 11
    • OpenWrt 3
    • Ubuntu Server 6
  • Microsoft Office 6
    • Excel 1
    • PowerPoint 3
    • Word 3
  • Personal stuff 32
    • Test 16
  • Programming 76
    • C#.Net 43
    • HTML 7
    • Java 3
    • JavaScript 10
    • Perl 2
    • PHP 17
    • SQL 2
    • VBA 1
  • Tutorials 106
    • Google 4
    • Homeserver 2
    • Online-Marketing 1
    • SAP 3
    • Wordpress 14
  • Web Tips 35
    • Best of Web 7
  • Wiki 8
  • Windows 24
    • Windows 10 4
    • Windows 7 11
    • Windows 8 16

Tags

.NET Android App Arduino Best of Web BoW C# c#.net Cloud Downloader Cloud Downloader Update DateTime download Driver DynDNS emulator free freeware Heinz-Nixdorf-Berufskolleg HNBK HNBK.plan how to HTML5 JavaScript JS Linux Linux Mint Linux on Android MySpace Downloader MySpace Loader Namecheap openssh OpenWrt PHP SAP SEO snippet substitute schedule app TP-Link WR703N Tutorial Update wiki Windows 8 Windows XP Wordpress Wordpress2Doc
Copyright 2011 - 2021 Raffael Herrmann - All Rights Reserved

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in settings.

en.code-bude.net
Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Strictly Necessary Cookies

Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.