*provide port no. of mail server to the smtpclient object.*

**
*ashish

*
On Tue, Oct 14, 2008 at 8:05 PM, 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.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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