Send Email Using VB 2008 Express

R

ryguy7272

I’ve been programming in VBA for a little over 5 years now. I am brand new
to VB.NET and I am trying to learn what I can about this interesting
technology.

I found an example (online) of sending emails through .NET so I tried to
follow the example and get this little app working...I’m really struggling
here...

I went to Control Panel > Add/Remove Programs > Add/Remove Windows
Components > IIS > Details > SMTP (checked). I looked at this video:

In the Video, the instructor is talking about System.Web.dll and
System.Web.Mail, but I can’t find wither of these under my Project > Add
References. I’m working with the same Form, as seen in the video, but my
code is a little different because I couldn’t see some of the code that the
Instructor was working with. I don’t think the problem is necessarily with
the code; somehow I have to get the System.Web.dll…I think.

Anyway, maybe it is the code. Here is what I’m working with:
Imports System.Web
Imports System.Web.Mail.SmtpMail.Send

Public Class Form1

Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSend.Click
Dim mail As New MailMessage()
mail.To = txtTo.Text
mail.From = txtFrom.Text
mail.Subject = txtSubject.Text
mail.Body = txtBody.Text
SmtpMail.SmtpServer = "192.168.2.2" 'your real server goes here
SmtpMail.Send(mail)

MsgBox = ("Message Sent")
Me.Close()
End Sub
End Class

192.168.2.2 is the IP of my laptop. When I hit the ‘Send’ button absolutely
nothing happens. What am I doing worong?

Thanks so much!!
Ryan---
 
F

Family Tree Mike

ryguy7272 said:
I’ve been programming in VBA for a little over 5 years now. I am brand
new
to VB.NET and I am trying to learn what I can about this interesting
technology.

I found an example (online) of sending emails through .NET so I tried to
follow the example and get this little app working...I’m really struggling
here...

I went to Control Panel > Add/Remove Programs > Add/Remove Windows
Components > IIS > Details > SMTP (checked). I looked at this video:

In the Video, the instructor is talking about System.Web.dll and
System.Web.Mail, but I can’t find wither of these under my Project > Add
References. I’m working with the same Form, as seen in the video, but my
code is a little different because I couldn’t see some of the code that
the
Instructor was working with. I don’t think the problem is necessarily
with
the code; somehow I have to get the System.Web.dll…I think.

Anyway, maybe it is the code. Here is what I’m working with:
Imports System.Web
Imports System.Web.Mail.SmtpMail.Send

Public Class Form1

Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSend.Click
Dim mail As New MailMessage()
mail.To = txtTo.Text
mail.From = txtFrom.Text
mail.Subject = txtSubject.Text
mail.Body = txtBody.Text
SmtpMail.SmtpServer = "192.168.2.2" 'your real server goes here
SmtpMail.Send(mail)

MsgBox = ("Message Sent")
Me.Close()
End Sub
End Class

192.168.2.2 is the IP of my laptop. When I hit the ‘Send’ button
absolutely
nothing happens. What am I doing worong?

Thanks so much!!
Ryan---


What version of visual studio or vb are you using?

The System.Web namespace has been deprecated, replaced by the System.Net
namespace.

MSDN has example code you can look at for the System.Net.MailMessage class
here:
http://msdn.microsoft.com/en-us/library/system.net.mail.mailmessage.aspx
 
F

Family Tree Mike

ryguy7272 said:
I’ve been programming in VBA for a little over 5 years now. I am brand
new
to VB.NET and I am trying to learn what I can about this interesting
technology.

I found an example (online) of sending emails through .NET so I tried to
follow the example and get this little app working...I’m really struggling
here...

I went to Control Panel > Add/Remove Programs > Add/Remove Windows
Components > IIS > Details > SMTP (checked). I looked at this video:

In the Video, the instructor is talking about System.Web.dll and
System.Web.Mail, but I can’t find wither of these under my Project > Add
References. I’m working with the same Form, as seen in the video, but my
code is a little different because I couldn’t see some of the code that
the
Instructor was working with. I don’t think the problem is necessarily
with
the code; somehow I have to get the System.Web.dll…I think.

Anyway, maybe it is the code. Here is what I’m working with:
Imports System.Web
Imports System.Web.Mail.SmtpMail.Send

Public Class Form1

Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSend.Click
Dim mail As New MailMessage()
mail.To = txtTo.Text
mail.From = txtFrom.Text
mail.Subject = txtSubject.Text
mail.Body = txtBody.Text
SmtpMail.SmtpServer = "192.168.2.2" 'your real server goes here
SmtpMail.Send(mail)

MsgBox = ("Message Sent")
Me.Close()
End Sub
End Class

192.168.2.2 is the IP of my laptop. When I hit the ‘Send’ button
absolutely
nothing happens. What am I doing worong?

Thanks so much!!
Ryan---


What version of visual studio or vb are you using?

The System.Web namespace has been deprecated, replaced by the System.Net
namespace.

MSDN has example code you can look at for the System.Net.MailMessage class
here:
http://msdn.microsoft.com/en-us/library/system.net.mail.mailmessage.aspx
 
R

ryguy7272

thanks for the follow up Family Tree Mike. This stuff is HARD!! I am using
VB.NET 2008 Express Edition. I found System.Net and added it. Now, I have
four errors (in the Error List).
Error 1 Type 'MailMessage' is not defined.

Error 2 Name 'SmtpMail' is not declared.

Error 3 Name 'SmtpMail' is not declared.

Error 4 Argument not specified for parameter 'Prompt' of 'Public Function
MsgBox(Prompt As Object, [Buttons As Microsoft.VisualBasic.MsgBoxStyle =
MsgBoxStyle.DefaultButton1], [Title As Object = Nothing]) As
Microsoft.VisualBasic.MsgBoxResult'.

I did away with the Imports; code is now:
Public Class Form1

Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSend.Click
Dim mail As New MailMessage()
mail.To = txtTo.Text
mail.From = txtFrom.Text
mail.Subject = txtSubject.Text
mail.Body = txtBody.Text
SmtpMail.SmtpServer = "192.168.2.2" 'your real server goes here
SmtpMail.Send(mail)

MsgBox = ("Message Sent")
Me.Close()
End Sub
End Class

Any thoughts? Does anyone know of any working sample that can be
downloaded. I could be making a very simple mistake, but may not be be aware
of it because I am so new to this stuff.

Thanks,
Ryan---
 
R

ryguy7272

thanks for the follow up Family Tree Mike. This stuff is HARD!! I am using
VB.NET 2008 Express Edition. I found System.Net and added it. Now, I have
four errors (in the Error List).
Error 1 Type 'MailMessage' is not defined.

Error 2 Name 'SmtpMail' is not declared.

Error 3 Name 'SmtpMail' is not declared.

Error 4 Argument not specified for parameter 'Prompt' of 'Public Function
MsgBox(Prompt As Object, [Buttons As Microsoft.VisualBasic.MsgBoxStyle =
MsgBoxStyle.DefaultButton1], [Title As Object = Nothing]) As
Microsoft.VisualBasic.MsgBoxResult'.

I did away with the Imports; code is now:
Public Class Form1

Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSend.Click
Dim mail As New MailMessage()
mail.To = txtTo.Text
mail.From = txtFrom.Text
mail.Subject = txtSubject.Text
mail.Body = txtBody.Text
SmtpMail.SmtpServer = "192.168.2.2" 'your real server goes here
SmtpMail.Send(mail)

MsgBox = ("Message Sent")
Me.Close()
End Sub
End Class

Any thoughts? Does anyone know of any working sample that can be
downloaded. I could be making a very simple mistake, but may not be be aware
of it because I am so new to this stuff.

Thanks,
Ryan---
 
F

Family Tree Mike

ryguy7272 said:
thanks for the follow up Family Tree Mike. This stuff is HARD!! I am
using
VB.NET 2008 Express Edition. I found System.Net and added it. Now, I
have
four errors (in the Error List).
Error 1 Type 'MailMessage' is not defined.

Error 2 Name 'SmtpMail' is not declared.

Error 3 Name 'SmtpMail' is not declared.

Error 4 Argument not specified for parameter 'Prompt' of 'Public Function
MsgBox(Prompt As Object, [Buttons As Microsoft.VisualBasic.MsgBoxStyle =
MsgBoxStyle.DefaultButton1], [Title As Object = Nothing]) As
Microsoft.VisualBasic.MsgBoxResult'.

I did away with the Imports; code is now:
Public Class Form1

Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSend.Click
Dim mail As New MailMessage()
mail.To = txtTo.Text
mail.From = txtFrom.Text
mail.Subject = txtSubject.Text
mail.Body = txtBody.Text
SmtpMail.SmtpServer = "192.168.2.2" 'your real server goes here
SmtpMail.Send(mail)

MsgBox = ("Message Sent")
Me.Close()
End Sub
End Class

Any thoughts? Does anyone know of any working sample that can be
downloaded. I could be making a very simple mistake, but may not be be
aware
of it because I am so new to this stuff.

Thanks,
Ryan---
The following should work:

Imports System.Net
Imports System.Net.Mail
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim mail As New MailMessage(txtTo.Text, txtFrom.Text,
txtSubject.Text, txtBody.Text)
Dim client As New SmtpClient("192.168.2.2")
client.Credentials = CredentialCache.DefaultNetworkCredentials
client.Send(mail)
MessageBox.Show("Message Sent")
End Sub
End Class
 
F

Family Tree Mike

ryguy7272 said:
thanks for the follow up Family Tree Mike. This stuff is HARD!! I am
using
VB.NET 2008 Express Edition. I found System.Net and added it. Now, I
have
four errors (in the Error List).
Error 1 Type 'MailMessage' is not defined.

Error 2 Name 'SmtpMail' is not declared.

Error 3 Name 'SmtpMail' is not declared.

Error 4 Argument not specified for parameter 'Prompt' of 'Public Function
MsgBox(Prompt As Object, [Buttons As Microsoft.VisualBasic.MsgBoxStyle =
MsgBoxStyle.DefaultButton1], [Title As Object = Nothing]) As
Microsoft.VisualBasic.MsgBoxResult'.

I did away with the Imports; code is now:
Public Class Form1

Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSend.Click
Dim mail As New MailMessage()
mail.To = txtTo.Text
mail.From = txtFrom.Text
mail.Subject = txtSubject.Text
mail.Body = txtBody.Text
SmtpMail.SmtpServer = "192.168.2.2" 'your real server goes here
SmtpMail.Send(mail)

MsgBox = ("Message Sent")
Me.Close()
End Sub
End Class

Any thoughts? Does anyone know of any working sample that can be
downloaded. I could be making a very simple mistake, but may not be be
aware
of it because I am so new to this stuff.

Thanks,
Ryan---
The following should work:

Imports System.Net
Imports System.Net.Mail
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim mail As New MailMessage(txtTo.Text, txtFrom.Text,
txtSubject.Text, txtBody.Text)
Dim client As New SmtpClient("192.168.2.2")
client.Credentials = CredentialCache.DefaultNetworkCredentials
client.Send(mail)
MessageBox.Show("Message Sent")
End Sub
End Class
 
R

ryguy7272

No errors in Error List, but I got this message when the code fired:
SMTPFailedRecipientException was unhandled
Mailbox unavailable. The server was: 5.7.1 Unable to relay

This line is now yellow:
client.Send(mail)

Any thoughts on that? Another Reference maybe?

Thanks again,
Ryan---


--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


Family Tree Mike said:
ryguy7272 said:
thanks for the follow up Family Tree Mike. This stuff is HARD!! I am
using
VB.NET 2008 Express Edition. I found System.Net and added it. Now, I
have
four errors (in the Error List).
Error 1 Type 'MailMessage' is not defined.

Error 2 Name 'SmtpMail' is not declared.

Error 3 Name 'SmtpMail' is not declared.

Error 4 Argument not specified for parameter 'Prompt' of 'Public Function
MsgBox(Prompt As Object, [Buttons As Microsoft.VisualBasic.MsgBoxStyle =
MsgBoxStyle.DefaultButton1], [Title As Object = Nothing]) As
Microsoft.VisualBasic.MsgBoxResult'.

I did away with the Imports; code is now:
Public Class Form1

Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSend.Click
Dim mail As New MailMessage()
mail.To = txtTo.Text
mail.From = txtFrom.Text
mail.Subject = txtSubject.Text
mail.Body = txtBody.Text
SmtpMail.SmtpServer = "192.168.2.2" 'your real server goes here
SmtpMail.Send(mail)

MsgBox = ("Message Sent")
Me.Close()
End Sub
End Class

Any thoughts? Does anyone know of any working sample that can be
downloaded. I could be making a very simple mistake, but may not be be
aware
of it because I am so new to this stuff.

Thanks,
Ryan---
The following should work:

Imports System.Net
Imports System.Net.Mail
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim mail As New MailMessage(txtTo.Text, txtFrom.Text,
txtSubject.Text, txtBody.Text)
Dim client As New SmtpClient("192.168.2.2")
client.Credentials = CredentialCache.DefaultNetworkCredentials
client.Send(mail)
MessageBox.Show("Message Sent")
End Sub
End Class
 
R

ryguy7272

No errors in Error List, but I got this message when the code fired:
SMTPFailedRecipientException was unhandled
Mailbox unavailable. The server was: 5.7.1 Unable to relay

This line is now yellow:
client.Send(mail)

Any thoughts on that? Another Reference maybe?

Thanks again,
Ryan---


--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


Family Tree Mike said:
ryguy7272 said:
thanks for the follow up Family Tree Mike. This stuff is HARD!! I am
using
VB.NET 2008 Express Edition. I found System.Net and added it. Now, I
have
four errors (in the Error List).
Error 1 Type 'MailMessage' is not defined.

Error 2 Name 'SmtpMail' is not declared.

Error 3 Name 'SmtpMail' is not declared.

Error 4 Argument not specified for parameter 'Prompt' of 'Public Function
MsgBox(Prompt As Object, [Buttons As Microsoft.VisualBasic.MsgBoxStyle =
MsgBoxStyle.DefaultButton1], [Title As Object = Nothing]) As
Microsoft.VisualBasic.MsgBoxResult'.

I did away with the Imports; code is now:
Public Class Form1

Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSend.Click
Dim mail As New MailMessage()
mail.To = txtTo.Text
mail.From = txtFrom.Text
mail.Subject = txtSubject.Text
mail.Body = txtBody.Text
SmtpMail.SmtpServer = "192.168.2.2" 'your real server goes here
SmtpMail.Send(mail)

MsgBox = ("Message Sent")
Me.Close()
End Sub
End Class

Any thoughts? Does anyone know of any working sample that can be
downloaded. I could be making a very simple mistake, but may not be be
aware
of it because I am so new to this stuff.

Thanks,
Ryan---
The following should work:

Imports System.Net
Imports System.Net.Mail
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim mail As New MailMessage(txtTo.Text, txtFrom.Text,
txtSubject.Text, txtBody.Text)
Dim client As New SmtpClient("192.168.2.2")
client.Credentials = CredentialCache.DefaultNetworkCredentials
client.Send(mail)
MessageBox.Show("Message Sent")
End Sub
End Class
 
R

RyGuy

What is the 'outgoing email server'? Maybe that's the problem. AFAIK, my
'server' is my laptop. I put in my own email address, in the From and To
TextBoxes, and that's all. Maybe it has to do with the IP? I just typed
ipconfig into the cmd window and got the IP from there.

I don't know enough about this to troubleshoot extensively. It seems like
it should be working, but it 's not. Do you have any more ideas?

Thanks for everything,
Ryan---




Family Tree Mike said:
ryguy7272 said:
No errors in Error List, but I got this message when the code fired:
SMTPFailedRecipientException was unhandled
Mailbox unavailable. The server was: 5.7.1 Unable to relay

This line is now yellow:
client.Send(mail)

Any thoughts on that? Another Reference maybe?

Thanks again,
Ryan---


--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


Family Tree Mike said:
thanks for the follow up Family Tree Mike. This stuff is HARD!! I am
using
VB.NET 2008 Express Edition. I found System.Net and added it. Now, I
have
four errors (in the Error List).
Error 1 Type 'MailMessage' is not defined.

Error 2 Name 'SmtpMail' is not declared.

Error 3 Name 'SmtpMail' is not declared.

Error 4 Argument not specified for parameter 'Prompt' of 'Public
Function
MsgBox(Prompt As Object, [Buttons As Microsoft.VisualBasic.MsgBoxStyle
=
MsgBoxStyle.DefaultButton1], [Title As Object = Nothing]) As
Microsoft.VisualBasic.MsgBoxResult'.

I did away with the Imports; code is now:
Public Class Form1

Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSend.Click
Dim mail As New MailMessage()
mail.To = txtTo.Text
mail.From = txtFrom.Text
mail.Subject = txtSubject.Text
mail.Body = txtBody.Text
SmtpMail.SmtpServer = "192.168.2.2" 'your real server goes here
SmtpMail.Send(mail)

MsgBox = ("Message Sent")
Me.Close()
End Sub
End Class

Any thoughts? Does anyone know of any working sample that can be
downloaded. I could be making a very simple mistake, but may not be be
aware
of it because I am so new to this stuff.

Thanks,
Ryan---


The following should work:

Imports System.Net
Imports System.Net.Mail
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim mail As New MailMessage(txtTo.Text, txtFrom.Text,
txtSubject.Text, txtBody.Text)
Dim client As New SmtpClient("192.168.2.2")
client.Credentials = CredentialCache.DefaultNetworkCredentials
client.Send(mail)
MessageBox.Show("Message Sent")
End Sub
End Class

It works when I substitute my outgoing email server. Are your sure of the
recipient's address? That is where the error indicates the issue is.
 
R

RyGuy

What is the 'outgoing email server'? Maybe that's the problem. AFAIK, my
'server' is my laptop. I put in my own email address, in the From and To
TextBoxes, and that's all. Maybe it has to do with the IP? I just typed
ipconfig into the cmd window and got the IP from there.

I don't know enough about this to troubleshoot extensively. It seems like
it should be working, but it 's not. Do you have any more ideas?

Thanks for everything,
Ryan---




Family Tree Mike said:
ryguy7272 said:
No errors in Error List, but I got this message when the code fired:
SMTPFailedRecipientException was unhandled
Mailbox unavailable. The server was: 5.7.1 Unable to relay

This line is now yellow:
client.Send(mail)

Any thoughts on that? Another Reference maybe?

Thanks again,
Ryan---


--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


Family Tree Mike said:
thanks for the follow up Family Tree Mike. This stuff is HARD!! I am
using
VB.NET 2008 Express Edition. I found System.Net and added it. Now, I
have
four errors (in the Error List).
Error 1 Type 'MailMessage' is not defined.

Error 2 Name 'SmtpMail' is not declared.

Error 3 Name 'SmtpMail' is not declared.

Error 4 Argument not specified for parameter 'Prompt' of 'Public
Function
MsgBox(Prompt As Object, [Buttons As Microsoft.VisualBasic.MsgBoxStyle
=
MsgBoxStyle.DefaultButton1], [Title As Object = Nothing]) As
Microsoft.VisualBasic.MsgBoxResult'.

I did away with the Imports; code is now:
Public Class Form1

Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSend.Click
Dim mail As New MailMessage()
mail.To = txtTo.Text
mail.From = txtFrom.Text
mail.Subject = txtSubject.Text
mail.Body = txtBody.Text
SmtpMail.SmtpServer = "192.168.2.2" 'your real server goes here
SmtpMail.Send(mail)

MsgBox = ("Message Sent")
Me.Close()
End Sub
End Class

Any thoughts? Does anyone know of any working sample that can be
downloaded. I could be making a very simple mistake, but may not be be
aware
of it because I am so new to this stuff.

Thanks,
Ryan---


The following should work:

Imports System.Net
Imports System.Net.Mail
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim mail As New MailMessage(txtTo.Text, txtFrom.Text,
txtSubject.Text, txtBody.Text)
Dim client As New SmtpClient("192.168.2.2")
client.Credentials = CredentialCache.DefaultNetworkCredentials
client.Send(mail)
MessageBox.Show("Message Sent")
End Sub
End Class

It works when I substitute my outgoing email server. Are your sure of the
recipient's address? That is where the error indicates the issue is.
 
C

Cor Ligthert[MVP]

Rguy,

To use SMTP mail you have to activate that in the program and feature
setting (in fact the features)

Be aware that the web.mail version is deprecated, use this one instead

http://msdn.microsoft.com/en-us/library/system.net.mail.aspx

Be aware that you can use your local host (IP address 127.0.0.1) as a server
or the mail.server from your provider, mostly those don't like that.

But don't use a leased IP address on your computer from by instance the 192
range, this can be given by any router in a dynamic way.

Cor
 
C

Cor Ligthert[MVP]

Rguy,

To use SMTP mail you have to activate that in the program and feature
setting (in fact the features)

Be aware that the web.mail version is deprecated, use this one instead

http://msdn.microsoft.com/en-us/library/system.net.mail.aspx

Be aware that you can use your local host (IP address 127.0.0.1) as a server
or the mail.server from your provider, mostly those don't like that.

But don't use a leased IP address on your computer from by instance the 192
range, this can be given by any router in a dynamic way.

Cor
 
R

ryguy7272

Welcome to the party Cor. I think you’re right; I think it has something to
do with the SMTP. I’m still missing something here but I can’t tell what it
is. Can you please walk me through the process, step by step? You said that
I need to, ‘activate SMTP in the program and feature setting’. What does
this mean? I did some research on this for about an hour today and made
almost no progress on this. I guess ‘web.mail version is deprecated’. What
does that mean? How do I give my 192.xxx IP address in a dynamic way? What
do I click on? What are the steps? I have 5 .NET books, and none of them
discuss the topic of sending emails via SMTP. I am delighted to be learning
this stuff, but I seem to have hit a wall, and I don’t know what to do next.

Any and all help is greatly appreciated.
Ryan---
 
R

ryguy7272

Welcome to the party Cor. I think you’re right; I think it has something to
do with the SMTP. I’m still missing something here but I can’t tell what it
is. Can you please walk me through the process, step by step? You said that
I need to, ‘activate SMTP in the program and feature setting’. What does
this mean? I did some research on this for about an hour today and made
almost no progress on this. I guess ‘web.mail version is deprecated’. What
does that mean? How do I give my 192.xxx IP address in a dynamic way? What
do I click on? What are the steps? I have 5 .NET books, and none of them
discuss the topic of sending emails via SMTP. I am delighted to be learning
this stuff, but I seem to have hit a wall, and I don’t know what to do next.

Any and all help is greatly appreciated.
Ryan---
 
A

Andrew Morton

ryguy7272 said:
Welcome to the party Cor. I think you're right; I think it has
something to do with the SMTP. I'm still missing something here but
I can't tell what it is.

Use the SMTP server settings from whatever program you use for your email.

E.g, in Outlook Express, you'd look in Tools->Accounts->Mail tab->choose
your email account->Properties->Servers tab and look at the Outgoing Mail
settings.

You /could/ set up the SMTP server in IIS, but you'd still need the above
details to set up a smart host anyway, and you're adding one more level of
things to go wrong.

Andrew
 
A

Andrew Morton

ryguy7272 said:
Welcome to the party Cor. I think you're right; I think it has
something to do with the SMTP. I'm still missing something here but
I can't tell what it is.

Use the SMTP server settings from whatever program you use for your email.

E.g, in Outlook Express, you'd look in Tools->Accounts->Mail tab->choose
your email account->Properties->Servers tab and look at the Outgoing Mail
settings.

You /could/ set up the SMTP server in IIS, but you'd still need the above
details to set up a smart host anyway, and you're adding one more level of
things to go wrong.

Andrew
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top