473,399 Members | 3,919 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,399 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 10113
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.