![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Oct 2005
Posts: 52
Rep Power: 3
![]() |
Mailing Program
Hey everyone I just had a quick question. I just finished writing a very very simple mail client (litterally all it does is send msg's). I was wondering, sometimes when I send mail it goes really quick and appears almost instantly on the receiving server however sometimes it sends quickly and takes longer (about 45 secs) to appear on the server. I'm not complaining about the time it's not important just curious as to why it might do that. Any thoughts?
-Test it with different sized email which doesn't seem to have any impact on it. |
|
|
|
|
|
#2 |
|
Caffeinated Neural Net
![]() Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,005
Rep Power: 5
![]() |
Many things can account for this, including network conditions (takes the mail longer to arrive), server load (takes the server longer to process it), mail content (some servers may apply filters and/or virus scanning of attachments, either of which may slow processing), and any number of other things.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot. - Vaarsuvius, Order of the Stick |
|
|
|
|
|
#3 |
|
Programming Guru
![]() ![]() ![]() |
I agree with lectricpharaoh. There are a lot of moving parts involved in this process and any one of them could cause a delay.
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#4 |
|
Hobbyist Programmer
|
Yeh, it's all pretty much been said. Please can you upload the source? I'd be really, really interested to see it as I've wanted to include mail in one of my programs! I'd give you credit for the small bit that I'd use it for and if it sweeps the nation like I'm hoping it would - we'd both be famous!
|
|
|
|
|
|
#5 |
|
Hobbyist Programmer
|
mattireland, why dont you just read the documentation of the System.Net.Mail namespace and get the satisfaction of doing it yourself?
__________________
Mona Lisa must of had the highway blues you can tell by the way she smiles.. |
|
|
|
|
|
#6 |
|
Hobbyist Programmer
|
Right, now I know the namespace I will. That's all I really wanted. Thanks!
|
|
|
|
|
|
#7 |
|
Hobbyist Programmer
|
Hey guys! Sorry to invade this thread but why isn't this working?
Dim sendto = "matt@mattireland.co.uk"
Private Sub Send1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Send1.Click
'create the mail message
Dim mail As New Net.Mail.MailMessage()
'set the addresses
mail.From = New Net.Mail.MailAddress("program@program.com")
mail.To.Add("matt@mattireland.co.uk")
'set the content
mail.Subject = "testing"
mail.Body = "testing program"
'send the message
Dim smtp As New Net.Mail.SmtpClient("127.0.0.1")
smtp.Send(mail)
MsgBox("The message has been sent to: " & sendto)
End SubI get an unhandled exception error and it says that the sending has failed. Thanks! |
|
|
|
|
|
#8 |
|
Hobbyist Programmer
|
is your mail server on? As well as does it need authentication? Are you sure you have everything you need?
|
|
|
|
|
|
#9 |
|
Hobbyist Programmer
|
Yeah as PhilBon has just said, you would need to send mail through a mail server - if you dont have your own set-up you would generally send them via your mail provider's server.
Also, alot of servers wont just receive mail from anyone and again as PhilBon mentioned, you generally need to use an Ssl connection.
__________________
Mona Lisa must of had the highway blues you can tell by the way she smiles.. |
|
|
|
|
|
#10 |
|
Hobbyist Programmer
|
How do I set up the mail server? Sorry I'm a bit of a noob at this mail stuff still.
Thanks! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Language display in program | Prm753 | C++ | 3 | May 30th, 2006 5:45 PM |
| Help me program this with Watcom! | DBZ | Other Programming Languages | 3 | Feb 26th, 2006 9:41 PM |
| Creating a program to test a program | sixstringartist | C | 8 | Jan 21st, 2006 1:15 PM |
| move program console window back | badbasser98 | C++ | 21 | Oct 18th, 2005 2:02 PM |
| airport Log program using 3D linked List : problem reading from file | gemini_shooter | C++ | 0 | Mar 2nd, 2005 4:12 PM |