I am attempting to send an email attachment out
Dim messageTo As String = "na**@something.com"
Dim messageFrom As String = "na**@something.com"
Dim msgSubject As String = "check confirm"
Dim msgBody As String = "please find the text attachment"
Dim Msg As New MailMessage(messageFrom, messageTo, msgSubject,
msgBody)
Dim MailClient As New SmtpClient("###.#.#.##")
Dim attach1 As New Attachment("c:\windows\temp\checkTest.txt")
Msg.Attachments.Add(attach1)
MailClient.UseDefaultCredentials = True
MailClient.Send(Msg)
Msg.Dispose()
I get an error "the operation has timed out"
Any ideas of what i'm doing wrong/missing?
thanks for any assistance,
Stu 7 1052
On Jun 13, 1:46 pm, stuforman <stufor...@gmail.comwrote:
I am attempting to send an email attachment out
Dim messageTo As String = "n...@something.com"
Dim messageFrom As String = "n...@something.com"
Dim msgSubject As String = "check confirm"
Dim msgBody As String = "please find the text attachment"
Dim Msg As New MailMessage(messageFrom, messageTo, msgSubject,
msgBody)
Dim MailClient As New SmtpClient("###.#.#.##")
Dim attach1 As New Attachment("c:\windows\temp\checkTest.txt")
Msg.Attachments.Add(attach1)
MailClient.UseDefaultCredentials = True
MailClient.Send(Msg)
Msg.Dispose()
I get an error "the operation has timed out"
Any ideas of what i'm doing wrong/missing?
thanks for any assistance,
Stu
Which line is timing out?
Thanks,
Seth Rowe [MVP]
On Jun 13, 8:46*pm, stuforman <stufor...@gmail.comwrote:
I am attempting to send an email attachment out
* * * * Dim messageTo As String = "n...@something.com"
* * * * Dim messageFrom As String = "n...@something.com"
* * * * Dim msgSubject As String = "check confirm"
* * * * Dim msgBody As String = "please find the text attachment"
* * * * Dim Msg As New MailMessage(messageFrom, messageTo, msgSubject,
msgBody)
* * * * Dim MailClient As New SmtpClient("###.#.#.##")
* * * * Dim attach1 As New Attachment("c:\windows\temp\checkTest.txt")
* * * * Msg.Attachments.Add(attach1)
* * * * MailClient.UseDefaultCredentials = True
* * * * MailClient.Send(Msg)
* * * * Msg.Dispose()
I get an error "the operation has timed out"
Any ideas of what i'm doing wrong/missing?
thanks for any assistance,
Stu
Are you sure that the SMTP server you're using is healty and
responsive? A good test would use the same SMTP server with Outlook
Express to determine if it's a server issue.
Thanks,
Onur Güzel
On Jun 13, 2:03*pm, kimiraikkonen <kimiraikkone...@gmail.comwrote:
On Jun 13, 8:46*pm, stuforman <stufor...@gmail.comwrote:
I am attempting to send an email attachment out
* * * * Dim messageTo As String = "n...@something.com"
* * * * Dim messageFrom As String = "n...@something.com"
* * * * Dim msgSubject As String = "check confirm"
* * * * Dim msgBody As String = "please find the text attachment"
* * * * Dim Msg As New MailMessage(messageFrom, messageTo, msgSubject,
msgBody)
* * * * Dim MailClient As New SmtpClient("###.#.#.##")
* * * * Dim attach1 As New Attachment("c:\windows\temp\checkTest..txt")
* * * * Msg.Attachments.Add(attach1)
* * * * MailClient.UseDefaultCredentials = True
* * * * MailClient.Send(Msg)
* * * * Msg.Dispose()
I get an error "the operation has timed out"
Any ideas of what i'm doing wrong/missing?
thanks for any assistance,
Stu
Are you sure that the SMTP server you're using is healty and
responsive? A good test would use the same SMTP server with Outlook
Express to determine if it's a server issue.
Thanks,
Onur Güzel- Hide quoted text -
- Show quoted text -
the line that times out is:
MailClient.Send(Msg)
my first thougth is that it is a server issue somehow - but, i have 2
other programs (NOT VB) that use this server. I also was emailing
through visual studios in the error event handler for several SSIS'.
All these use this same IP address for the server...
I'm fairly new to VB, so I was questioning whether it is the server or
my syntax...
On Jun 13, 9:16*pm, stuforman <stufor...@gmail.comwrote:
On Jun 13, 2:03*pm, kimiraikkonen <kimiraikkone...@gmail.comwrote:
On Jun 13, 8:46*pm, stuforman <stufor...@gmail.comwrote:
I am attempting to send an email attachment out
* * * * Dim messageTo As String = "n...@something.com"
* * * * Dim messageFrom As String = "n...@something.com"
* * * * Dim msgSubject As String = "check confirm"
* * * * Dim msgBody As String = "please find the text attachment"
* * * * Dim Msg As New MailMessage(messageFrom, messageTo, msgSubject,
msgBody)
* * * * Dim MailClient As New SmtpClient("###.#.#.##")
* * * * Dim attach1 As New Attachment("c:\windows\temp\checkTest.txt")
* * * * Msg.Attachments.Add(attach1)
* * * * MailClient.UseDefaultCredentials = True
* * * * MailClient.Send(Msg)
* * * * Msg.Dispose()
I get an error "the operation has timed out"
Any ideas of what i'm doing wrong/missing?
thanks for any assistance,
Stu
Are you sure that the SMTP server you're using is healty and
responsive? A good test would use the same SMTP server with Outlook
Express to determine if it's a server issue.
Thanks,
Onur Güzel- Hide quoted text -
- Show quoted text -
the line that times out is:
MailClient.Send(Msg)
my first thougth is that it is a server issue somehow - but, i have 2
other programs (NOT VB) that use this server. I also was emailing
through visual studios in the error event handler for several SSIS'.
All these use this same IP address for the server...
I'm fairly new to VB, so I was questioning whether it is the server or
my syntax...- Hide quoted text -
- Show quoted text -
Try to set SMTPClient's EnableSSL property to True and also see if
Port property is required to set a value if you know which port to
use.
Thanks,
Onur Güzel
On Jun 13, 2:49*pm, kimiraikkonen <kimiraikkone...@gmail.comwrote:
On Jun 13, 9:16*pm, stuforman <stufor...@gmail.comwrote:
On Jun 13, 2:03*pm, kimiraikkonen <kimiraikkone...@gmail.comwrote:
On Jun 13, 8:46*pm, stuforman <stufor...@gmail.comwrote:
I am attempting to send an email attachment out
* * * * Dim messageTo As String = "n...@something.com"
* * * * Dim messageFrom As String = "n...@something.com"
* * * * Dim msgSubject As String = "check confirm"
* * * * Dim msgBody As String = "please find the text attachment"
* * * * Dim Msg As New MailMessage(messageFrom, messageTo, msgSubject,
msgBody)
* * * * Dim MailClient As New SmtpClient("###.#.#.##")
* * * * Dim attach1 As New Attachment("c:\windows\temp\checkTest.txt")
* * * * Msg.Attachments.Add(attach1)
* * * * MailClient.UseDefaultCredentials = True
* * * * MailClient.Send(Msg)
* * * * Msg.Dispose()
I get an error "the operation has timed out"
Any ideas of what i'm doing wrong/missing?
thanks for any assistance,
Stu
Are you sure that the SMTP server you're using is healty and
responsive? A good test would use the same SMTP server with Outlook
Express to determine if it's a server issue.
Thanks,
Onur Güzel- Hide quoted text -
- Show quoted text -
the line that times out is:
MailClient.Send(Msg)
my first thougth is that it is a server issue somehow - but, i have 2
other programs (NOT VB) that use this server. I also was emailing
through visual studios in the error event handler for several SSIS'.
All these use this same IP address for the server...
I'm fairly new to VB, so I was questioning whether it is the server or
my syntax...- Hide quoted text -
- Show quoted text -
Try to set SMTPClient's EnableSSL property to True and also see if
Port property is required to set a value if you know which port to
use.
Thanks,
Onur Güzel- Hide quoted text -
- Show quoted text -
i tried to set the SMTPClient's EnableSSL property to True and i get
an error that the server does not support secure connections...
On Jun 13, 10:04*pm, stuforman <stufor...@gmail.comwrote:
On Jun 13, 2:49*pm, kimiraikkonen <kimiraikkone...@gmail.comwrote:
On Jun 13, 9:16*pm, stuforman <stufor...@gmail.comwrote:
On Jun 13, 2:03*pm, kimiraikkonen <kimiraikkone...@gmail.comwrote:
On Jun 13, 8:46*pm, stuforman <stufor...@gmail.comwrote:
I am attempting to send an email attachment out
* * * * Dim messageTo As String = "n...@something.com"
* * * * Dim messageFrom As String = "n...@something.com"
* * * * Dim msgSubject As String = "check confirm"
* * * * Dim msgBody As String = "please find the text attachment"
* * * * Dim Msg As New MailMessage(messageFrom, messageTo,msgSubject,
msgBody)
* * * * Dim MailClient As New SmtpClient("###.#.#.##")
* * * * Dim attach1 As New Attachment("c:\windows\temp\checkTest.txt")
* * * * Msg.Attachments.Add(attach1)
* * * * MailClient.UseDefaultCredentials = True
* * * * MailClient.Send(Msg)
* * * * Msg.Dispose()
I get an error "the operation has timed out"
Any ideas of what i'm doing wrong/missing?
thanks for any assistance,
Stu
Are you sure that the SMTP server you're using is healty and
responsive? A good test would use the same SMTP server with Outlook
Express to determine if it's a server issue.
Thanks,
Onur Güzel- Hide quoted text -
- Show quoted text -
the line that times out is:
MailClient.Send(Msg)
my first thougth is that it is a server issue somehow - but, i have 2
other programs (NOT VB) that use this server. I also was emailing
through visual studios in the error event handler for several SSIS'.
All these use this same IP address for the server...
I'm fairly new to VB, so I was questioning whether it is the server or
my syntax...- Hide quoted text -
- Show quoted text -
Try to set SMTPClient's EnableSSL property to True and also see if
Port property is required to set a value if you know which port to
use.
Thanks,
Onur Güzel- Hide quoted text -
- Show quoted text -
i tried to *set the SMTPClient's EnableSSL property to True and i get
an error that the server does not support secure connections...- Hide quoted text -
- Show quoted text -
Ok.. Another possibility, do you have any firewalls turned on? Such as
Windows Firewall or Norton or McAfee, disable them temporarily and re-
test the behaviour.
Hope this helps,
Onur Güzel
On Jun 13, 3:29*pm, kimiraikkonen <kimiraikkone...@gmail.comwrote:
On Jun 13, 10:04*pm, stuforman <stufor...@gmail.comwrote:
On Jun 13, 2:49*pm, kimiraikkonen <kimiraikkone...@gmail.comwrote:
On Jun 13, 9:16*pm, stuforman <stufor...@gmail.comwrote:
On Jun 13, 2:03*pm, kimiraikkonen <kimiraikkone...@gmail.comwrote:
On Jun 13, 8:46*pm, stuforman <stufor...@gmail.comwrote:
I am attempting to send an email attachment out
* * * * Dim messageTo As String = "n...@something.com"
* * * * Dim messageFrom As String = "n...@something.com"
* * * * Dim msgSubject As String = "check confirm"
* * * * Dim msgBody As String = "please find the text attachment"
* * * * Dim Msg As New MailMessage(messageFrom, messageTo, msgSubject,
msgBody)
* * * * Dim MailClient As New SmtpClient("###.#.#.##")
* * * * Dim attach1 As New Attachment("c:\windows\temp\checkTest.txt")
* * * * Msg.Attachments.Add(attach1)
* * * * MailClient.UseDefaultCredentials = True
* * * * MailClient.Send(Msg)
* * * * Msg.Dispose()
I get an error "the operation has timed out"
Any ideas of what i'm doing wrong/missing?
thanks for any assistance,
Stu
Are you sure that the SMTP server you're using is healty and
responsive? A good test would use the same SMTP server with Outlook
Express to determine if it's a server issue.
Thanks,
Onur Güzel- Hide quoted text -
- Show quoted text -
the line that times out is:
MailClient.Send(Msg)
my first thougth is that it is a server issue somehow - but, i have 2
other programs (NOT VB) that use this server. I also was emailing
through visual studios in the error event handler for several SSIS'.
All these use this same IP address for the server...
I'm fairly new to VB, so I was questioning whether it is the server or
my syntax...- Hide quoted text -
- Show quoted text -
Try to set SMTPClient's EnableSSL property to True and also see if
Port property is required to set a value if you know which port to
use.
Thanks,
Onur Güzel- Hide quoted text -
- Show quoted text -
i tried to *set the SMTPClient's EnableSSL property to True and i get
an error that the server does not support secure connections...- Hide quoted text -
- Show quoted text -
Ok.. Another possibility, do you have any firewalls turned on? Such as
Windows Firewall or Norton or McAfee, disable them temporarily and re-
test the behaviour.
Hope this helps,
Onur Güzel- Hide quoted text -
- Show quoted text -
i don't know if this is better or not... i tried a different IP
address - and am now receiving an error:
mailbiox name not allowed. the server response was: the sender is
spoofed...
i guess i am spoofing myself - but ... ideas of what i can do? - This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: jpastora |
last post by:
I'm having a strange problem with our email links on the domain :
http://www.pc350.com/ .
The problem is that when you click on an email link, the email app is
not launched until the browser...
|
by: mike |
last post by:
I have created a side application in VB.NET which reads
rows from a DB and builds an email message.
when i have a long string the the mailmessage.body or the
mailmessage, it puts in an...
|
by: Mike |
last post by:
Is there a way to determine what a user's default email client is? I
read a post from 3 years ago that said no. I guess I'm hoping
something has come along since then.
|
by: VP |
last post by:
g'day,
i am posting a problem i have encountered with creating an email using
outlook through some basic c# code. the problem arises when using
different email editors in outlook. At the moment...
|
by: supz |
last post by:
Hi,
I use the standard code given below to send an email from an ASP.NET
web form. The code executes fine but no Email is sent. All emails get
queued in the Inetpub mail queue.
I'm using my...
|
by: libsfan01 |
last post by:
Hi all!
Can anyone show me how to check and email field on a form for the
existence of these two characters.
Kind regards
Marc
|
by: RickVidallon |
last post by:
Missing or Truncated Body Text in Email Application - 2 Strange
Examples...
There is no earthly reason why this is happening!
EXAMPLES HERE:
http://65.36.227.70/actmailer/
We have a...
|
by: Steven Allport |
last post by:
I am working on processing eml email message using the email module (python
2.5), on files exported from an Outlook PST file, to extract the composite
parts of the email. In most instances this...
|
by: IGD |
last post by:
I don't know if this is the right place to post this or not. If not,
could someone direct me elsewhere where I would find more information
on how to solve my problem? Thanks!
My problem is this:...
|
by: tdw |
last post by:
Hi all,
I am trying to add a feature to our database that automates sending emails.
When entering a new order, I want the option to send an email to the company the order came from, attaching a...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |