473,320 Members | 2,094 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.

SmtpMail.Send not working. Held in Mailroot/Queue folder.

rh
I am not able to send email using SmtpMail.Send. I imagine that it is a
configuration issue. I see that the emails that I attempt to send are in the
Mailroot/Queue folder but they never actually get sent. I have an anti-virus
program that I disabled but it still doesn't work.

I also know that we have a spam filtering program called AppRiver SpamLab.
Could it be this?

Any suggestions? Thanks.
Nov 21 '05 #1
6 10107
RH,

Some parts of your message bring me in doubt that you are using Smtp mail.
Can you show a little piece of code.

Cor
Nov 21 '05 #2
rh
Thanks for any assistance. Here is part of the code:

Dim loMail As New MailMessage()

loMail.From = "Fr*******@yahoo.com"

loMail.To = "To*****@yahoo.com"

loMail.Subject = "Test Email Subject"

loMail.Body = "Test Email Body"

loMail.BodyFormat = MailFormat.Html

SmtpMail.SmtpServer = "localhost"

SmtpMail.Send(loMail)
"Cor Ligthert" <no************@planet.nl> wrote in message
news:up**************@TK2MSFTNGP09.phx.gbl...
RH,

Some parts of your message bring me in doubt that you are using Smtp mail.
Can you show a little piece of code.

Cor

Nov 21 '05 #3
Rh,

That "localhost" is has to be an mailserver by instance IIS mailserver.

In this situation it will work only on your test environment when you have a
mailserver installed on that.

It has to be an dns name or an ip adres from a real smtp mailserver.

Cor
Nov 21 '05 #4
rh
Here is more info: I just checked the Event Viewer-->System and it show a
Warning that says:

"Message delivery to the remote domain 'yahoo.com' failed for the following
reason: The remote server did not respond to a connection attempt."
"Cor Ligthert" <no************@planet.nl> wrote in message
news:up**************@TK2MSFTNGP09.phx.gbl...
RH,

Some parts of your message bring me in doubt that you are using Smtp mail.
Can you show a little piece of code.

Cor

Nov 21 '05 #5
rh
That was it. Thanks!

"Cor Ligthert" <no************@planet.nl> wrote in message
news:eH**************@tk2msftngp13.phx.gbl...
Rh,

That "localhost" is has to be an mailserver by instance IIS mailserver.

In this situation it will work only on your test environment when you have
a mailserver installed on that.

It has to be an dns name or an ip adres from a real smtp mailserver.

Cor

Nov 21 '05 #6
I know you already have this solved, but for others out there who might be
experiencing the same trouble, a little more info:

I am going under the assumption here that maybe you are using an ISP who
blocks direct SMTP connections.

When you were using Localhost, you said it got to your mail queue, so that
means the local IIS SMTP host is indeed up and running. IIS can only
deliver how it is configured to deliver, so without a smart host, IIS will
attempt direct delivery. In other words, if you send a message to
yahoo.com, IIS will attempt an outbound connection on port 25 (SMTP)
directly to Yahoo!'s mail servers. As soon as you put in your ISP's mail
server into SmtpMail.SmtpServer, it started connecting through your ISP and
thus the email got through. The other alternative in this scenario is to
configure IIS to use your ISP as a smart host (in Internet Services Manager,
right click Default SMTP Virtual Server, hit properties and under the
advanced button on the delivery tab, you can put your ISP's mail server in
that box.

HTH

"rh" <rh******@smci.com> wrote in message
news:OH****************@TK2MSFTNGP10.phx.gbl...
Here is more info: I just checked the Event Viewer-->System and it show a
Warning that says:

"Message delivery to the remote domain 'yahoo.com' failed for the following reason: The remote server did not respond to a connection attempt."
"Cor Ligthert" <no************@planet.nl> wrote in message
news:up**************@TK2MSFTNGP09.phx.gbl...
RH,

Some parts of your message bring me in doubt that you are using Smtp mail. Can you show a little piece of code.

Cor


Nov 21 '05 #7

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

Similar topics

3
by: Salim Afþar | last post by:
Hi, I'm using CDO object to send email but it doesn't send any email and it does not give an error. My code look like this: Dim iMsg2 Dim iConf2 Dim Flds2 Const cdoSendUsingPort = 2 set...
6
by: rh | last post by:
I am not able to send email using SmtpMail.Send. I imagine that it is a configuration issue. I see that the emails that I attempt to send are in the Mailroot/Queue folder but they never actually...
8
by: Jason | last post by:
Hi not sure if this is the write place, but i really need some help with this...! I have a piece of code that sends email using the SmtpMail class, in an ASP.NET web application, with...
3
by: Renato Giron | last post by:
I am trying to use an aspx page to send email using the smtpMail class and my smtp server . When I click send but when I check my inbox no messages appear. The page doesn't give any errors. I doble...
9
by: Kevin Spencer | last post by:
We just moved an ASP.Net app to a Windows 2003 Server, and the SMTPMail fails now with the following message: System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr,...
2
by: Edward | last post by:
Hello, everybody, I tried to send Email out using ASP.NET, but failed, here is the code of sending: -------------------------------------------------------------------------------- Try...
1
by: Bazza Formez | last post by:
Hi, This question undoubtedly shows a great lack of knowledge on my part, but here goes. I am developing my first ASp.NET app, and in one part, I need to send an email. It seems that I can...
19
by: zdrakec | last post by:
Hello all: Using an "Imports System.Web.Mail" clause at the head of my module, and after executing the following code: Dim msg As New MailMessage msg.From = sender msg.To = recipient...
14
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...
1
by: rag84dec | last post by:
Hi, THe mail sent through the ASP code given below is going to "Queue" folder in "C:\Inetpub\mailroot"...And the code is Set objMessage = CreateObject("CDO.Message") objMessage.Subject =...
0
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...
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 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
0
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 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.