Check the EventLog for messages related to this. It could be that your
server cannot find the remote server by some reason. This should be written
"Leon" <penghao98@hotmail.com> wrote in message
news:89a0a7de.0407080858.5ab4fd90@posting.google.com...
> I have set relay to allow except, I am getting any errors, but for
> some reason, my email never go out, they all got into queue directory,
> so is there anything or what configuration need to be done in order to
> be able send out mails.
> (Right now I am using localhost)
> Thanks
>
> "Kristofer Gafvert" <kgafvert@NEWSilopia.com> wrote in message
news:<#Xs8f7kYEHA.1048@tk2msftngp13.phx.gbl>...
> > You must configure SMTP so that you are allowed to relay. You can do
that by
> > either allowing localhost to relay, or by passing a valid set of
> > credentials.
> >
> > To allow localhost:
> >
> > Open IIS Manager
> > Right click "Default SMTP Virtual Server" and click Properties
> > Click on the "Access" tab.
> > Click the Relay button
> > Add your IP (i think that 127.0.0.1 will work, but i'm not sure. If it
does
> > not, select the IP that is assigned to you)
> >
> > It should now work.
> >
> > --
> > Regards,
> > Kristofer Gafvert - IIS MVP
> >
http://www.ilopia.com - When you need help!
> >
> >
> > "SibAndela" <SibAndela@discussions.microsoft.com> wrote in message
> > news:03FAD5AC-9959-4696-ABEF-B132A21805AB@microsoft.com...
> > > Thanks Kristofer
> > > Going much better but now I get:
> > >
> > > The server rejected one or more recipient addresses. The server
response
> > was: 550 5.7.1 Unable to relay for aaa@bbbb.ccc
> > > Description: An unhandled exception occurred during the execution of
the
> > current web request. Please review the stack trace for more information
> > about the error and where it originated in the code.
> > >
> > > Exception Details: System.Runtime.InteropServices.COMException: The
server
> > rejected one or more recipient addresses. The server response was: 550
5.7.1
> > Unable to relay for aaa@bbbb.ccc
> > >
> > > Source Error:
> > >
> > >
> > > Line 36:
> > > Line 37: SmtpMail.SmtpServer = "localhost";
> > > Line 38: SmtpMail.Send( mm );
> > > Line 39: }
> > >
> > > Any suggestions - I suspect something in web.config needs to be set?
> > > Thanks to both of you
> > >
> > >
> > > "Kristofer Gafvert" wrote:
> > >
> > > > Hello,
> > > >
> > > > Try to add this above Send():
> > > >
> > > > SmtpMail.SmtpServer = "localhost";
> > > >
> > > > (i assume that you want to send using localhost)
> > > >
> > > > --
> > > > Regards,
> > > > Kristofer Gafvert - IIS MVP
> > > >
http://www.ilopia.com - When you need help!
> > > >
> > > >
> > > > "SibAndela" <SibAndela@discussions.microsoft.com> wrote in message
> > > > news:42200BBD-BE0F-4C58-82E2-6C0FF5B326A0@microsoft.com...
> > > > > I want to send an email from the serverside of an aspx page based
on
> > data
> > > > submitted by the client. I also need to attach a file to send to the
> > > > recipient of the email.
> > > > >
> > > > > Testing inWindows XP/ Visual Studio .Net:
> > > > > Uploading the file and saving it - no problem
> > > > > Creating and populating the MailMessage - no problem
> > > > > Attaching the file to Mail Message - No Problem
> > > > >
> > > > > SmtpMail.Send(oMM) -gives following exception.
> > > > >
> > > > > Exception Details: System.Runtime.InteropServices.COMException:
The
> > "SendUsing" configuration value is invalid.
> > > > >
> > > > > Source Error:
> > > > >
> > > > > Line 35: oMM.Attachments.Add(oMA);
> > > > > Line 36:
> > > > > Line 37: SmtpMail.Send( oMM ); <-- error line
> > > > > Line 38: }
> > > > > Line 39:
> > > > >
> > > > > Same code in windows app in works.
> > > > > How do I correct this problem.
> > > > >
> > > > > Thanks
> > > > >
> > > > > Sib Andela
> > > > >
> > > >
> > > >
> > > >