Display results as :

Rechercher Advanced Search

Latest topics
» ~=?{The future is here, TastyExploit officially open to the public}?=~
Tue Mar 02, 2010 11:00 pm by Dami

» My first aa script
Tue Mar 02, 2010 7:00 am by wafflemaster

» the real story behind Maverin
Tue Mar 02, 2010 1:33 am by SoundOfDeat

» Random spam
Mon Mar 01, 2010 11:52 pm by Danny1994

» [Request] EMS v56 Exe
Mon Mar 01, 2010 12:39 am by Dami

» [Blacklist] NX-Trading Blacklist.
Mon Mar 01, 2010 12:38 am by Danny1994

» I have a question regarding the meso farmer
Sat Feb 27, 2010 10:30 pm by Dami

» What are you listening to now?
Sat Feb 27, 2010 7:57 pm by Noname111111

» Video(s) Of The Day
Sat Feb 27, 2010 7:37 pm by Noname111111

free forum

Help me with my C# Mailer Script please?

Go down

Help me with my C# Mailer Script please?

Post by Guest on Tue Dec 01, 2009 4:18 am

        private void timer1_Tick(object sender, EventArgs e)
            SmtpClient client = new SmtpClient(); //Start.
            client.Credentials = new System.Net.NetworkCredential(textBox1.Text + "", textBox2.Text); //Log In.
            client.Port = 587; //Connect to port.
            client.Host = ""; //Connect to host.
            client.EnableSsl = true; //Enable SSL.
            System.Net.Mail.MailMessage msg = new System.Net.Mail.MailMessage(); //Compose a message.
            msg.To.Add(textBox4.Text); //Add a recipient.
            msg.From = new MailAddress(textBox1.Text + "", textBox3.Text, System.Text.Encoding.UTF8); //Add sender part.
            msg.Subject = textBox5.Text; //Add a subject.
            msg.SubjectEncoding = System.Text.Encoding.UTF8; //Set UTF8 encoding.
            msg.Body = textBox6.Text; //Set Body context.
            msg.BodyEncoding = System.Text.Encoding.UTF8; //Set UTF8 encoding again.
            msg.IsBodyHtml = false; //Disable HTML use.
            msg.Priority = MailPriority.Normal; //Set mail priority.
            client.Send(msg); //Send it!

I did not leech this script.
I added the comments myself. (To show what I understand of it. Wink)

Why is this not working?

Some help would be great! What a Face


Back to top Go down

Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum