List Info

Thread: C-Sharp (C#) Group: Fwd: smtp help!!!




C-Sharp (C#) Group: Fwd: smtp help!!!
user name
2007-02-23 14:03:39


i cant send mail with this code can anybody help me
 

private void button1_Click(object sender, EventArgs e)

{

MailMessage

mail = new MailMessage( "gmail.com" target="_blank">senderrrrrgmail.com", "hotmail.com" target="_blank"> tooohotmail.com" );

mail.Subject =

"deneme";

mail.Priority =

MailPriority.High;

mail.Body =

"deneme";

SmtpClient smtp = new SmtpClient();

NetworkCredential auth = new NetworkCredential ("gmail.com" target="_blank">senderrrrgmail.com", "passworddd");

smtp.DeliveryMethod =

SmtpDeliveryMethod.Network;

smtp.Host =

"smtp.google.com";;

smtp.Port = 465;

smtp.UseDefaultCredentials =

false;

smtp.EnableSsl =

true;

smtp.Credentials = auth;

try

{

smtp.Send(mail);

}

catch (Exception eee)

{

MessageBox.Show(eee.ToString()+"dont send");

this.Close();

}

}

--
lets do more


--
lets do more
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/C_Sharp?hl=en
-~----------~----~----~----~------~----~------~--~---

C-Sharp (C#) Group: Re: Fwd: smtp help!!!
country flaguser name
United States
2007-02-23 15:47:54

Do you have any debugging information to provide to narrow down the problem?

 

-----Original Message-----
From: C_Sharpgooglegroups.com [mailto:C_Sharpgooglegroups.com] On Behalf Of legnaladicius
Sent: Friday, February 23, 2007 2:04 PM
To: C_Sharpgooglegroups.com
Subject: C-Sharp (C#) Group: Fwd: smtp help!!!

 

 

i cant send mail with this code can anybody help me

 

private void button1_Click(object sender, EventArgs e)

{

MailMessage

mail = new MailMessage( "gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">senderrrrrgmail.com", "hotmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> tooohotmail.com" );

mail.Subject =

"deneme";

mail.Priority =

MailPriority.High;

mail.Body =

"deneme";

SmtpClient smtp = new SmtpClient();

NetworkCredential auth = new NetworkCredential ("gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">senderrrrgmail.com", "passworddd";);

smtp.DeliveryMethod =

SmtpDeliveryMethod.Network;

smtp.Host =

"smtp.google.com";;

smtp.Port = 465;

smtp.UseDefaultCredentials =

false;

smtp.EnableSsl =

true;

smtp.Credentials = auth;

try

{

smtp.Send(mail);

}

catch (Exception eee)

{

MessageBox.Show(eee.ToString()+"dont send");

this.Close();

}

}

--
lets do more



--
lets do more


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/C_Sharp?hl=en
-~----------~----~----~----~------~----~------~--~---
C-Sharp (C#) Group: Re: Fwd: smtp help!!!
user name
2007-02-23 17:37:54
when i cilick the send button e few secons later
im taking that error
failure sending mail -->unable to connect remote server
the server could not to ansver or the connected is not ansvered on the sendig time  

 
On 2/23/07, J.P. Trosclair < jptrosclairgmail.com">jptrosclairgmail.com> wrote:

Do you have any debugging information to provide to narrow down the problem?

 

-----Original Message-----
From: googlegroups.com" target="_blank"> C_Sharpgooglegroups.com [mailto:googlegroups.com" target="_blank">C_Sharpgooglegroups.com] On Behalf Of legnaladicius
Sent: Friday, February 23, 2007 2:04 PM
To: googlegroups.com" target="_blank"> C_Sharpgooglegroups.com
Subject: C-Sharp (C#) Group: Fwd: smtp help!!!

 

 

i cant send mail with this code can anybody help me

 

private void button1_Click(object sender, EventArgs e)

{

MailMessage

mail = new MailMessage ( "gmail.com" target="_blank">senderrrrrgmail.com" , "hotmail.com" target="_blank"> tooohotmail.com" );

mail.Subject =

"deneme";

mail.Priority =

MailPriority.High;

mail.Body =

"deneme";

SmtpClient smtp = new SmtpClient();

NetworkCredential auth = new NetworkCredential ("gmail.com" target="_blank"> senderrrrgmail.com", "passworddd";);

smtp.DeliveryMethod =

SmtpDeliveryMethod.Network;

smtp.Host =

" smtp.google.com&quot;;

smtp.Port = 465;

smtp.UseDefaultCredentials =

false;

smtp.EnableSsl =

true;

smtp.Credentials = auth;

try

{

smtp.Send(mail);

}

catch ( Exception eee)

{

MessageBox.Show(eee.ToString()+ "dont send");

this.Close();

}

}

--
lets do more



--
lets do more

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/C_Sharp?hl=en
-~----------~----~----~----~------~----~------~--~---

C-Sharp (C#) Group: Re: Fwd: smtp help!!!
user name
2007-02-27 09:31:43
yes
google is saying on videos that helping configure outlook
i ll  look again
thanks for ur interest

 
On 2/27/07, Strodyn < kevin.auldgmail.com">kevin.auldgmail.com> wrote:

I cannot telnet to smtp.google.com on port 465, are you sure it is
listening on this port?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/C_Sharp?hl=en
-~----------~----~----~----~------~----~------~--~---

C-Sharp (C#) Group: Re: Fwd: smtp help!!!
user name
2007-02-28 06:04:05
thanks
i found that way yesterday
 
smtp server : smtp.googlemail.com
smtp port : 587
&nbsp;
with that im sending emails
thanks alot again

 
On 2/28/07, Strodyn < kevin.auldgmail.com">kevin.auldgmail.com> wrote:


I just did a few checks and smtp.gmail.com port 587 is
listening......I imagine that will work with your username /
password..


On 27 Feb, 15:31, legnaladicius < legnaladic...gmail.com">legnaladic...gmail.com> wrote:
>; yes
> google is saying on videos that helping configure outlook
> i ll &nbsp;look again
> thanks for ur interest
&gt;
> On 2/27/07, Strodyn < kevin.a...gmail.com">kevin.a...gmail.com> wrote:
>;
>
>
> > I cannot telnet to smtp.google.com on port 465, are you sure it is
> > listening on this port?
>
> --
> lets do more

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/C_Sharp?hl=en
-~----------~----~----~----~------~----~------~--~---

C-Sharp (C#) Group: Re: Fwd: smtp help!!!
user name
2007-03-02 09:24:33
i tried again with smtp.gmail.com and 465
and i dint send again
but smtp.googlemail.com 587 is working

&nbsp;
On 2/28/07, Strodyn < kevin.auldgmail.com">kevin.auldgmail.com> wrote:

its also listening on smtp.gmail.com 465

On Feb 28, 9:07 am, "Strodyn" < kevin.a...gmail.com">kevin.a...gmail.com> wrote:
>; I just did a few checks and smtp.gmail.com port 587is
> listening......I imagine that will work with your username /
> password..
>
> On 27 Feb, 15:31, legnaladicius < legnaladic...gmail.com">legnaladic...gmail.com> wrote:
>;
> > yes
> > google is saying on videos that helping configure outlook
> > i ll &nbsp;look again
> > thanks for ur interest
&gt;
> > On 2/27/07, Strodyn < kevin.a...gmail.com">kevin.a...gmail.com> wrote:
>;
> > > I cannot telnet to smtp.google.com on port 465, are you sure it is
> > > listening on this port?
>
> > --
> > lets do more

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/C_Sharp?hl=en
-~----------~----~----~----~------~----~------~--~---

[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )