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 ?
Printable View
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 ?
*bump* ^._.^
:confused: :rolleyes: :(
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.Quote:
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 ?
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?
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
I want to use MS's mailserver .Is this possible ?
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
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
It says (Couldn't access 'CDO.message' Object ) .This error message shows after 2 or 3 seconds .What the hell does it mean ?
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
any idea !! :(
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
I want to do this by code :( :( .There's a way I am sure .