TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Daniel Rabinovits
NA
34
7.7k
Emailing from C#
Jan 30 2020 11:24 AM
When I email using Outlook.Application:
Outlook.Application outlookApp = new Outlook.Application();
Outlook._MailItem email = (Outlook._MailItem)outlookApp.CreateItem(Outlook.OlItemType.olMailItem);
email.Subject = listView2.SelectedItems[0].ToString() + " Your Store Order Reviewed (TESTING)";
email.To = "
[email protected]
";
if (Approved)
{
email.CC = "
[email protected]
";
}
email.HTMLBody = emailBody;
email.Send();
I get this annoying security message from Outlook which I have to press send to sent the email.
How can I get around this?
Reply
Answers (
2
)
cant fill dataset
At the special characters we are getting ? mark