VS 2008 : SMTP Server - Split The Sending And Receiving?
Oct 22, 2009
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)
View 8 Replies
ADVERTISEMENT
Jan 30, 2010
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.
View 39 Replies
Aug 14, 2009
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..
View 4 Replies
Mar 11, 2010
I Need a simple project which is developed in Microsoft Visual Studio 2005 in VB.net the project features are
1. I have to send multiple SMS from a mobile device connected through a USB.
2. I have to receive SMS from a mobile device and parse it and store it into various text file.
View 7 Replies
Oct 11, 2009
My latest project requires both sending and receiving emails. Now i know how to send emails using a gmail account, but what im having incredible difficulty with, is accepting emails. What i want, is to have a program that both has the ability to send emails, and capture emails being sent to the logged in user, and place them in an inbox list. I was wondering if anyone knew how to receive emails with a program, even temporarily, so that when an email is sent to the user, my program knows about it, and can take the body from the email, and place it in say a textbox.
[Code]...
View 39 Replies
Dec 28, 2010
The server is a .bat file that turns into a command prompt, and I need to be able to send commands like "stop" or "op player" and then I also need to be able to see the output from the cmd in a textbox. I found a code that can start and read what the cmd says but I can't send any commands to it.
View 5 Replies
Mar 4, 2011
i am using this script in my program for sending mail
Dim mail As New MailMessage()
Dim SmtpServer As New SmtpClient
SmtpServer.Credentials = New Net.NetworkCredential("test@gmail.com", "test")
SmtpServer.Port = 587
[code]....
Now what i wanted is to send this mail through a proxy server of
Proxy Address - "192.168.0.254"
Port - "4480"
View 1 Replies
Aug 16, 2010
I have a very basic knowledge of coding, just enough to understand some PicBASIC Pro and program a microchip to send the values of some variables to a PC via the com port. I've used a terminal utility like Hyperterm to confirm the right variables are being sent, so I thought it would be cool to have a custom application on the PC to display these variables, and possible set them via the application by writing the new one back to the PIC. So I downloaded VB express 2008 - and whilst it was "simple" to draw a box and add a few text boxes I'm lost at how to actually do anything practical with it
[Code]...
Could someone advise me in laymens terms exactly what I need to do inorder to populate the text boxes with the data from the PIC micro. Whilst I understand the basics about BASIC, I have no idea on things like classes etc
View 5 Replies
Aug 11, 2010
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 Replies
Apr 1, 2009
writing a small application on sending a simple text sms like TEXT to the PC and it will get into the database (mySQL) to search for the information on it and reply back the result to the user. how to start on the application and the hardware i need in order to do it.
View 1 Replies
Apr 5, 2009
i've been searching for sending and receiving sms code using gsm modem because i can't find any information about it. Is there anybody can give me the code or suitable link for me to get sample code?
Hope i can get response as soon as possible as my tasks need to be completed in a week time.
View 2 Replies
Feb 17, 2009
I want to send an email that contains an attachment via vb.net and smtp. I used gmail as smtp server. This project works correctly when the size of attachment size is lower than 1Mb. When the size of the file is bigger than this size it makes an error. The message is this: "ContextSwitchDeadlock was detectedMessage: The CLR has been unable to transition from COM context 0x652fd8 to COM context 0x653148 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations."I extended the timeout period but this message is shown.
View 3 Replies
Jun 19, 2009
I have been searching for the answer to this for quite a while but none answer me exactly. Here is my problem, I want my user to be able to send an e-mail by clicking on a button "Send" and for this e-mailk to take the e-mail address from a text box and the message from a text box (Subject can be hard coded as it will always be the same) but I need to do it without using SMPT protocols as I don't want the user to have to input lots of information regarding their e-mail etc. Is there any way to do this.
View 7 Replies
Mar 7, 2011
how can i send an email in Visual basic? i have tried and i cannot get my code to configure with smtp.gmail.com... I need some code to do this. If it is not worth it, it is not fun - you say programmers are boring but i say they are worth it.
View 6 Replies
May 20, 2011
I Started to create an application in vb.net and the application mainly monitors the drives and when the drive's free space is below a certain percentage it sends an e-mail to recipient chosen.. Now ive done this using the smtp server and unfortunately i'm on a domain so sending emails within the office is permitted but as soon as i try to mail to an external e-mail ex. [URL] it throughs and exception and states the following:
[Code]...
View 2 Replies
Jul 25, 2009
look at this code and tell me what I'm doing wrong and what needs to be entered in order to finish this program,
[Code]...
View 3 Replies
Nov 11, 2009
Im woundering how does Receiving/Sending data work in a TCPClient/Server that is connected in the same networkstream.
View 4 Replies
Jul 30, 2009
I need to send/receive faxes through my web application, and I am not sure where to begin.Basically, a client clicks a button to send a fax, and records in the database under the client's name when a fax is received.Preferably through an API from a service based fax company... I will be hosting this application on a dedicated server, I don't think they allow using their modems.I am using .NET and VB.
View 4 Replies
Aug 31, 2009
I am doing a project on sending and receiving sms. But I do not know how start. But I have found this website that it teaches how to write the application on sending and receiving sms. What I see is that, it have different classes that is using. I have a dateline to finish my project on this. Here is the link that I am trying to learn from. [URL]
View 3 Replies
Nov 14, 2011
i have the following code that i send a command over the network to a Onkyo A/V reciever. I would like to get the feedback from that as well but i can not seem to find a way of doing that. I know the command to send to have it send something back but as for the code below, it only sends out a command and doesnt listen for a return.[code]
View 1 Replies
Aug 4, 2010
I am stuck with a problem of sending out an Arraylist from a client to a server.I am doing the following code to serialize and send out the arraylist from my client, but not sure how to collect it from the server side:
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Dim i As Integer[code]..............
View 2 Replies
Nov 14, 2011
Currently I had write a simple VB code, my aim is when i click "Forward" button then the vb will send a character "A" to PIC, "Reverse" button will send "B" so I write my vb code for sending as below:
Dim Forward As Char = "A"
SerialPort1.Open()
SerialPort1.Write(Forward)
For the receiving part, after I received the data from PIC then I will show it at the label which act it as a screen. the receiving code as below:
SerialPort1.Open()
receive = SerialPort1.ReadChar()
If receive = "A" Then[code]....
View 14 Replies
Dec 4, 2011
I am working on system support for an electronics project wherein I have to receive an 8 bit (binary) data through a USB port and store either the binary or the corresponding decimal into a variable. How can I implement this in visual basic 2010?
View 11 Replies
Sep 2, 2009
I am doing a project on sending and receiving sms. I am doing this using the visual studios 2005 ans SQL Server Database to store the send or received sms. I have search on sms in the internet but the problem is that it is using C# as I am using the vb.net language. Even though some of the research that i came across is in vb.net but the application did not work.
In my research, the sending and receiving of sms application uses sms gateway, AT command. But I am not sure which one to use becoz I am doing this application for my project. Hope for any recommendation on which one to use either the sms gateway or AT command or any other device. My lecturer said that my project is most likely like the M2U Mozat. Not only that I am doing the sms but also the email. The email part is done by my partner but the problem is that he creates the email using the SMTP server. How can using a SMTP server to create sms? It is because the part that I am doing which is the sms and the email to combine together.
View 4 Replies
Aug 31, 2009
I am doing a project on creating send and receive sms application just like a software named Mozat M2U. I just want to know what are the different ways of sending and receiving sms. When I am doing my research, some of it uses sms gateway which is some application is using is for a trial. After that, the sms gateway have to pay. Besides the gateway, some uses the AT command using the GSM modem or phone.
The project that i am doing is for my school. The project that I am doing is not only send/received one sms but in bulk. Besides that I am getting all the contact lists from the SQL Server and I am doing the application on visual studios 2005. I am getting no where after searching the net for example. Hope that anyone would help me. I have my dateline for doing this project.[URL] Besides that my friend is doing the email part but it uses the SMTP server. So how to combine both the email and sms. If using the SMTP server, can i send sms?
View 1 Replies
Jan 6, 2011
I am trying to send an email through following code
CODE
Dim MyMailMessage As New MailMessage()
'From requires an instance of the MailAddress type
MyMailMessage.From = New MailAddress("a@gmail.com")
[Code]....
NOTE : I have tried SMTPServer.Port = 587 too but still its not working
View 1 Replies
Jun 28, 2011
developing SMTP mail program which require user to enter uid and password for their yahoo , gmail , hotmail account and then send the mail to required email address..following is the code , sometimes it says operation timed out , while sometimes it says that operation failed.
Imports System.Net
Imports System.Net.Mail
[code]....
View 8 Replies
Sep 20, 2010
I am working on an email that someone will send from one of our main sites requesting an account password.I am using System.Net.Mail.MailMessage to create the email and then sending it using System.Net.Mail.SmtpClient.[code]
View 4 Replies
Jan 6, 2011
I am trying to send an email through following code
CODE
Dim MyMailMessage As New MailMessage()
'From requires an instance of the MailAddress type
MyMailMessage.From = New MailAddress("a@gmail.com")
[Code]....
NOTE : I have tried SMTPServer.Port = 587 too but still its not working
View 2 Replies
May 29, 2012
I have looked it up and not found anything other than you need to upgrade your account to do it. Is this true? If not how would i do this?
View 3 Replies