473,404 Members | 2,170 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,404 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 19 '05 #1
6 1604
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 19 '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 19 '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 19 '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 19 '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 19 '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 19 '05 #7

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

Similar topics

1
by: Kalpesh | last post by:
Hello All, I wrote one code for sending mail by using Asp.Net+C#, My code is as follows. private void btnSend_Click(object sender, System.EventArgs e) { try { MailMessage email = new...
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...
1
by: Brent Burkart | last post by:
I have a process which used IIS SMTP to send emails. However, it looks as if everything is just being stuck in the mailroot\queue folder. Does anyone have any ideas why? Thanks, Brent
0
by: Robert Salasidis | last post by:
I am trying to get an email application working in ASP.Net I was trying to use a remote SMTP server (on my web site - but hosted by a third party), but was constantly getting the 'Could not...
0
by: cashdeskmac | last post by:
I am building a web app which is supposed to get the information from the user while offline, and then send this information once the user connects to the internet. So far, all of my e-mails are...
0
by: cashdeskmac | last post by:
I am sending e-mails from my applications using the MailMessage object, with SMTPMail.Server.Insert(0, "127.0.0.1") as the server. Sometimes it sends okay, but other times it keeps the e-mails in...
2
by: Al Wilkerson | last post by:
Does anyone know why smtp messages stay in the queue folder? Every time I send a message using my local smtp server I get no error, but I never receive the message, and the messages just stay in...
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: zamuel | last post by:
Hey everybody. I'm searching way to send a simple automated e-mail from web form. At the moment I'm using following simple code with button. private void mail_Click(object sender,...
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
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
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
tracyyun
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...
0
agi2029
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,...

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.