Thanks for Your reply.

No, according to the people responsible for our mail server it does
not have any restrictions on it that should deny Vista messages.
I can send messages from Outlook on my Vista machine.

On 14 Okt, 19:17, Glenn <[EMAIL PROTECTED]> wrote:
> Does the mail server have any restrictions as to who can send messages?  It
> looks like the server is rejecting the connection because it thinks that
> your Vista box is not allowed to send messages through it.
>
> ...Glenn
>
>
>
> On Tue, Oct 14, 2008 at 10:35 AM, peraSKK <[EMAIL PROTECTED]> wrote:
>
> > I'm having a problem migrating my applicattion from XP to Vista.
>
> > When I run this code in XP it works perfectly OK and sends the mail.
> > When I run it on a Vista machine it gives me this message:
> > Syntax error in parameters or arguments. The server response was:
> > 5.5.4 Invalid Address
>
> > The code
> >       Try
> >            Dim mail As New System.Net.Mail.MailMessage()
> >            mail.From = New System.Net.Mail.MailAddress(my e-mail on
> > our mail-server)
> >            mail.To.Add(my e-mail on our mail-server)
> >            mail.Subject = "This is an email"
> >            mail.Body = "this is the body content of the email."
> >            Dim smtp As New System.Net.Mail.SmtpClient(ip-address of
> > the our mail-server)
> >            smtp.Send(mail)          '<--- here it gets an error
> >        Catch ex As Exception
> >            Dim xxx As String = ex.Message
> >        End Try
>
> > The From and To addresses are the same because I want users to e-mail
> > me when something goes wrong in the application.- Dölj citerad text -
>
> - Visa citerad text -

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web 
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/DotNetDevelopment

You may subscribe to group Feeds using a RSS Feed Reader to stay upto date 
using following url  

<a href="http://feeds.feedburner.com/DotNetDevelopment";> 
http://feeds.feedburner.com/DotNetDevelopment</a>
-~----------~----~----~----~------~----~------~--~---

Reply via email to