Change SMTP Server Adress?
Nov 7, 2011Is it possible to only change the SMTP adress with VB.Net ???
I searched but no answer..Maybe with VBscript...(another forum)
Is it possible to only change the SMTP adress with VB.Net ???
I searched but no answer..Maybe with VBscript...(another forum)
I'm using the TcpClient and TcpListener classes to read/write to the network when a request comes in on port 25. All I'm trying to do at the moment is make it so that my server program can receive SMTP messages from other SMTP servers. I've tested in Telnet - if I connect to my own IP on port 25 and type EHLO, MAIL FROM, RCPT TO, DATA etc then all works as it should and the details I entered are logged by the program (it doesnt do anything about delivering these details/email yet).all looks good... but then when I try and just send an email to my domain from my work account I can see that a connection is made to my program and the string "EHLO workdomain.com " is received by my program - my program responds to the remote SMTP server with "250-mydomain.com Hello" and then a CrLF and then "250-OK". After that point however, my app does not receive anything further at all from the server at work. I'm guessing I am doing something wrong with the data I'm returning when it sends EHLO but can anyone point me in the correct direction?
I was using telnet to test with, it seems that I have made it work only with telnet.In telnet each time I type a key the data is passed to the server, however with a real SMTP server it just sends each entire command in one go. So after altering my server a little I can now get it to respond with the 250-OK which I thought it already was doing.. but it still doesnt work. The remote server just sends EHLO and then thats it nothing more.Something interesting, at the moment I am ending all of my responses to the remote server with VbLf - if I change this to VbCrLf (which is what I believe it is meant to be according to the SMTP standard) then I get an infinite amount of empty strings sent to my program (or perhaps some other character that just shows as an empty string in intellisense when stepping through the code). Changing it back to just vbLf or ControlChars.Lf makes it go back to just sending EHLO and then nothing else..
I have a web browser with tabs, and I wanted to know the following:
1. When yougo to a webpage the Tab name will be the websites title, if the title is over
2 5 characters, then it ends with a "..."
2. how do I make the adress bar URL change when switching tabs?
i'm tying to send email in my application directly by the smtp server but the server doesn't allow me to do that.The application its used by everyone in the company, so i set the smtp client UseDefaultCredentials to True, but the server replies with this when i try to send an email:[code].....If i set the credentials by hand, the server sends the email. So my problem is how to make this work to everyone? I don't want to have one public/friend var all time in the application with the credentials of the current user?
View 9 RepliesThis emailing code wont seem to work in my program. I get an exception "The SMTP server requires a secure connection or the client was not authenticated. The server response was 5.5.1 authentication required."
Imports System.Net.Mail
Public Class emailStudent
Private Sub sendEmailButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles sendEmailButton.Click
SendMail()
[code]....
My app sends an email (see code snippet below) but I want to check first if the SMTP server is running in IIS7.
mySMTPClient.Host = "localhost"
mySMTPClient.DeliveryMethod = System.Net.Mail.SmtpDeliveryMethod.Network
mySMTPClient.Send(myMail)
results.Dispose()
Here is my code
Dim message As System.Net.Mail.MailMessage = New System.Net.Mail.MailMessage()
message.To.Add("from textbox field")
message.Subject = "Testing"
[Code].....
I need to encrypt my SMTP server password in my application. It is not located in a textbox on a form, but rather directly in the code.
View 4 RepliesI'm trying to make an e-mailer that connects to an SMTP server.
Ive looked everywhere and Id prefer if it was explained how to put it into my code.
[code...]
below is my code
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
ProgressBar1.Value = 5
Dim strTo As String = setting.tosett.ToString[code].....
i want the program to ping the server before sending the mail; if server is available then send mail if not then message box with warning appears notifying user to check VPN connection and sending of mail is canceled.
Apparently these two thing don't really have anything to do with eachother.Is there a way to send EMails anonymously through an SMTP Server?
View 8 RepliesI have a VB.net Application running on the server which will be sending emails close to 200 everyday. Following is my coding:
Dim objNewMail = CreateObject("CDO.Message")
objNewMail.Configuration.Fields.Item("[URL]") = 2
objNewMail.Configuration.Fields.Item("[URL]") = "localhost"
objNewMail.Configuration.Fields.Item("[URL]") = 25
objNewMail.Configuration.Fields.Update()
objNewMail.From = mailFrom
objNewMail.To = mailTO
[Code] .....
The above codes runs inside a loop. The above code runs quite well without any issues. But once or twice a month, I get the following error message and application stops.
System.Runtime.InteropServices.COMException (0x80040213): The transport failed to connect to the server.
I am using following code to send email through smtp server, I have tested this code on my machine and its working fine but after deploying the project on server 2003, exe file runs okay but i am not receiving any emails?
'create the mail message
Dim mail As New MailMessage()
Dim smtp As New SmtpClient("smtp.server.europe.com")[code].......
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim mail As New MailMessage
[Code]....
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required
i am working on a my project, which send email to me using gmail.smtp, it works fine on xp, vista, and + some of windows 7 versions, in few pc's i had tried that, and got a issue.here is detail of error i got in there, i am using visual studio 2008 & a internet with proxy server,n my openion its a problem with internet ? maybe ? because when i had used this on my dsl connection it worked.
View 7 RepliesSo I'm making a Program to Start/Restart/Stop and running commands from the Console for my Server.Now when someone uses the console, I want to be alerted of it on my Mail.I am using Visual Studio 2010.
[Code]...
I'm trying to write my own SMTP server at the moment so that people can use it in their applications to send and receive emails.I am having a few problems at the moment with the TcpListener side of things though. Basically I do not want to start the TcpListener in the constructor of my class because people could be using this SMTP Server class just to send emails and might not care about receiving them. In fact the majority of people that use it will probably use it for that reason, to send and not to receive.
So I am now considering breaking this into 2 totally separate projects that have no dependencies on each other, but could easily be used in the same application if required. The reason I designed this with both 'features' in the same project in the first place was because that is how an SMTP server works - it can receive incoming SMTP requests and it can send SMTP server requests to other servers (and in some cases, receiving an SMTP request would cause it to send an SMTP command to another server)
I have taken an interest in creating a SMTP server in vb.net that has the ability to hide ip addresses in email headers.I see that some people claim that it's possible around on the internet, but I haven't seen any direct source code to create an anonymous smtp server in visual basic 2008.Now I know that it's legal to send emails via a masked ip address and I believe that it's also fair since some people believe in anonymity, but I am in all means against spammers.
View 2 RepliesI am trying to get this program to send an email, but still no luck. I am getting the following error that I do not understand. I do not understand what I am doing wrong. Also, I may have an issue that the computer I am writing this code on and trying to send the message does not have ISS and is just windows XP home.
The error is below
System.Net.Mail.SmtpException was unhandled
Message="The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. k41sm2133530rvb.6"
[code].....
I am looking to make a SMTP (Port 25) listener to listen in and accept incoming mail, look at the message source, make changes if needed, and retransmit the message out another port. This iwll make it act like a sort-of intermediary service.how one would write a port listener in VB.net, that could listen in on the port, and display the message in a text box (the whole source, headers and all, since that's what the mail comes in as anyway).
View 3 RepliesIs it possible to make a program similar to outlook express where I can send/receive emails , I already made one sending emails but I need to receive emails too
View 2 RepliesI'm working on a project, and I can't figure out how to get the IP-adress from a URL, such as [URL]
View 2 RepliesI am developing an application and necessary to send to my data base address IP of mine pocket PC is using visual beginner's all-purpose symbolic instruction code .net 2005 as I must make?
View 2 RepliesI am having difficulties connecting to a computer through a router. The problem is that when i use an internet web page to get my IPAdress, I get the Ip Adress of my router and what i really need is to get to The Machine that has a server running on it. Is there anyway to get pass the router and connect directly to the machine without using Port Forwarding.
View 4 RepliesIs it possible to get the text in Address bar of IE/Firefox and set it and if so how,
View 2 RepliesHow to get the flag icon to a ip adress ? For example, you add a textbox, a button and a picturebox, and the textbox should contain a website[url]... And when you press the button, a function getts the ip adress of the url, and setts the picturebox image to the contry flag icon.
View 18 Repliesany one have a code in vb 2008 which allows me to know the IP address of local network.
View 2 RepliesI have five buttons. Each one has the logo of a website. When the user clicks the button he should go to the website.The five websites are stored in a database (because they need to be changed later during runtime, and the changes saved for the next time the program is opened), in the adress colum.The number of the button corrosponds to the row number of the adress.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WebBrowser1.Navigate(Me.Table1DataGridView.adress(1))
[code].....
I'm getting familiar now with using the Dataset Designer and how it makes for quick and easy updates and query of tables. I use to use the OleDB commands and leave the Connection String as a Global Constant so I can easily change it if the server name changes, or if we have to re-direct the .NET to another instance of the database.
But now that I use the Dataset designer I'm concerned that I maintain flexibility and support in the long run. how the Dataset designer works and where it stores it's connection string info? And how difficult that would be to update. It looks like I modify the App.config file, but I'm unfamiliar with this.
What am I getting myself into? It looks like a standard XML file. Is that it?
Web service uses SQL Server based authentication how to change to windows based authentication both web server & Database service resides in different domain .
View 1 Replies