Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Construct and Send an ICS file as an attachment in the Email
WhatsApp
Suri Meenakshi Sundaram
14y
120.2k
0
2
100
Article
Sendmail_with_ICS_file_code.zip
Here I will explain it in detail, how we can construct the ICS file and send as an attachment in the email.
First create a method
public void SendmailWithIcsAttachment()
{
//Now we have to set the value to Mail message properties. As shown below.
//Note Please change it to correct mail-id to use this in your application
msg.From =
new
MailAddress
(
"
[email protected]
"
,
"ABC"
);
msg.To.Add(
new
MailAddress
(
"
[email protected]
"
,
"BCD"
));
msg.CC.Add(
new
MailAddress
(
"
[email protected]
"
,
"DEF"
));
// it is optional, only if required
msg.Subject =
"Send mail with ICS file as an Attachment"
;
msg.Body =
"Please Attend the meeting with this schedule"
;
msg.Subject =
"Send mail with ICS file as an Attachment"
;
msg.Body =
"Please Attend the meeting with this schedule"
;
Now will see the Sending mail part
}
Happy Coding!!!
Construct ICS file
ICS file
ICS file as attachment
send ICS file as attachment
Up Next
Ebook Download
View all
Diving Into ASP.NET WebAPI
Read by 21.4k people
Download Now!
Learn
View all
Membership not found