16,018,919 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by MohRizwan (Top 13 by date)
MohRizwan
15-Jul-14 3:06am
View
Thanks For yourt reply Mr.Griff i just thought .As it is a backup db no issues .But when i get that problem i just thought how to solve it . If it is in the case of production DB ...what is the way to recover the database.
MohRizwan
20-Sep-13 7:01am
View
Tahanks For Your reply! But i need to be done it Programmatically
MohRizwan
27-Aug-13 5:40am
View
Thanks Mr.Billwoodruff for your reply .I tried your code but think its not working in my case.
I have tried it. actually my problem is that i am using two forms separately. I tried it even in menu strip tool but still the problem exists.
Any how thanks for your reply.
MohRizwan
29-Jul-13 5:56am
View
Thanks Ashwathi For your Reply... I have solved it Early and your solution is right.Thanks For your reply
MohRizwan
25-Jul-13 5:49am
View
hey i have not put the code just gave you an idea of what i did
MohRizwan
20-Jul-13 2:49am
View
thanks for your reply ..but the code is not working
dr["Watt"] = Txtwatt.Text.ToString();
error at this line :
Column 'Product' does not belong to table .
MohRizwan
20-Jul-13 1:53am
View
thanks mr.Zafar .. i change the code as you said but igot an error
Line 37: DataRow dr = dt2.NewRow();
Object reference not set to an instance of an object.
MohRizwan
8-Jul-13 7:24am
View
public System.Net.NetworkCredential smtpcrede = new System.Net.NetworkCredential("mymail@gmail.com", " password");
this is my credential hope this code is right..?
MohRizwan
8-Jul-13 3:45am
View
i am using a form application it shows error "namespace missing"
MohRizwan
8-Jul-13 3:05am
View
i am trying to run in desktop application any way thanks for your reply
MohRizwan
8-Jul-13 2:57am
View
/* here is my code mr. sushil and it shows smtp authentication needed */
public partial class Mail : Form
{
public string s;
public SmtpClient client = new SmtpClient();
public MailMessage msg = new MailMessage();
String[] email = new String[30];
int flag = 0;
public System.Net.NetworkCredential smtpcrede = new System.Net.NetworkCredential("username", "Password");
//Sending mail
private void SendEmail(string sendTo, string sendFrom, string subject, string body)
{
try
{
client.Host = "smtp.gmail.com";
client.Port = 587;
client.UseDefaultCredentials = false;
client.Credentials = smtpcrede;
client.EnableSsl = true;
MailAddress to = new MailAddress(sendTo);
MailAddress from = new MailAddress(sendFrom);
msg.IsBodyHtml = true;
msg.Subject = subject;
msg.Body = body;
msg.From = from;
string[] addrs = sendTo.Split(',');
foreach (string addr in addrs)
{
MailAddress to = new MailAddress(addr);
msg.To.Add(to);
}
client.Send(msg);
}
//send email
private void btn_Send_Click(object sender, EventArgs e)
{
String mailmsg = "text1<br/>"+rich_Msg.Text+"<br/>text2";
for (int i = 0; i < email.Length; i++)
{
SendEmail(email[i], "from@mail.com", txt_Subj.Text,mailmsg);
// Console.WriteLine(email[i], "from@mail.com", txt_Subj.Text, rich_Msg.Text);
}
MohRizwan
8-Jul-13 2:55am
View
thanks Mr.Griif but it shows an error that " smtp Authentication needed"
MohRizwan
8-Jul-13 1:55am
View
i have code but its not functioning properly ...
Show More