Ask a Question related to ASP.NET General, Design and Development.
-
Bob Jones #1
Cannot send email using SMTP
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,
VisualStudio2002, VB as programing language. Our
test/development version of the web app as hosted on
our "localhost" works fine; our "Default SMTP Virtual
Server" is running (per the IIS console).
Our simple test page (EmailTest.aspx)is in a separate
project, has only a single button and we are trying to
use the following code on the EmailTest.aspx.vb:
Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click
Dim OK As New Mail.MailMessage()
OK.From = "bobjones@toad.net"
OK.Subject = "Test"
OK.Body = "Trying To Send Email"
OK.To = "bob@cookbookplus.com"
Mail.SmtpMail.SmtpServer = "localhost"
Mail.SmtpMail.Send(OK)
End Sub
The line Mail.SmtpMail.Send(OK) always throws an
exception; we always get this error:
The server rejected one or more recipient addresses. The
server response was: 550 5.7.1 Unable to relay for
[email]bob@cookbookplus.com.com[/email] .
It does not matter who the recipient is, either. We are
connected to the internet via DSL. Otherwise, everything
else related to our stuff seems to work perfectly.
Have spent way too many man hours researching help files,
MSDN KnowledgeBase, etc. No luck. I am sure we are
doing soming wrong, but have no idea what.
Our only prior experience with email code has been with
MS Access using VBA. We know this is our mistake, just do
not know how to help ourselves. Also, the web app is our
first try using ASP.net, etc. Generally, the app works
works great!
Can anyone please help; or provide a good example we can
follow?
FYI, our web site is [url]http://www.cookbookplus.com[/url]
If curious, you can see the app using
the "CookBookPlusOnTheWeb" link on the home page.
Or use
[url]http://www.cookbookplus.com/CookBookPlusOnTheWeb/LogInWeb[/url].
aspx for a direct link.
The app is hosted on a Windows Server 2003 system so
whatever we do must work with IIS 6 when we deploy.
Thank you.
Bob Jones
[email]bobjones@toad.net[/email]
[email]bob@cookbookplus.com[/email]
4106267564
Bob Jones Guest
-
SMTP email
I am trying to do a basic email with coldfusion. I set up my mail server (mail.mywebite.com) and it says that it connects successfully. When I test... -
Send mail through a secure (SSL) SMTP server.
Hi, I need to write a perl script that sends mail via a secure SMTP server. I've tried using Mail::SendEasy, but I don't think it supports SSL.... -
#25142 [Fbk->Opn]: IIS 6.0 SMTP server and mail function can't send over ~120K
ID: 25142 User updated by: sadun at isikun dot edu dot tr Reported By: sadun at isikun dot edu dot tr -Status: ... -
#25142 [NEW]: IIS 6.0 SMTP server and mail function can't send over ~120K
From: sadun at isikun dot edu dot tr Operating system: Windows Server 2003 PHP version: 4.3.3RC4 PHP Bug Type: IIS related... -
Mac OS X EMail SMTP Setting
Hey guys, I have a Mac OS X and use the Email program that came with the computer. I recently moved from Florida and removed my old Pop account... -
George Durzi #2
Re: Cannot send email using SMTP
what happens if you change
Mail.SmtpMail.SmtpServer = "localhost"
to
Mail.SmtpMail.SmtpServer = "xxx.xxx.xxx.xxx"
being the IP address
Also, I am running an IIS server that uses SMTP to send email in an
evironment where there is an exchange server. We had to setup something in
the exchange server to allow the IIS email to send SMTP mail.
I think that might be your issue.
"Bob Jones" <bobjones@toad.net> wrote in message
news:0aee01c35d2b$ef6de740$a001280a@phx.gbl...> 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,
> VisualStudio2002, VB as programing language. Our
> test/development version of the web app as hosted on
> our "localhost" works fine; our "Default SMTP Virtual
> Server" is running (per the IIS console).
>
> Our simple test page (EmailTest.aspx)is in a separate
> project, has only a single button and we are trying to
> use the following code on the EmailTest.aspx.vb:
>
> Private Sub Button1_Click(ByVal sender As System.Object,
> ByVal e As System.EventArgs) Handles Button1.Click
>
> Dim OK As New Mail.MailMessage()
> OK.From = "bobjones@toad.net"
> OK.Subject = "Test"
> OK.Body = "Trying To Send Email"
> OK.To = "bob@cookbookplus.com"
> Mail.SmtpMail.SmtpServer = "localhost"
>
> Mail.SmtpMail.Send(OK)
>
> End Sub
>
> The line Mail.SmtpMail.Send(OK) always throws an
> exception; we always get this error:
>
> The server rejected one or more recipient addresses. The
> server response was: 550 5.7.1 Unable to relay for
> [email]bob@cookbookplus.com.com[/email] .
>
> It does not matter who the recipient is, either. We are
> connected to the internet via DSL. Otherwise, everything
> else related to our stuff seems to work perfectly.
>
> Have spent way too many man hours researching help files,
> MSDN KnowledgeBase, etc. No luck. I am sure we are
> doing soming wrong, but have no idea what.
>
> Our only prior experience with email code has been with
> MS Access using VBA. We know this is our mistake, just do
> not know how to help ourselves. Also, the web app is our
> first try using ASP.net, etc. Generally, the app works
> works great!
>
> Can anyone please help; or provide a good example we can
> follow?
>
> FYI, our web site is [url]http://www.cookbookplus.com[/url]
>
> If curious, you can see the app using
> the "CookBookPlusOnTheWeb" link on the home page.
>
> Or use
> [url]http://www.cookbookplus.com/CookBookPlusOnTheWeb/LogInWeb[/url].
> aspx for a direct link.
>
> The app is hosted on a Windows Server 2003 system so
> whatever we do must work with IIS 6 when we deploy.
>
> Thank you.
> Bob Jones
> [email]bobjones@toad.net[/email]
> [email]bob@cookbookplus.com[/email]
> 4106267564
>
George Durzi Guest
-
Bob Jones #3
Re: Cannot send email using SMTP
Hi George,
Thanks for the reply; but no luck.
Tried using our IP instead of "localhost"; get this error
instead: The transport failed to connect to the server.
No Exchange Server involvement here possible either as we
do not use it at all.
I still need help.
Bob
email in an>-----Original Message-----
>what happens if you change
>Mail.SmtpMail.SmtpServer = "localhost"
>to
>Mail.SmtpMail.SmtpServer = "xxx.xxx.xxx.xxx"
>being the IP address
>
>Also, I am running an IIS server that uses SMTP to sendsetup something in>evironment where there is an exchange server. We had tomail.>the exchange server to allow the IIS email to send SMTPto>
>I think that might be your issue.
>
>"Bob Jones" <bobjones@toad.net> wrote in message
>news:0aee01c35d2b$ef6de740$a001280a@phx.gbl...>> We have developed a commercial ASP.net application
>> (personal nutrition management and tracking); we wantSystem.Object,>> send smtp email from within it.
>>
>> For our development box, we use WinXP Pro, IIS 5.5,
>> VisualStudio2002, VB as programing language. Our
>> test/development version of the web app as hosted on
>> our "localhost" works fine; our "Default SMTP Virtual
>> Server" is running (per the IIS console).
>>
>> Our simple test page (EmailTest.aspx)is in a separate
>> project, has only a single button and we are trying to
>> use the following code on the EmailTest.aspx.vb:
>>
>> Private Sub Button1_Click(ByVal sender AsThe>> ByVal e As System.EventArgs) Handles Button1.Click
>>
>> Dim OK As New Mail.MailMessage()
>> OK.From = "bobjones@toad.net"
>> OK.Subject = "Test"
>> OK.Body = "Trying To Send Email"
>> OK.To = "bob@cookbookplus.com"
>> Mail.SmtpMail.SmtpServer = "localhost"
>>
>> Mail.SmtpMail.Send(OK)
>>
>> End Sub
>>
>> The line Mail.SmtpMail.Send(OK) always throws an
>> exception; we always get this error:
>>
>> The server rejected one or more recipient addresses.are>> server response was: 550 5.7.1 Unable to relay for
>> [email]bob@cookbookplus.com.com[/email] .
>>
>> It does not matter who the recipient is, either. Weeverything>> connected to the internet via DSL. Otherwise,files,>> else related to our stuff seems to work perfectly.
>>
>> Have spent way too many man hours researching helpdo>> MSDN KnowledgeBase, etc. No luck. I am sure we are
>> doing soming wrong, but have no idea what.
>>
>> Our only prior experience with email code has been with
>> MS Access using VBA. We know this is our mistake, justour>> not know how to help ourselves. Also, the web app iscan>> first try using ASP.net, etc. Generally, the app works
>> works great!
>>
>> Can anyone please help; or provide a good example we[url]http://www.cookbookplus.com/CookBookPlusOnTheWeb/LogInWeb[/url].>> follow?
>>
>> FYI, our web site is [url]http://www.cookbookplus.com[/url]
>>
>> If curious, you can see the app using
>> the "CookBookPlusOnTheWeb" link on the home page.
>>
>> Or use
>>>>> aspx for a direct link.
>>
>> The app is hosted on a Windows Server 2003 system so
>> whatever we do must work with IIS 6 when we deploy.
>>
>> Thank you.
>> Bob Jones
>> [email]bobjones@toad.net[/email]
>> [email]bob@cookbookplus.com[/email]
>> 4106267564
>>
>
>.
>Bob Jones Guest
-
MS News \(MS LVP\) #4
Re: Cannot send email using SMTP
"mail.yourSMTPDomainNameHere.com"
"smtp.yourSMTPDomainNameHere.com"
or try blank ""
"Bob Jones" <bobjones@toad.net> wrote in message
news:0aee01c35d2b$ef6de740$a001280a@phx.gbl...> 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,
> VisualStudio2002, VB as programing language. Our
> test/development version of the web app as hosted on
> our "localhost" works fine; our "Default SMTP Virtual
> Server" is running (per the IIS console).
>
> Our simple test page (EmailTest.aspx)is in a separate
> project, has only a single button and we are trying to
> use the following code on the EmailTest.aspx.vb:
>
> Private Sub Button1_Click(ByVal sender As System.Object,
> ByVal e As System.EventArgs) Handles Button1.Click
>
> Dim OK As New Mail.MailMessage()
> OK.From = "bobjones@toad.net"
> OK.Subject = "Test"
> OK.Body = "Trying To Send Email"
> OK.To = "bob@cookbookplus.com"
> Mail.SmtpMail.SmtpServer = "localhost"
>
> Mail.SmtpMail.Send(OK)
>
> End Sub
>
> The line Mail.SmtpMail.Send(OK) always throws an
> exception; we always get this error:
>
> The server rejected one or more recipient addresses. The
> server response was: 550 5.7.1 Unable to relay for
> [email]bob@cookbookplus.com.com[/email] .
>
> It does not matter who the recipient is, either. We are
> connected to the internet via DSL. Otherwise, everything
> else related to our stuff seems to work perfectly.
>
> Have spent way too many man hours researching help files,
> MSDN KnowledgeBase, etc. No luck. I am sure we are
> doing soming wrong, but have no idea what.
>
> Our only prior experience with email code has been with
> MS Access using VBA. We know this is our mistake, just do
> not know how to help ourselves. Also, the web app is our
> first try using ASP.net, etc. Generally, the app works
> works great!
>
> Can anyone please help; or provide a good example we can
> follow?
>
> FYI, our web site is [url]http://www.cookbookplus.com[/url]
>
> If curious, you can see the app using
> the "CookBookPlusOnTheWeb" link on the home page.
>
> Or use
> [url]http://www.cookbookplus.com/CookBookPlusOnTheWeb/LogInWeb[/url].
> aspx for a direct link.
>
> The app is hosted on a Windows Server 2003 system so
> whatever we do must work with IIS 6 when we deploy.
>
> Thank you.
> Bob Jones
> [email]bobjones@toad.net[/email]
> [email]bob@cookbookplus.com[/email]
> 4106267564
>
MS News \(MS LVP\) Guest
-
George Durzi #5
Re: Cannot send email using SMTP
check every folder in your \inetpub\mailroot directory.
Is the message getting stuck there?
"Bob Jones" <bobjones@toad.net> wrote in message
news:032b01c35d30$1cebba90$a601280a@phx.gbl...> Hi George,
>
> Thanks for the reply; but no luck.
>
> Tried using our IP instead of "localhost"; get this error
> instead: The transport failed to connect to the server.
>
> No Exchange Server involvement here possible either as we
> do not use it at all.
>
> I still need help.
>
> Bob
>> email in an> >-----Original Message-----
> >what happens if you change
> >Mail.SmtpMail.SmtpServer = "localhost"
> >to
> >Mail.SmtpMail.SmtpServer = "xxx.xxx.xxx.xxx"
> >being the IP address
> >
> >Also, I am running an IIS server that uses SMTP to send> setup something in> >evironment where there is an exchange server. We had to> mail.> >the exchange server to allow the IIS email to send SMTP> to> >
> >I think that might be your issue.
> >
> >"Bob Jones" <bobjones@toad.net> wrote in message
> >news:0aee01c35d2b$ef6de740$a001280a@phx.gbl...> >> We have developed a commercial ASP.net application
> >> (personal nutrition management and tracking); we want> System.Object,> >> send smtp email from within it.
> >>
> >> For our development box, we use WinXP Pro, IIS 5.5,
> >> VisualStudio2002, VB as programing language. Our
> >> test/development version of the web app as hosted on
> >> our "localhost" works fine; our "Default SMTP Virtual
> >> Server" is running (per the IIS console).
> >>
> >> Our simple test page (EmailTest.aspx)is in a separate
> >> project, has only a single button and we are trying to
> >> use the following code on the EmailTest.aspx.vb:
> >>
> >> Private Sub Button1_Click(ByVal sender As> The> >> ByVal e As System.EventArgs) Handles Button1.Click
> >>
> >> Dim OK As New Mail.MailMessage()
> >> OK.From = "bobjones@toad.net"
> >> OK.Subject = "Test"
> >> OK.Body = "Trying To Send Email"
> >> OK.To = "bob@cookbookplus.com"
> >> Mail.SmtpMail.SmtpServer = "localhost"
> >>
> >> Mail.SmtpMail.Send(OK)
> >>
> >> End Sub
> >>
> >> The line Mail.SmtpMail.Send(OK) always throws an
> >> exception; we always get this error:
> >>
> >> The server rejected one or more recipient addresses.> are> >> server response was: 550 5.7.1 Unable to relay for
> >> [email]bob@cookbookplus.com.com[/email] .
> >>
> >> It does not matter who the recipient is, either. We> everything> >> connected to the internet via DSL. Otherwise,> files,> >> else related to our stuff seems to work perfectly.
> >>
> >> Have spent way too many man hours researching help> do> >> MSDN KnowledgeBase, etc. No luck. I am sure we are
> >> doing soming wrong, but have no idea what.
> >>
> >> Our only prior experience with email code has been with
> >> MS Access using VBA. We know this is our mistake, just> our> >> not know how to help ourselves. Also, the web app is> can> >> first try using ASP.net, etc. Generally, the app works
> >> works great!
> >>
> >> Can anyone please help; or provide a good example we> [url]http://www.cookbookplus.com/CookBookPlusOnTheWeb/LogInWeb[/url].> >> follow?
> >>
> >> FYI, our web site is [url]http://www.cookbookplus.com[/url]
> >>
> >> If curious, you can see the app using
> >> the "CookBookPlusOnTheWeb" link on the home page.
> >>
> >> Or use
> >>> >> >> aspx for a direct link.
> >>
> >> The app is hosted on a Windows Server 2003 system so
> >> whatever we do must work with IIS 6 when we deploy.
> >>
> >> Thank you.
> >> Bob Jones
> >> [email]bobjones@toad.net[/email]
> >> [email]bob@cookbookplus.com[/email]
> >> 4106267564
> >>
> >
> >.
> >
George Durzi Guest
-
MS News \(MS LVP\) #6
Re: Cannot send email using SMTP
From: [email]info@YourSMTPDomainName.com[/email] or .net or .xxx
"Bob Jones" <bobjones@toad.net> wrote in message
news:0aee01c35d2b$ef6de740$a001280a@phx.gbl...> 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,
> VisualStudio2002, VB as programing language. Our
> test/development version of the web app as hosted on
> our "localhost" works fine; our "Default SMTP Virtual
> Server" is running (per the IIS console).
>
> Our simple test page (EmailTest.aspx)is in a separate
> project, has only a single button and we are trying to
> use the following code on the EmailTest.aspx.vb:
>
> Private Sub Button1_Click(ByVal sender As System.Object,
> ByVal e As System.EventArgs) Handles Button1.Click
>
> Dim OK As New Mail.MailMessage()
> OK.From = "bobjones@toad.net"
> OK.Subject = "Test"
> OK.Body = "Trying To Send Email"
> OK.To = "bob@cookbookplus.com"
> Mail.SmtpMail.SmtpServer = "localhost"
>
> Mail.SmtpMail.Send(OK)
>
> End Sub
>
> The line Mail.SmtpMail.Send(OK) always throws an
> exception; we always get this error:
>
> The server rejected one or more recipient addresses. The
> server response was: 550 5.7.1 Unable to relay for
> [email]bob@cookbookplus.com.com[/email] .
>
> It does not matter who the recipient is, either. We are
> connected to the internet via DSL. Otherwise, everything
> else related to our stuff seems to work perfectly.
>
> Have spent way too many man hours researching help files,
> MSDN KnowledgeBase, etc. No luck. I am sure we are
> doing soming wrong, but have no idea what.
>
> Our only prior experience with email code has been with
> MS Access using VBA. We know this is our mistake, just do
> not know how to help ourselves. Also, the web app is our
> first try using ASP.net, etc. Generally, the app works
> works great!
>
> Can anyone please help; or provide a good example we can
> follow?
>
> FYI, our web site is [url]http://www.cookbookplus.com[/url]
>
> If curious, you can see the app using
> the "CookBookPlusOnTheWeb" link on the home page.
>
> Or use
> [url]http://www.cookbookplus.com/CookBookPlusOnTheWeb/LogInWeb[/url].
> aspx for a direct link.
>
> The app is hosted on a Windows Server 2003 system so
> whatever we do must work with IIS 6 when we deploy.
>
> Thank you.
> Bob Jones
> [email]bobjones@toad.net[/email]
> [email]bob@cookbookplus.com[/email]
> 4106267564
>
MS News \(MS LVP\) Guest
-
Bob Jones #7
Re: Cannot send email using SMTP
Using "" generates this error: The "SendUsing"
configuration value is invalid.
Using anything other than "localhost" will generate the
failed to connect...error msg
Thanks for trying; still at a loss.
Bobto>-----Original Message-----
>"mail.yourSMTPDomainNameHere.com"
>"smtp.yourSMTPDomainNameHere.com"
>
>or try blank ""
>
>"Bob Jones" <bobjones@toad.net> wrote in message
>news:0aee01c35d2b$ef6de740$a001280a@phx.gbl...>> We have developed a commercial ASP.net application
>> (personal nutrition management and tracking); we wantSystem.Object,>> send smtp email from within it.
>>
>> For our development box, we use WinXP Pro, IIS 5.5,
>> VisualStudio2002, VB as programing language. Our
>> test/development version of the web app as hosted on
>> our "localhost" works fine; our "Default SMTP Virtual
>> Server" is running (per the IIS console).
>>
>> Our simple test page (EmailTest.aspx)is in a separate
>> project, has only a single button and we are trying to
>> use the following code on the EmailTest.aspx.vb:
>>
>> Private Sub Button1_Click(ByVal sender AsThe>> ByVal e As System.EventArgs) Handles Button1.Click
>>
>> Dim OK As New Mail.MailMessage()
>> OK.From = "bobjones@toad.net"
>> OK.Subject = "Test"
>> OK.Body = "Trying To Send Email"
>> OK.To = "bob@cookbookplus.com"
>> Mail.SmtpMail.SmtpServer = "localhost"
>>
>> Mail.SmtpMail.Send(OK)
>>
>> End Sub
>>
>> The line Mail.SmtpMail.Send(OK) always throws an
>> exception; we always get this error:
>>
>> The server rejected one or more recipient addresses.are>> server response was: 550 5.7.1 Unable to relay for
>> [email]bob@cookbookplus.com.com[/email] .
>>
>> It does not matter who the recipient is, either. Weeverything>> connected to the internet via DSL. Otherwise,files,>> else related to our stuff seems to work perfectly.
>>
>> Have spent way too many man hours researching helpdo>> MSDN KnowledgeBase, etc. No luck. I am sure we are
>> doing soming wrong, but have no idea what.
>>
>> Our only prior experience with email code has been with
>> MS Access using VBA. We know this is our mistake, justour>> not know how to help ourselves. Also, the web app iscan>> first try using ASP.net, etc. Generally, the app works
>> works great!
>>
>> Can anyone please help; or provide a good example we[url]http://www.cookbookplus.com/CookBookPlusOnTheWeb/LogInWeb[/url].>> follow?
>>
>> FYI, our web site is [url]http://www.cookbookplus.com[/url]
>>
>> If curious, you can see the app using
>> the "CookBookPlusOnTheWeb" link on the home page.
>>
>> Or use
>>>>> aspx for a direct link.
>>
>> The app is hosted on a Windows Server 2003 system so
>> whatever we do must work with IIS 6 when we deploy.
>>
>> Thank you.
>> Bob Jones
>> [email]bobjones@toad.net[/email]
>> [email]bob@cookbookplus.com[/email]
>> 4106267564
>>
>
>.
>Bob Jones Guest



Reply With Quote

