Re: Send Mail on local machine

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: SibAndela (SibAndela_at_discussions.microsoft.com)
Date: 07/03/04


Date: Fri, 2 Jul 2004 22:57:01 -0700

I have same problem on my local PC.
Can send from Windows App but not from aspx.cs. Here I get same error.
What needs to be done to SMTP setting and how?

Thanks
------------------------

"Curt_C [MVP]" wrote:

> is SMTP setup and running on your local pc?
> Otherwise, set it to the server name in the SmtpServer value
>
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> www.Darkfalz.com
>
>
> "Steven K" <skaper@troop.com> wrote in message
> news:O$eC9mxJEHA.428@TK2MSFTNGP11.phx.gbl...
> > Hello,
> >
> > I am using the following to send mail. It works on my web server, but not
> > on my personal machine (which is running ASP.Net). I tried setting
> > SmtpMail.SmtpServer to "", but get the following error:
> > System.Runtime.InteropServices.COMException: The "SendUsing" configuration
> > value is invalid.
> >
> > I then tried using: SmtpMail.SmtpServer to "localhost", and got the
> > following: System.Runtime.InteropServices.COMException: The server
> rejected
> > one or more recipient addresses. The server response was: 550 5.7.1 Unable
> > to relay for myhandle@lu.com
> >
> > Any help with this would be appreciated.
> >
> > Sub SendMail()
> > Dim objMM as New MailMessage()
> > objMM.To = myhandle@lu.com
> > objMM.From = tbxHandle.Text & "@lucent.com"
> > objMM.BodyFormat = MailFormat.Text
> > objMM.Priority = MailPriority.Normal
> > objMM.Subject = "ASP.Net CI Confirimation Test"
> > objMM.Body = tbxHandle.Text & " has submitted form"
> > SmtpMail.SmtpServer = ""
> > SmtpMail.Send(objMM)
> > End Sub
> >
> > --
> > Thanks in advance,
> >
> > Steven
> >
> >
>
>
>