Trouble sending mail via SmtpClient while Server requires authentication



Hi there,

my following code results in timeout,
I have everything set in my app.config.
My application works with a gmail account. But when use another mail
account it doesn't work.
my new account works in OE. But I should set "My Server Requires
Authentication" in it. I believe the problem lies here.

thanks a lot,
mohebbi






MailMessage message = new MailMessage("someone@irisl-
mti.org", "someone@xxxxxxxxx", "test_subject", "move your body");
SmtpClient client = new SmtpClient();
client.EnableSsl = true;
NetworkCredential nc = new NetworkCredential("user",
"password");

client.Credentials = nc;
client.UseDefaultCredentials = false;
client.Timeout = 15000;
client.DeliveryMethod = SmtpDeliveryMethod.Network;
client.Send(message);




<system.net>
<mailSettings>
<smtp from="dabir-mti@xxxxxxxxxxxxx">
<network host="irisl-mti.org" userName="someone@xxxxxxxxxxxxx"
password="*******"
port="someport" defaultCredentials="false"/>
</smtp>
</mailSettings>
</system.net>
.



Relevant Pages

  • Re: OE6 does not connect with pop3 server
    ... Can we infer from this that you got a timeout on the EarthLink account ... My point about making an approximate timestamp is just to look at the ... E.g. as near as possible before the connection ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • RE: 440 Login Timeout OWA
    ... I did as you said and it started loading then 440 login ... >Its possible that the the IUSR_COMPUTERNAME account ... >services and then test OWA again to see if it works. ... >440 Login Timeout OWA ...
    (microsoft.public.exchange.clients)
  • Re: Outlook pop account server timouts
    ... The thing is, if I'm not at my computer to resubmit the credentials manually when I receive a server timeout popup, the mail for that account will go unchecked. ... Not a big deal if it happens over night, but if I'm out of town for an extended period and checking my mail remotely I don't get any mail from that account. ...
    (microsoft.public.outlook)
  • Re: Database access using SQL 2000, ASP and IIS 5
    ... That solved my connection problem, ... I set my timeout to 9000 seconds from 900 but I still seem to get the ... >> I have ISA server logging to SQL2K which is installed on the ISA server. ... >> in a domain account then give that account privleages, ...
    (microsoft.public.inetserver.asp.db)
  • Re: OE6 does not connect with pop3 server
    ... a "known problem" with the XP firewall. ... I deal with the problem by having the server timeout as quickly as possible ... connecting with sending and receiving my speculation would be that ... > My POP.viewmark account is configured to be the first one connected too. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)