SlideShare a Scribd company logo
1 of 4
Download to read offline
POP3, MIME, FTP Send Email in ASP.NET
Learn In detail
https://way2educateu.blogspot.com/2017/02/pop3-mime-ftp-send-email-in-aspnet_99.html
Sending messages with ASP.NET Using POP3, MIME And FTP Servers is
quite straight forward. The .NET structure accompanies a whole
namespace for taking care of messages, the System.Net.Mail namespace.
In the accompanying illustrations, we will utilize two classes from this
namespace: The MailMessage class, for the real email, and the SmtpClient
class, for sending the email.
As you might know, sends are sent through a SMTP server, and to send
sends with the .NET system, you will require access to a SMTP server. In
case you're trying things locally, the organization that provisions your with
Internet get to, will typically have a SMTP server that you can utilize, and in
the event that you wish to utilize one of these cases on your genuine site,
the organization that has your site will normally have a SMTP server that
you can utilize. Experience the bolster pages to locate the real address -
it's normally something along the lines of smtp.your-isp.com or mail.your-
isp.com.
When you have an available SMTP server, we're prepared to send our first
email. For the main illustration, all you need is a void page, with the
accompanying code in the CodeBehind:
protected void Page_Load(object sender, EventArgs e)
{
try
{
MailMessage mailMessage = new MailMessage();
mailMessage.To.Add("your.own@mail-address.com");
mailMessage.From = new MailAddress("another@mail-
address.com");
mailMessage.Subject = "ASP.NET e-mail test";
mailMessage.Body = "Hello world,nnThis is an ASP.NET test e-
mail!";
SmtpClient smtpClient = new SmtpClient("smtp.your-isp.com");
smtpClient.Send(mailMessage);
Response.Write("E-mail sent!");
}
catch(Exception ex)
{
Response.Write("Could not send the e-mail - error: " + ex.Message);
}
}
That is quite you have to send an email. We make another MailMessage
occurrence, include another collector, set the "From" address and the
subject, and after that we compose a straightforward test message for the
body of the email. From that point forward, we make another occurrence of
the SmtpClient, with the host address of the SMTP server that you may use
as a parameter, and after that we utilize the SmtpClient case to shoot the
email out into the internet. The whole thing is encompassed by a try..catch
piece, just on the off chance that something turns out badly.
This was only an exceptionally essential illustration, yet there are a ton of
different choices. Here is a short rundown with fascinating thoughts:
You can join one or a few documents, essentially by adding them to the
Attachments accumulation
mailMessage.Attachments.Add(new
Attachment(Server.MapPath("~/image.jpg")));
You can send to more than one individual in the meantime, just by adding
another email deliver to the "To" gathering, this way:
mailMessage.To.Add("your.own@mail-address.com");
mailMessage.To.Add("another@mail-address.com");
You can set a name for the sender - something else, just the email address
will be appeared in the "From" section of the collectors email customer. For
example, similar to this:
mailMessage.From = new MailAddress("me@mail-address.com", "My
Name");
You can send HTML messages, rather than the default plaintext sends, to
utilize more confounded designs. Here is a straightforward illustration:
mailMessage.IsBodyHtml = true;
mailMessage.Body = "Hello <b>world!</b>";
You can utilize the CC and BCC fields, much the same as in consistent
email messages, this way:
mailMessage.CC.Add("me@mail-address.com");
mailMessage.Bcc.Add("me2@mail-address.com");
You can set the need of an email, this way:
mailMessage.Priority = MailPriority.High;

More Related Content

Viewers also liked

The Big Picture: Learning, re-imagined
The Big Picture: Learning, re-imaginedThe Big Picture: Learning, re-imagined
The Big Picture: Learning, re-imaginedLearningandTeaching
 
Marketing basics 05th feb iim_raipur
Marketing basics 05th feb iim_raipurMarketing basics 05th feb iim_raipur
Marketing basics 05th feb iim_raipurAdCom_IIMRaipur
 
Lesson 6 food chains
Lesson 6 food chainsLesson 6 food chains
Lesson 6 food chainsdhmcmillan
 
Lesson 8 food webs
Lesson 8 food websLesson 8 food webs
Lesson 8 food websdhmcmillan
 
Lesson 2 environmental factors 1
Lesson 2 environmental factors 1Lesson 2 environmental factors 1
Lesson 2 environmental factors 1dhmcmillan
 
Enhesa webinar 世界の環境安全衛生規制取締り動向
Enhesa webinar 世界の環境安全衛生規制取締り動向 Enhesa webinar 世界の環境安全衛生規制取締り動向
Enhesa webinar 世界の環境安全衛生規制取締り動向 Enhesa
 
Prelim amlapara 2017 answer
Prelim amlapara 2017  answerPrelim amlapara 2017  answer
Prelim amlapara 2017 answerChayan Mondal
 
Elaboración de guías y unidades didácticas para la formación a través de int...
Elaboración de guías y unidades didácticas para la formación  a través de int...Elaboración de guías y unidades didácticas para la formación  a través de int...
Elaboración de guías y unidades didácticas para la formación a través de int...022182
 
Seminar on six stroke engine
Seminar on six stroke engineSeminar on six stroke engine
Seminar on six stroke engineshivam verma
 

Viewers also liked (15)

The Big Picture: Learning, re-imagined
The Big Picture: Learning, re-imaginedThe Big Picture: Learning, re-imagined
The Big Picture: Learning, re-imagined
 
Marketing basics 05th feb iim_raipur
Marketing basics 05th feb iim_raipurMarketing basics 05th feb iim_raipur
Marketing basics 05th feb iim_raipur
 
What is next in HR
What is next in HRWhat is next in HR
What is next in HR
 
Resume-1
Resume-1Resume-1
Resume-1
 
VishalWalujwarCV
VishalWalujwarCVVishalWalujwarCV
VishalWalujwarCV
 
Power mates
Power matesPower mates
Power mates
 
Lesson 6 food chains
Lesson 6 food chainsLesson 6 food chains
Lesson 6 food chains
 
Lesson 8 food webs
Lesson 8 food websLesson 8 food webs
Lesson 8 food webs
 
Lesson 2 environmental factors 1
Lesson 2 environmental factors 1Lesson 2 environmental factors 1
Lesson 2 environmental factors 1
 
Caso Mercadona
Caso MercadonaCaso Mercadona
Caso Mercadona
 
Enhesa webinar 世界の環境安全衛生規制取締り動向
Enhesa webinar 世界の環境安全衛生規制取締り動向 Enhesa webinar 世界の環境安全衛生規制取締り動向
Enhesa webinar 世界の環境安全衛生規制取締り動向
 
Prelim amlapara 2017 answer
Prelim amlapara 2017  answerPrelim amlapara 2017  answer
Prelim amlapara 2017 answer
 
Final amlapara 2017
Final amlapara 2017Final amlapara 2017
Final amlapara 2017
 
Elaboración de guías y unidades didácticas para la formación a través de int...
Elaboración de guías y unidades didácticas para la formación  a través de int...Elaboración de guías y unidades didácticas para la formación  a través de int...
Elaboración de guías y unidades didácticas para la formación a través de int...
 
Seminar on six stroke engine
Seminar on six stroke engineSeminar on six stroke engine
Seminar on six stroke engine
 

Similar to Send Email In Asp.Net

Setting up your own email server with hmailserver
Setting up your own email server with hmailserverSetting up your own email server with hmailserver
Setting up your own email server with hmailserverrifqirr
 
Action Mailer
Action MailerAction Mailer
Action MailerSHC
 
Sending email with perl
Sending email with perlSending email with perl
Sending email with perlapeiron
 
vishal_sharma: python email sending software
vishal_sharma: python email sending software  vishal_sharma: python email sending software
vishal_sharma: python email sending software vishal sharma
 
Node mailer example how to send email using nodemailer with gmail &amp; mailtrap
Node mailer example how to send email using nodemailer with gmail &amp; mailtrapNode mailer example how to send email using nodemailer with gmail &amp; mailtrap
Node mailer example how to send email using nodemailer with gmail &amp; mailtrapKaty Slemon
 
Electronic mail protocols and operations
 Electronic mail protocols and operations Electronic mail protocols and operations
Electronic mail protocols and operationsVivekRajawat9
 
How to simplify Email oriented workflow with - Visendo SMTP Extender
How to simplify Email oriented workflow with - Visendo SMTP Extender How to simplify Email oriented workflow with - Visendo SMTP Extender
How to simplify Email oriented workflow with - Visendo SMTP Extender Johannes Cosmin dumitru
 
Technical Background Overview Ppt
Technical Background Overview PptTechnical Background Overview Ppt
Technical Background Overview PptAntonio Ieranò
 
Email/Ad/Marketing 20100130
Email/Ad/Marketing 20100130Email/Ad/Marketing 20100130
Email/Ad/Marketing 20100130dsoprea
 
Python session.11 By Shanmugam
Python session.11 By ShanmugamPython session.11 By Shanmugam
Python session.11 By ShanmugamNavaneethan Naveen
 

Similar to Send Email In Asp.Net (20)

Electronic mail
Electronic mailElectronic mail
Electronic mail
 
SMTP(true)
SMTP(true)SMTP(true)
SMTP(true)
 
Setting up your own email server with hmailserver
Setting up your own email server with hmailserverSetting up your own email server with hmailserver
Setting up your own email server with hmailserver
 
Lecture19
Lecture19Lecture19
Lecture19
 
Action Mailer
Action MailerAction Mailer
Action Mailer
 
Send email
Send emailSend email
Send email
 
Sending Email
Sending EmailSending Email
Sending Email
 
Sending email with perl
Sending email with perlSending email with perl
Sending email with perl
 
i &lt;3 email
i &lt;3 emaili &lt;3 email
i &lt;3 email
 
Ruby
RubyRuby
Ruby
 
vishal_sharma: python email sending software
vishal_sharma: python email sending software  vishal_sharma: python email sending software
vishal_sharma: python email sending software
 
Node mailer example how to send email using nodemailer with gmail &amp; mailtrap
Node mailer example how to send email using nodemailer with gmail &amp; mailtrapNode mailer example how to send email using nodemailer with gmail &amp; mailtrap
Node mailer example how to send email using nodemailer with gmail &amp; mailtrap
 
Electronic mail protocols and operations
 Electronic mail protocols and operations Electronic mail protocols and operations
Electronic mail protocols and operations
 
How to simplify Email oriented workflow with - Visendo SMTP Extender
How to simplify Email oriented workflow with - Visendo SMTP Extender How to simplify Email oriented workflow with - Visendo SMTP Extender
How to simplify Email oriented workflow with - Visendo SMTP Extender
 
12 - E-Mail.ppt
12 - E-Mail.ppt12 - E-Mail.ppt
12 - E-Mail.ppt
 
12 - E-Mail.ppt
12 - E-Mail.ppt12 - E-Mail.ppt
12 - E-Mail.ppt
 
Technical Background Overview Ppt
Technical Background Overview PptTechnical Background Overview Ppt
Technical Background Overview Ppt
 
Email/Ad/Marketing 20100130
Email/Ad/Marketing 20100130Email/Ad/Marketing 20100130
Email/Ad/Marketing 20100130
 
Lecture19
Lecture19Lecture19
Lecture19
 
Python session.11 By Shanmugam
Python session.11 By ShanmugamPython session.11 By Shanmugam
Python session.11 By Shanmugam
 

Recently uploaded

Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024StefanoLambiase
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Hr365.us smith
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based projectAnoyGreter
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfPower Karaoke
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Velvetech LLC
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfAlina Yurenko
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEEVICTOR MAESTRE RAMIREZ
 

Recently uploaded (20)

Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based project
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort ServiceHot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEE
 

Send Email In Asp.Net

  • 1. POP3, MIME, FTP Send Email in ASP.NET Learn In detail https://way2educateu.blogspot.com/2017/02/pop3-mime-ftp-send-email-in-aspnet_99.html Sending messages with ASP.NET Using POP3, MIME And FTP Servers is quite straight forward. The .NET structure accompanies a whole namespace for taking care of messages, the System.Net.Mail namespace. In the accompanying illustrations, we will utilize two classes from this namespace: The MailMessage class, for the real email, and the SmtpClient class, for sending the email. As you might know, sends are sent through a SMTP server, and to send sends with the .NET system, you will require access to a SMTP server. In case you're trying things locally, the organization that provisions your with Internet get to, will typically have a SMTP server that you can utilize, and in the event that you wish to utilize one of these cases on your genuine site, the organization that has your site will normally have a SMTP server that
  • 2. you can utilize. Experience the bolster pages to locate the real address - it's normally something along the lines of smtp.your-isp.com or mail.your- isp.com. When you have an available SMTP server, we're prepared to send our first email. For the main illustration, all you need is a void page, with the accompanying code in the CodeBehind: protected void Page_Load(object sender, EventArgs e) { try { MailMessage mailMessage = new MailMessage(); mailMessage.To.Add("your.own@mail-address.com"); mailMessage.From = new MailAddress("another@mail- address.com"); mailMessage.Subject = "ASP.NET e-mail test"; mailMessage.Body = "Hello world,nnThis is an ASP.NET test e- mail!"; SmtpClient smtpClient = new SmtpClient("smtp.your-isp.com"); smtpClient.Send(mailMessage); Response.Write("E-mail sent!"); } catch(Exception ex) { Response.Write("Could not send the e-mail - error: " + ex.Message); } } That is quite you have to send an email. We make another MailMessage occurrence, include another collector, set the "From" address and the subject, and after that we compose a straightforward test message for the body of the email. From that point forward, we make another occurrence of the SmtpClient, with the host address of the SMTP server that you may use as a parameter, and after that we utilize the SmtpClient case to shoot the
  • 3. email out into the internet. The whole thing is encompassed by a try..catch piece, just on the off chance that something turns out badly. This was only an exceptionally essential illustration, yet there are a ton of different choices. Here is a short rundown with fascinating thoughts: You can join one or a few documents, essentially by adding them to the Attachments accumulation mailMessage.Attachments.Add(new Attachment(Server.MapPath("~/image.jpg"))); You can send to more than one individual in the meantime, just by adding another email deliver to the "To" gathering, this way: mailMessage.To.Add("your.own@mail-address.com"); mailMessage.To.Add("another@mail-address.com"); You can set a name for the sender - something else, just the email address will be appeared in the "From" section of the collectors email customer. For example, similar to this: mailMessage.From = new MailAddress("me@mail-address.com", "My Name");
  • 4. You can send HTML messages, rather than the default plaintext sends, to utilize more confounded designs. Here is a straightforward illustration: mailMessage.IsBodyHtml = true; mailMessage.Body = "Hello <b>world!</b>"; You can utilize the CC and BCC fields, much the same as in consistent email messages, this way: mailMessage.CC.Add("me@mail-address.com"); mailMessage.Bcc.Add("me2@mail-address.com"); You can set the need of an email, this way: mailMessage.Priority = MailPriority.High;