using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.IO;
using System.Web;
using System.Net.Mail;
using GmailAPI;
namespace gmail
{
public partial class Main : Form
{
private bool _browserReady = false;
string username, password;
string attachfilepatch;
MailMessage MyMessage;
public Main()
{
InitializeComponent();
}
private void WaitUntilBrowserReady()
{
if (this._browserReady)
{
return;
}
for (int i = 0; i < 60 && !this._browserReady; i++)
{
System.Threading.Thread.Sleep(100);
Application.DoEvents();
}
}
}
private void lklAttach_Click(object sender, EventArgs e)
{
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
attachfilepatch = openFileDialog1.FileName;
FileInfo file = new FileInfo(attachfilepatch);
lklAttach.Text = file.Name + " " + (file.Length / 1024).ToString("N0") + " KB";
}
}
private void send()
{
try
{
Cursor.Current = Cursors.WaitCursor;
SmtpClient MySMTPClient = new SmtpClient("smtp.gmail.com", 25);
MySMTPClient.EnableSsl = true;
NetworkCredential MyCredentials = new NetworkCredential(username, password);
MySMTPClient.Credentials = MyCredentials;
MyMessage = new MailMessage(username + "@gmail.com", txtTo.Text, txtSubject.Text, htmlTextbox1.Text);
MyMessage.IsBodyHtml = true;
if (attachfilepatch != null)
{
MyMessage.Attachments.Add(new Attachment(attachfilepatch));
MySMTPClient.Send(MyMessage);
}
else
MySMTPClient.Send(MyMessage);
MessageBox.Show("Mailet send shod , ishala karet doros she *V*\nAge ta 72 saat support javab nadad , dobare emtehan ҚỡИ*V*",
"Successfull", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
catch (Exception MyError)
{
MessageBox.Show("ID YA PASSE MAILETO KE ESHTEBAH ZADI :O \nThe username or password you entered is incorrect. !");
}
private void btnSendButton_Click(object sender, EventArgs e)
{
btnSendTop_Click(sender, e);
}
private void btnSendButton_Click_1(object sender, EventArgs e)
{
send();
}
}
private void btnClose_Click(object sender, EventArgs e)
{
this.Close();
}
private void radioButton1_CheckedChanged(object sender, EventArgs e)
{
if (radioButton1.Checked)
{
txtSubject.Text = "My Nimbuzz ID has been blocked , plz help .";
txtSubject.Enabled = true;
htmlTextbox1.Text="Hi nimbuzz team\nMy jid was blocked\nPlease unblock my jid\nJid:
[You must be registered and logged in to see this link.]\nPlease help me nimbuzz team.\nThanks a lot\nGood luck\nCheers!\n";
}
}
private void txtSubject_TextChanged(object sender, EventArgs e)
{
}
private void radioButton2_CheckedChanged(object sender, EventArgs e)
{
if (radioButton2.Checked)
{
txtSubject.Text = "My Nimbuzz ID has been Hacked !!!! , plz help me .";
txtSubject.Enabled = true;
htmlTextbox1.Text = "Hi nimbuzz team\nMy Nimbuzz ID has been hacked\nPlease help me to give it back\nMy id:
[You must be registered and logged in to see this link.]\nOld e-mail: EMAIL KE RU ID BUDE\nOld Phone Nimber : +98... AKHARIN TELL GHABLE ЧฮСΚ\nOld password: AKHARIN PW GHABLE ЧฮСΚ\nAddlist: 5ADDLIST\nThanks a lot\nGood luck";
}
}
private void label1_Click(object sender, EventArgs e)
{
}
private void label2_Click(object sender, EventArgs e)
{
}
private void openFileDialog1_FileOk(object sender, CancelEventArgs e)
{
}
private void toolStripButton6_Click(object sender, EventArgs e)
{
}
private void toolStripButton9_Click(object sender, EventArgs e)
{
private void toolStripSplitButton1_ButtonClick(object sender, EventArgs e)
{
}
private void toolStripSplitButton2_ButtonClick(object sender, EventArgs e)
{
}
private void toolStripButton4_Click(object sender, EventArgs e)
{
}
private void toolStripButton5_Click(object sender, EventArgs e)
{
}
private void toolStripButton8_Click(object sender, EventArgs e)
{
}
private void pictureBox1_Click_1(object sender, EventArgs e)
{
}
private void htmlTextbox1_Load(object sender, EventArgs e)
{
}
private void pictureBox2_Click(object sender, EventArgs e)
{
}
private void txtTo_TextChanged(object sender, EventArgs e)
{
}
}
}