|
-
Feb 14th, 2003, 12:49 PM
#1
Thread Starter
Sleep mode
STMP Server !
Is there any default stmp server for sending message all over the net ?? I'm using this SmtpMail "www.digitalims.net" but it's not sending the message.raise an error on the line
myMailServer.SmtpServer = "www.digitalims.net"
any ideas ?
-
Feb 14th, 2003, 05:44 PM
#2
Thread Starter
Sleep mode
-
Feb 15th, 2003, 09:25 AM
#3
Thread Starter
Sleep mode
-
Feb 15th, 2003, 09:54 AM
#4
Member
Re: STMP Server !
Originally posted by Pirate
Is there any default stmp server for sending message all over the net ?? I'm using this SmtpMail "www.digitalims.net" but it's not sending the message.raise an error on the line
myMailServer.SmtpServer = "www.digitalims.net"
any ideas ?
I have the same problem. I send the message with SMTP server that I have at work, but when I try to do the same using the SMTP server of my Web e-mail provider I am getting message that the user is not Authenticated.
In order to send email, you must set your email software to use authentication when connecting to
the outgoing mail server.
I am using SystemWeb.dll and setting the mail object like
Dim oMail As MailMessage
oMail = New MailMessage()
But I cannot find the property of this object to send the name and pwd.
Did somebody solved this problem?
-
Feb 15th, 2003, 10:03 AM
#5
Junior Member
I use my own mail server to send out everything.
That is probably the best way to go, because then you can have total control over the funtionality.
I am presently using Visnetic Mailserver from Deerfield.com. It is the most stable mail server I have tried and I spent a great deal of time searching for one.
-korendir
-
Feb 15th, 2003, 10:11 AM
#6
Thread Starter
Sleep mode
I want to use MS's mailserver .Is this possible ?
-
Feb 15th, 2003, 12:52 PM
#7
Thread Starter
Sleep mode
I think I need something like this one here
according to this site I a user can uses his ISP'S smtp server for sending msgs .How can I detect this local stmp in vb.net ??
thanx for any help
-
Feb 15th, 2003, 02:00 PM
#8
Junior Member
The MS SMTP server should work fine.
The SmtpMail class should automatically send to the local server. if you need to specifiy the server set the SmtpMail.SmtpServer property to 127.0.0.1.
-korendir
-
Feb 15th, 2003, 02:19 PM
#9
Thread Starter
Sleep mode
It says (Couldn't access 'CDO.message' Object ) .This error message shows after 2 or 3 seconds .What the hell does it mean ?
-
Feb 15th, 2003, 02:23 PM
#10
Thread Starter
Sleep mode
This is the code I'm using .It seems everything need is there but
VB Code:
Private Function EmailCust()
Dim myMessage As New System.Web.Mail.MailMessage()
Dim myMailServer As System.Web.Mail.SmtpMail
myMessage.To = TextBox1.Text
myMessage.From = TextBox2.Text
myMessage.Subject = TextBox3.Text
myMessage.Body = TextBox4.Text
' myMailServer.SmtpServer = "www.digitalims.net"
myMailServer.SmtpServer = "127.0.0.1"
Try
'the error occures here
myMailServer.Send(myMessage)
Catch x As Exception
MsgBox(x.Message)
End Try
myMessage = Nothing
End Function
Private Sub Button1_Click(ByVal sender As System.Object _
, ByVal e As System.EventArgs) Handles Button1.Click
EmailCust()
End Sub
-
Feb 17th, 2003, 03:29 PM
#11
Thread Starter
Sleep mode
any idea !!
-
Feb 17th, 2003, 05:06 PM
#12
Member
Did you set MS SMTP virtual server? You have to go to the properties and add 127.0.0.1 to the Connection and Relay
-
Feb 17th, 2003, 05:27 PM
#13
Thread Starter
Sleep mode
I want to do this by code .There's a way I am sure .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|