Hi,

I'm sending mail from .net via SMTPClient but always got "operation
timeout". I use same settings in Outlook Express and OE can send mail!
I previously used a gmail account and I could send mail in .net. When
I switched to use my own email account everything went bad.
My setting that is used in OE is as follow:
Incoming mail(POP3): someserver.com
Outgoing mail(SMTP): someserver.com

account name : *****
Password: ****
My server requires authentication (Use same settings as my incoming
mail server)
SMTP port: 465
SMTP port: 995
both outgoing and incoming servers use SSL


I guess the problem is for:
My server requires authentication (Use same settings as my incoming
mail server)


Afshar

Re: I can't send mail using SMTPClient but Outlook Express can! by sloan

sloan
Sat Mar 15 08:39:07 CDT 2008

Check this blog:
http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!138.entry

and you'll see an easier way to switch to and from gmail (ssl) and non ssl
email sending.

1.1 and 2.0 versions.

Code is downloadable.



"Afshar" <afshar.mohebbi@gmail.com> wrote in message
news:fce4fbe5-8edd-4288-844e-d80b39547d1b@8g2000hsu.googlegroups.com...
> Hi,
>
> I'm sending mail from .net via SMTPClient but always got "operation
> timeout". I use same settings in Outlook Express and OE can send mail!
> I previously used a gmail account and I could send mail in .net. When
> I switched to use my own email account everything went bad.
> My setting that is used in OE is as follow:
> Incoming mail(POP3): someserver.com
> Outgoing mail(SMTP): someserver.com
>
> account name : *****
> Password: ****
> My server requires authentication (Use same settings as my incoming
> mail server)
> SMTP port: 465
> SMTP port: 995
> both outgoing and incoming servers use SSL
>
>
> I guess the problem is for:
> My server requires authentication (Use same settings as my incoming
> mail server)
>
>
> Afshar