I get various errors when I try to use email on the machine I have. XP
professional. It works fine on another machine with NT 2000 server. Below
is the code:
'BEGIN CODE
Dim oMail As New MailMessage()
With oMail
.From = "mypc@dotnet.itags.org.baxglobal.com"
.To = "ceckman@dotnet.itags.org.baxglobal.com"
.Subject = "Test SMTP"
End With
SmtpMail.Send(oMail)
'END CODE
1) I receive the following error:
The "SendUsing" configuration value is invalid.
2) If I add
SmtpMail.SmtpServer = "localhost"
A) the SMTP server is stopped, I receive the following error:
The transport failed to connect to the server
B) the SMTP server is running, I receive the following error:
Unable to relay for ceckman@dotnet.itags.org.baxglobal.com
I can enable relaying for localhost, but is this necessary? Is there an
different way for it to be coded? Thanks in advance.Hi,
have you checked these:
http://www.asp.net/Forums/ShowPost...1&PostID=268037
http://www.asp.net/Forums/ShowPost...=1&PostID=25229
They should answer your question.
--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
"Cameron Eckman" <ceckman@.baxglobal.com> wrote in message
news:OYT3zQnoDHA.2216@.TK2MSFTNGP12.phx.gbl...
> I get various errors when I try to use email on the machine I have. XP
> professional. It works fine on another machine with NT 2000 server.
Below
> is the code:
> 'BEGIN CODE
> Dim oMail As New MailMessage()
> With oMail
> .From = "mypc@.baxglobal.com"
> .To = "ceckman@.baxglobal.com"
> .Subject = "Test SMTP"
> End With
> SmtpMail.Send(oMail)
> 'END CODE
> 1) I receive the following error:
> The "SendUsing" configuration value is invalid.
> 2) If I add
> SmtpMail.SmtpServer = "localhost"
> A) the SMTP server is stopped, I receive the following error:
> The transport failed to connect to the server
> B) the SMTP server is running, I receive the following error:
> Unable to relay for ceckman@.baxglobal.com
> I can enable relaying for localhost, but is this necessary? Is there an
> different way for it to be coded? Thanks in advance.
Within IIS's Internet Service Manager (ISM) console, check the SMTP virtual
mail server settings - specifically its property pages. Most likely you
will need to assign the IP address of the machine for the virtual smtp mail
server. By default, no address is specified.
Hope this helps.
--
Peter O'Reilly
Hello,
I am attempting to send email using an ASP.NET application running on
Windows Server 2003, and I'm getting the error message:
"The transport failed to connect to the server."
I have pretty much tried every suggestion I've found thus far and I
get this error no matter what I do. I did try using the CDOSYS test
from Microsoft as a test for the smtpserver, and it'll send that way.
Here's my existing code:
Public Sub SendMail()
Dim myMailMsg As New Mail.MailMessage()
With myMailMsg
.To = "<Send to address">
.From = <"Send From Address">
.Subject = "Test message"
.Body = "This is a test."
.BodyFormat = Mail.MailFormat.Text
End With
Mail.SmtpMail.SmtpServer = "<smtp server>"
Mail.SmtpMail.Send(myMailMsg)
End Sub
For my SmtpServer, I've used localhost, smarthost, the actual value of
our corporate smtp server address - nothing changes. I always get that
error message.
Can someone please help me?
Thanks,
James
"Teemu Keiski" <joteke@.aspalliance.com> wrote in message news:<#n06ULqoDHA.3732@.tk2msftngp13.phx.gbl>...
> Hi,
> have you checked these:
> http://www.asp.net/Forums/ShowPost...1&PostID=268037
> http://www.asp.net/Forums/ShowPost...=1&PostID=25229
> They should answer your question.
> --
> Teemu Keiski
> MCP, Microsoft MVP (ASP.NET), AspInsiders member
> ASP.NET Forum Moderator, AspAlliance Columnist
>
> "Cameron Eckman" <ceckman@.baxglobal.com> wrote in message
> news:OYT3zQnoDHA.2216@.TK2MSFTNGP12.phx.gbl...
> > I get various errors when I try to use email on the machine I have. XP
> > professional. It works fine on another machine with NT 2000 server.
> Below
> > is the code:
> > 'BEGIN CODE
> > Dim oMail As New MailMessage()
> > With oMail
> > .From = "mypc@.baxglobal.com"
> > .To = "ceckman@.baxglobal.com"
> > .Subject = "Test SMTP"
> > End With
> > SmtpMail.Send(oMail)
> > 'END CODE
> > 1) I receive the following error:
> > The "SendUsing" configuration value is invalid.
> > 2) If I add
> > SmtpMail.SmtpServer = "localhost"
> > A) the SMTP server is stopped, I receive the following error:
> > The transport failed to connect to the server
> > B) the SMTP server is running, I receive the following error:
> > Unable to relay for ceckman@.baxglobal.com
> > I can enable relaying for localhost, but is this necessary? Is there an
> > different way for it to be coded? Thanks in advance.
Hi,
http://www.asp.net/Forums/ShowPost...1&PostID=268037
--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
"James" <dragonzfang@.hotmail.com> wrote in message
news:63468c52.0311111501.630b7e7f@.posting.google.c om...
> Hello,
> I am attempting to send email using an ASP.NET application running on
> Windows Server 2003, and I'm getting the error message:
> "The transport failed to connect to the server."
> I have pretty much tried every suggestion I've found thus far and I
> get this error no matter what I do. I did try using the CDOSYS test
> from Microsoft as a test for the smtpserver, and it'll send that way.
> Here's my existing code:
> Public Sub SendMail()
> Dim myMailMsg As New Mail.MailMessage()
> With myMailMsg
> .To = "<Send to address">
> .From = <"Send From Address">
> .Subject = "Test message"
> .Body = "This is a test."
> .BodyFormat = Mail.MailFormat.Text
> End With
> Mail.SmtpMail.SmtpServer = "<smtp server>"
> Mail.SmtpMail.Send(myMailMsg)
> End Sub
> For my SmtpServer, I've used localhost, smarthost, the actual value of
> our corporate smtp server address - nothing changes. I always get that
> error message.
> Can someone please help me?
> Thanks,
> James
>
> "Teemu Keiski" <joteke@.aspalliance.com> wrote in message
news:<#n06ULqoDHA.3732@.tk2msftngp13.phx.gbl>...
> > Hi,
> > have you checked these:
> > http://www.asp.net/Forums/ShowPost...1&PostID=268037
> > http://www.asp.net/Forums/ShowPost...=1&PostID=25229
> > They should answer your question.
> > --
> > Teemu Keiski
> > MCP, Microsoft MVP (ASP.NET), AspInsiders member
> > ASP.NET Forum Moderator, AspAlliance Columnist
> > "Cameron Eckman" <ceckman@.baxglobal.com> wrote in message
> > news:OYT3zQnoDHA.2216@.TK2MSFTNGP12.phx.gbl...
> > > I get various errors when I try to use email on the machine I have.
XP
> > > professional. It works fine on another machine with NT 2000 server.
> > Below
> > > is the code:
> > > > 'BEGIN CODE
> > > Dim oMail As New MailMessage()
> > > > With oMail
> > > .From = "mypc@.baxglobal.com"
> > > .To = "ceckman@.baxglobal.com"
> > > .Subject = "Test SMTP"
> > > End With
> > > > SmtpMail.Send(oMail)
> > > 'END CODE
> > > > 1) I receive the following error:
> > > The "SendUsing" configuration value is invalid.
> > > > 2) If I add
> > > SmtpMail.SmtpServer = "localhost"
> > > > A) the SMTP server is stopped, I receive the following error:
> > > The transport failed to connect to the server
> > > > B) the SMTP server is running, I receive the following error:
> > > Unable to relay for ceckman@.baxglobal.com
> > > > I can enable relaying for localhost, but is this necessary? Is there
an
> > > different way for it to be coded? Thanks in advance.
> >
Hi Teemu,
Thanks for replying, but as stated in my prior posting, I have already
tried those links with no resolution. Is there anything else I'm missing? I
even tried trapping the error (as a test, of course) to resume but I still
get the same message.
--
James Lankford
"Teemu Keiski" <joteke@.aspalliance.com> wrote in message
news:uS$ULQOqDHA.2588@.tk2msftngp13.phx.gbl...
> Hi,
> http://www.asp.net/Forums/ShowPost...1&PostID=268037
> --
> Teemu Keiski
> MCP, Microsoft MVP (ASP.NET), AspInsiders member
> ASP.NET Forum Moderator, AspAlliance Columnist
> "James" <dragonzfang@.hotmail.com> wrote in message
> news:63468c52.0311111501.630b7e7f@.posting.google.c om...
> > Hello,
> > I am attempting to send email using an ASP.NET application running on
> > Windows Server 2003, and I'm getting the error message:
> > "The transport failed to connect to the server."
> > I have pretty much tried every suggestion I've found thus far and I
> > get this error no matter what I do. I did try using the CDOSYS test
> > from Microsoft as a test for the smtpserver, and it'll send that way.
> > Here's my existing code:
> > Public Sub SendMail()
> > Dim myMailMsg As New Mail.MailMessage()
> > With myMailMsg
> > .To = "<Send to address">
> > .From = <"Send From Address">
> > .Subject = "Test message"
> > .Body = "This is a test."
> > .BodyFormat = Mail.MailFormat.Text
> > End With
> > Mail.SmtpMail.SmtpServer = "<smtp server>"
> > Mail.SmtpMail.Send(myMailMsg)
> > End Sub
> > For my SmtpServer, I've used localhost, smarthost, the actual value of
> > our corporate smtp server address - nothing changes. I always get that
> > error message.
> > Can someone please help me?
> > Thanks,
> > James
> > "Teemu Keiski" <joteke@.aspalliance.com> wrote in message
> news:<#n06ULqoDHA.3732@.tk2msftngp13.phx.gbl>...
> > > Hi,
> > > > have you checked these:
> > > http://www.asp.net/Forums/ShowPost...1&PostID=268037
> > > http://www.asp.net/Forums/ShowPost...=1&PostID=25229
> > > > They should answer your question.
> > > > --
> > > Teemu Keiski
> > > MCP, Microsoft MVP (ASP.NET), AspInsiders member
> > > ASP.NET Forum Moderator, AspAlliance Columnist
> > > > > "Cameron Eckman" <ceckman@.baxglobal.com> wrote in message
> > > news:OYT3zQnoDHA.2216@.TK2MSFTNGP12.phx.gbl...
> > > > I get various errors when I try to use email on the machine I have.
> XP
> > > > professional. It works fine on another machine with NT 2000 server.
> > > Below
> > > > is the code:
> > > > > > 'BEGIN CODE
> > > > Dim oMail As New MailMessage()
> > > > > > With oMail
> > > > .From = "mypc@.baxglobal.com"
> > > > .To = "ceckman@.baxglobal.com"
> > > > .Subject = "Test SMTP"
> > > > End With
> > > > > > SmtpMail.Send(oMail)
> > > > 'END CODE
> > > > > > 1) I receive the following error:
> > > > The "SendUsing" configuration value is invalid.
> > > > > > 2) If I add
> > > > SmtpMail.SmtpServer = "localhost"
> > > > > > A) the SMTP server is stopped, I receive the following error:
> > > > The transport failed to connect to the server
> > > > > > B) the SMTP server is running, I receive the following error:
> > > > Unable to relay for ceckman@.baxglobal.com
> > > > > > I can enable relaying for localhost, but is this necessary? Is
there
> an
> > > > different way for it to be coded? Thanks in advance.
> > > >
Within IIS's Internet Service Manager (ISM) console, check the SMTP virtual
mail server settings - specifically its property pages. Most likely you
will need to assign the IP address of the machine for the virtual smtp mail
server. By default, no address is specified.
Hope this helps.
--
Peter O'Reilly
Tuesday, March 13, 2012
SmtpMail.Send problems
Labels:
asp,
belowis,
email,
errors,
machine,
net,
server,
smtpmailsend,
various,
xpprofessional
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment