I have created a small windows app that gathers some user entered data, then
prints it to a designated printer.
A specific person then collects the prints from the printer and processes
the info contained thereon.
This all happens within an organisation and no external communication is
required whatsoever.
This works quite well, but now I have been asked to have the application
send an email to the nominated person, informing them that there is a
document on the printer to collect.
Well... it all went south from there.
This is what I have done.
Sub MailUser()
Dim obj As System.Web.Mail.SmtpMail
Dim mail As New System.Web.Mail.MailMessage()
With Mail
.To = "no**************@myaddress.com"
.From="yo*@youraddress.com"
.BodyFormat=MailFormat.Text
.Subject="Subject goes here"
.Body="This is the body of the mail"
End With
obj.SmtpServer="myserver"
obj.Send(Mail)
End Sub
No go - it was generating a CDO message error, looking a little deeper, the
inner exception is
"System.Runtime.InteropServices.COMException (0x80040213): The transport
failed to connect to the server."
I thought it may have been an smtp problem, perhaps I had the syntax of the
server wrong? I have tried every potentially viable variant that I can think
of, such as the IP, the UNC path, the smtp name, the server name etc. Same
result with all.
We are using Exchange 2003 and this mail is purely for a LAN application, no
attachments, no fancy formatting, just a small text mail, easy - or so I
thought.
Any thoughts appreciated.
We have VS .Net 2002 with .NET 1.0 SP3
Regards - Peter 9 2433
Peter,
In 80% of the situations is this an SMTP mail server problem.
You can use any SMTP mail server that has access to the outer world an can
be used by the program.
In fact is that mostly any SMTP mail server on earth as long as it is as the
sentence above. It has not to be yours although as you do it to much the
admin from that server will probably put you in his firewall.
I hope this helps a little bit.
Cor
"Peter" <Pe***@discussions.microsoft.com> schreef in bericht
news:B6**********************************@microsof t.com... I have created a small windows app that gathers some user entered data, then prints it to a designated printer. A specific person then collects the prints from the printer and processes the info contained thereon. This all happens within an organisation and no external communication is required whatsoever. This works quite well, but now I have been asked to have the application send an email to the nominated person, informing them that there is a document on the printer to collect.
Well... it all went south from there.
This is what I have done.
Sub MailUser() Dim obj As System.Web.Mail.SmtpMail Dim mail As New System.Web.Mail.MailMessage()
With Mail .To = "no**************@myaddress.com" .From="yo*@youraddress.com" .BodyFormat=MailFormat.Text .Subject="Subject goes here" .Body="This is the body of the mail" End With
obj.SmtpServer="myserver" obj.Send(Mail) End Sub
No go - it was generating a CDO message error, looking a little deeper, the inner exception is
"System.Runtime.InteropServices.COMException (0x80040213): The transport failed to connect to the server."
I thought it may have been an smtp problem, perhaps I had the syntax of the server wrong? I have tried every potentially viable variant that I can think of, such as the IP, the UNC path, the smtp name, the server name etc. Same result with all.
We are using Exchange 2003 and this mail is purely for a LAN application, no attachments, no fancy formatting, just a small text mail, easy - or so I thought.
Any thoughts appreciated.
We have VS .Net 2002 with .NET 1.0 SP3
Regards - Peter
Thanks Cor,
that certainly confirms the train of thought that I had and I am sure that
your opinion on the matter is worth considerably more than mine. I will keep
trying different things, until I can find something to make a difference -
even a different error would be helpful at this stage.
--
Regards - Peter
"Cor Ligthert [MVP]" wrote: Peter,
In 80% of the situations is this an SMTP mail server problem.
You can use any SMTP mail server that has access to the outer world an can be used by the program.
In fact is that mostly any SMTP mail server on earth as long as it is as the sentence above. It has not to be yours although as you do it to much the admin from that server will probably put you in his firewall.
I hope this helps a little bit.
Cor
"Peter" <Pe***@discussions.microsoft.com> schreef in bericht news:B6**********************************@microsof t.com...I have created a small windows app that gathers some user entered data, then prints it to a designated printer. A specific person then collects the prints from the printer and processes the info contained thereon. This all happens within an organisation and no external communication is required whatsoever. This works quite well, but now I have been asked to have the application send an email to the nominated person, informing them that there is a document on the printer to collect.
Well... it all went south from there.
This is what I have done.
Sub MailUser() Dim obj As System.Web.Mail.SmtpMail Dim mail As New System.Web.Mail.MailMessage()
With Mail .To = "no**************@myaddress.com" .From="yo*@youraddress.com" .BodyFormat=MailFormat.Text .Subject="Subject goes here" .Body="This is the body of the mail" End With
obj.SmtpServer="myserver" obj.Send(Mail) End Sub
No go - it was generating a CDO message error, looking a little deeper, the inner exception is
"System.Runtime.InteropServices.COMException (0x80040213): The transport failed to connect to the server."
I thought it may have been an smtp problem, perhaps I had the syntax of the server wrong? I have tried every potentially viable variant that I can think of, such as the IP, the UNC path, the smtp name, the server name etc. Same result with all.
We are using Exchange 2003 and this mail is purely for a LAN application, no attachments, no fancy formatting, just a small text mail, easy - or so I thought.
Any thoughts appreciated.
We have VS .Net 2002 with .NET 1.0 SP3
Regards - Peter
Peter,
I should have given you this link as well. http://www.systemnetmail.com/
I hope this helps,
Cor
"Peter" <Pe***@discussions.microsoft.com> schreef in bericht
news:B6**********************************@microsof t.com... I have created a small windows app that gathers some user entered data, then prints it to a designated printer. A specific person then collects the prints from the printer and processes the info contained thereon. This all happens within an organisation and no external communication is required whatsoever. This works quite well, but now I have been asked to have the application send an email to the nominated person, informing them that there is a document on the printer to collect.
Well... it all went south from there.
This is what I have done.
Sub MailUser() Dim obj As System.Web.Mail.SmtpMail Dim mail As New System.Web.Mail.MailMessage()
With Mail .To = "no**************@myaddress.com" .From="yo*@youraddress.com" .BodyFormat=MailFormat.Text .Subject="Subject goes here" .Body="This is the body of the mail" End With
obj.SmtpServer="myserver" obj.Send(Mail) End Sub
No go - it was generating a CDO message error, looking a little deeper, the inner exception is
"System.Runtime.InteropServices.COMException (0x80040213): The transport failed to connect to the server."
I thought it may have been an smtp problem, perhaps I had the syntax of the server wrong? I have tried every potentially viable variant that I can think of, such as the IP, the UNC path, the smtp name, the server name etc. Same result with all.
We are using Exchange 2003 and this mail is purely for a LAN application, no attachments, no fancy formatting, just a small text mail, easy - or so I thought.
Any thoughts appreciated.
We have VS .Net 2002 with .NET 1.0 SP3
Regards - Peter
Peter wrote:
<snip not connecting to smtp server> Any thoughts appreciated.
A frequent recommendation for trouble-shooting that problem is to use telnet
to connect to the smtp server:- http://www.yuki-onna.co.uk/email/smtp.html
Andrew
"Cor Ligthert [MVP]" <no************@planet.nl> schrieb: I should have given you this link as well.
http://www.systemnetmail.com/
You mean <URL:http://www.systemwebmail.net/>, didn't you?
;-)
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Herfried, http://www.systemnetmail.com/
You mean <URL:http://www.systemwebmail.net/>, didn't you?
Your thought was the same as me, however he has a new link. But on both is a
link that goes visa versa. 1.x and 2.0
:-)
Cor
"Cor Ligthert [MVP]" <no************@planet.nl> schrieb: http://www.systemnetmail.com/
You mean <URL:http://www.systemwebmail.net/>, didn't you?
Your thought was the same as me, however he has a new link. But on both is a link that goes visa versa. 1.x and 2.0
:-)
The right URL seems to be <URL:http://www.systemwebmail.com/> ;-).
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
> The right URL seems to be <URL:http://www.systemwebmail.com/> ;-).
--
You are right, accoording to the question from Peter I had better given
direct systemwebmail (that link direct in systemnetmail in the header goes
however to systemwebmail and not as is showed system.web.mail)
Cor
I ran into a similar problem using vbscript. I ended up adding the SMTP
service to the OS where the script runs and left out pointing to a different
server. That worked for me in vbscript.
Also, not sure if this pertains, but the exchange server may not have
forwarding turned on.
RK.
"Peter" <Pe***@discussions.microsoft.com> wrote in message
news:B6**********************************@microsof t.com... I have created a small windows app that gathers some user entered data, then prints it to a designated printer. A specific person then collects the prints from the printer and processes the info contained thereon. This all happens within an organisation and no external communication is required whatsoever. This works quite well, but now I have been asked to have the application send an email to the nominated person, informing them that there is a document on the printer to collect.
Well... it all went south from there.
This is what I have done.
Sub MailUser() Dim obj As System.Web.Mail.SmtpMail Dim mail As New System.Web.Mail.MailMessage()
With Mail .To = "no**************@myaddress.com" .From="yo*@youraddress.com" .BodyFormat=MailFormat.Text .Subject="Subject goes here" .Body="This is the body of the mail" End With
obj.SmtpServer="myserver" obj.Send(Mail) End Sub
No go - it was generating a CDO message error, looking a little deeper, the inner exception is
"System.Runtime.InteropServices.COMException (0x80040213): The transport failed to connect to the server."
I thought it may have been an smtp problem, perhaps I had the syntax of the server wrong? I have tried every potentially viable variant that I can think of, such as the IP, the UNC path, the smtp name, the server name etc. Same result with all.
We are using Exchange 2003 and this mail is purely for a LAN application, no attachments, no fancy formatting, just a small text mail, easy - or so I thought.
Any thoughts appreciated.
We have VS .Net 2002 with .NET 1.0 SP3
Regards - Peter This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Google Mike |
last post by:
I've got RH9 Linux with default PHP.
Is there a way to send email on Linux to an Exchange Server from PHP
and/or other tools when there is *NOT* SMTP access?
Has anyone figured out a way to...
|
by: ian |
last post by:
Hi,
I'm a newbie (oh no I can here you say.... another one...)
How can I get Python to send emails using the default windows email
client (eg outlook express)?
I thought I could just do the...
|
by: David Burson |
last post by:
Hi,
I have a VB.NET windows app that needs to automatically send a simple text
email when my users run a new version of the app for the first time. I
thought this would be simple, but after...
|
by: Bob Jones |
last post by:
We have developed a commercial ASP.net application
(personal nutrition management and tracking); we want to
send smtp email from within it.
For our development box, we use WinXP Pro, IIS 5.5,...
|
by: Gerard |
last post by:
Hello
I have created a windows service to monitor a database, it starts some
checks when a timer elapses. The checks send emails depending on their
findings. My issue is that when I created a...
|
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: shapper |
last post by:
Hello,
I am trying to send an email using Asp.Net 2.0.
I am getting the following error:
System.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The
server response was: No such...
|
by: Mahernoz |
last post by:
Can i send an email from JavaScript? Is it possible? If yes please the
code to send email using javascript...
|
by: Malli mindwave |
last post by:
Hi,
We are using the yahoowebHostiing service for my company website, In
that one screen of the SendComments/FeedBack section is there, I'm
basically dot.net develeoper ,but yahoowebhosting not...
|
by: Mike |
last post by:
I have a page with a textbox that a user can enter in mutliple email addresses such as:
user1@yahoo.com;user2@yahoo.com;user3@gmail.com;
and so on, I then have a foreach loop to get all of the...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
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...
|
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...
|
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...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
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...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |