473,320 Members | 1,904 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Sending mail using Net.Mail

Hi.
I tring to send a email.
I wrote the following lines:

(Imports System.Net.Mail)

Dim MailMsg As New MailMessage
Dim WithEvents MailSmtp As New SmtpClient
MailSmtp.Host = gmail.smtp.com
MailSmtp.Port = 465
MailSmtp.EnableSsl = True
MailSmtp.Credentials = New NetworkCredential(My****@gmail.com","MyPassword")
MailSmtp.Send(MailMsg)

And I resive this run-time error:
The operation has timed out

Thank you 4 all.
Oct 24 '06 #1
2 2712
Time out error will be caused when the Network Connection is slow or not
there

"י*ון אזרד" wrote:
Hi.
I tring to send a email.
I wrote the following lines:

(Imports System.Net.Mail)

Dim MailMsg As New MailMessage
Dim WithEvents MailSmtp As New SmtpClient
MailSmtp.Host = gmail.smtp.com
MailSmtp.Port = 465
MailSmtp.EnableSsl = True
MailSmtp.Credentials = New NetworkCredential(My****@gmail.com","MyPassword")
MailSmtp.Send(MailMsg)

And I resive this run-time error:
The operation has timed out

Thank you 4 all.
Oct 25 '06 #2
Thank you, but it's not the problam. because with an other Mail Server I can
sending mail to another E-Mail within this server.
Thanks.

"Prabakar Samiyappan" wrote:
Time out error will be caused when the Network Connection is slow or not
there

"י*ון אזרד" wrote:
Hi.
I tring to send a email.
I wrote the following lines:

(Imports System.Net.Mail)

Dim MailMsg As New MailMessage
Dim WithEvents MailSmtp As New SmtpClient
MailSmtp.Host = gmail.smtp.com
MailSmtp.Port = 465
MailSmtp.EnableSsl = True
MailSmtp.Credentials = New NetworkCredential(My****@gmail.com","MyPassword")
MailSmtp.Send(MailMsg)

And I resive this run-time error:
The operation has timed out

Thank you 4 all.
Oct 28 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Stuart Mueller | last post by:
I have an exchange server, that I sometimes use to perform mail shots to clients on our database, these can be upwards of 1000 at a time. As we don't want different clients to see who we are...
9
by: savvy | last post by:
i'm trying to compile a simple console application for sending a mail, my main idea is to schedule it to a particular time for sending mails using the windows schedular task lateron. Therefore i...
2
by: Mr. x | last post by:
Hello, I am sending emails with Hebrew contents. When receiving emails - I cannot see the Hebrew characters (it is not outlook express configuration, because when receiving emails from friends -...
9
by: B-Dog | last post by:
I've built a small app that sends mail through our ISP's SMTP server but when I try to send through my local exchange server I get CDO error. Does webmail use SMTP or does it strictly rely on...
3
by: Ant | last post by:
Hi, I'm using the MailMessage & smtpMail classes in System.Web.Mail to send mail, however it's not sending any emails. I'm using it on a Windows 2003 server. The simplest way to use this is...
3
by: HoustonComputerGuy | last post by:
I am working on getting my web applications moved to .Net 2.0 and am having some problems with System.Net.Mail. I get the following error when sending the mail: System.Net.Mail.SmtpException was...
1
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
3
by: mfleet1973 | last post by:
Hello Again. I have a program that sends e-mails as follows: Try Dim mail As New MailMessage mail.To = "me@comp.com" mail.From = "me@comp.com mail.Subject = "Test" mail.Body = "Testing123"
7
by: undbund | last post by:
Hi I am creating a newsletter system. The software should run from desktop computer (localhost) but be able to send email to anyone on the internet. Can you guys give me some ideas on how to...
1
maliksleo
by: maliksleo | last post by:
hi i am using the following class for email sending but getting this error "Failure sending mail" Imports System.Net.Mail Public Class MailHelper ''' <summary> ''' Sends an mail...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shllpp 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.