Note that there are some explanatory texts on larger screens.

plurals
  1. POsending mail in contact information with c#.net problem? help please
    primarykey
    data
    text
    <pre><code>protected void Button2_Click(object sender, EventArgs e) { string ad = TextBox1.Text; string firma = TextBox2.Text; string mail = TextBox3.Text; string tel = TextBox4.Text; string tel2 = TextBox5.Text; string fax = TextBox6.Text; string fax2 = TextBox7.Text; string web = TextBox8.Text; string mesaj = TextBox9.Text; try { string fromAddress = "user@gmail.com"; string fromName = "user"; string toMail = "user@gmail.com"; string toNme = "Mr."; string msgSubject = "Contact"; string sifre = "userpassword"; string msgBody = "you have a message; \n" + "\n" + "\n" + "Mesaj? Gonderenin Ad? :" + ad + "\n" + "Mesaj? Gonderen Firma :" + firma + "\n" + "Mesaj? Gonderenin Maili :" + mail + "\n" + "Mesaj? Gonderenin Tel. Numaras? :" + tel + tel2 + "\n" + "Mesaj? Gonderenin Fax Numaras? :" + fax + fax2 + "\n" + "Mesaj? Gonderenin Web Adresi :" + web + "\n" + "\n" + "\n" + "" + mesaj + "" + "\n" + "\n" + "=======================================" + "\n"; SmtpClient client = new SmtpClient(); client.Credentials = new System.Net.NetworkCredential(fromAddress, sifre); client.Host = "smtp.gmail.com"; client.Port = 1772; client.EnableSsl = false; MailAddress from = new MailAddress(fromAddress, fromName); MailAddress to = new MailAddress(toMail, toNme); MailMessage message = new MailMessage(from, to); message.Subject = msgSubject; message.Body = msgBody; client.Send(message); Response.Redirect("iletisim.aspx"); } catch (Exception ex) { } } </code></pre> <p>and WEB.CONFIG</p> <pre><code>&lt;configuration&gt; &lt;system.net&gt; &lt;mailSettings&gt; &lt;smtp deliveryMethod="Network" from="user@gmail.com"&gt; &lt;network host="smtp.gmail.com" port="1772" defaultCredentials="false" userName="user" password="userpassword"/&gt; &lt;/smtp&gt; &lt;/mailSettings&gt; &lt;/system.net&gt; &lt;/configuration&gt; </code></pre> <p>i am on my web site's contact, and i fill some textbox and i click send button. later i open user@gmail.com account but i didnt receive contact information mail.. Where do I make a mistake??</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload