Sneak Grandmaster Cheater Supreme
Reputation: 0
Joined: 05 Nov 2008 Posts: 1895
|
Posted: Fri Oct 02, 2009 9:31 pm Post subject: [C#] Connection problem |
|
|
I have a new error :O
current:
| Code: | 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.Web.Mail;
using System.Net.Mail;
using MailBee.SmtpMail;
using MailBee.Security;
namespace Gmail
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Smtp mailer = new Smtp();
SmtpServer server = new SmtpServer("smtp.gmail.com", "[email protected]", "password");
server.SslMode = SslStartupMode.UseStartTls;
mailer.SmtpServers.Add(server);
mailer.From.Email = "[email protected]";
mailer.To.Add("[email protected]");
mailer.Subject = "Lockerz";
mailer.BodyPlainText = textBox1.Text;
mailer.Send();
}
}
} |
Meant to: Send an email from my fake email account to my real one, which the body has textbox1.text's text.
I have no errors, except when im debugging, i get this error:
| Code: | Remote host is unreachable. InnerException message follows: A socket operation was attempted to an unreachable network 74.125.65.109:25
|
_________________
|
|