Click here to Skip to main content
16,021,125 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
Hello
I have 8 Textbox
and i want send all text in textbox to my Email
How i can do that ?
and i have another question
i have progressBar1 , i need whene i click in button mack prosseser
just make like download
i tested
progressBar1.Value = 100;

But It's very fast i need slowly
Thak you
Posted

U add your All Text box Text in Mail Body Part Text..... :laugh:
 
Share this answer
 
v2
To send emails you can try something like this;

C#
System.Web.Mail.MailMessage message=new System.Web.Mail.MailMessage();

message.Fields.Add( "http://schemas.microsoft.com/cdo/configuration/smtpauthenticate",1 );
message.Fields.Add( "http://schemas.microsoft.com/cdo/configuration/sendusername","SmtpHostUserName" );
message.Fields.Add( "http://schemas.microsoft.com/cdo/configuration/sendpassword","SmtpHostPassword" );

message.From="from e-mail";
message.To="to e-mail";
message.Subject="Message Subject";
message.Body="Message Body";

System.Web.Mail.SmtpMail.SmtpServer="SMTP Server Address";
System.Web.Mail.SmtpMail.Send(message);


You obviously have to replace the username, password and servername to something that will work for you.

As for the progress bar, you need to set a min and a max value, and after that you set the .Value property to whatever progress you want shown.

Code above nicked from here[^].

Hope this helps,
Fredrik
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900