 |
|
 |
I found a weird issue that seems to only happen on Vista.
If I compile the project and put the exe in c:\epsendmail for example I can run it fine. However as soon as I rename the directory (i.e. c:\epssendmail2) it will be unable to send email and the error message is "The transport failed to connect to the server."
Now if I move epsendmail.exe out of c:\epsendmail2 and then move it back it'll fix it. I can also copy it out of c:\epsendmail2 and copy it back (overwriting the current epsendmail.exe inside c:\epsendmail2) and it'll work.
If you want to try it yourself here's a quick way to do it (through DOS):
First, put epsendmail.exe in c:\epsendmail
Now open DOS and do:
c:\epsendmail\epsendmail.exe someone@example.com, me@mysite.com, test, test, smtp.emailserver.com
And it'll send successfully. Now do:
REN c:\epsendmail epsendmail2 c:\epsendmail2\epsendmail.exe someone@example.com, me@mysite.com, test, test, smtp.emailserver.com
And it'll fail to send. You can try running it as many times as you want but it always fails.
Now if you do:
move c:\epsendmail2\epsendmail.exe c:\ move c:\epsendmail.exe c:\epsendmail2\ c:\epsendmail2\epsendmail.exe someone@example.com, me@mysite.com, test, test, smtp.emailserver.com
It'll work again. But now if you rename c:\epsendmail2 to c:\epsendmail or whatever it'll break again until you move the executable out and back into the renamed directory.
This all happens with copies too, copy c:\epsendmail to c:\epsendmail2 and the version in c:\epsendmail2 will fail.
Anyone else have this issue on Vista?
I'm wondering if it's firewall or .net/vista security related? After renaming the directory I tried adding the new directory and executable to the windows firewall exception list and it still failed. I also tried disabling the firewall and it failed. The only thing I haven't tried is rebooting after disabling or adding the exception. Could it be some security feature where renaming the dir stops it from having access to networking features? I noticed it gets the error instantly no matter what SMTP server I use. However if I try using an IP address instead of a domain name it just hangs. So it's like it's not even resolving IPs after renaming the directory??
I believe this is just on Vista as I tested it on XP sP3 without issue, however on my XP system I have the firewall turned off. I'll do some testing later on XP with the firewall on and see if it happens.
Thanks.
modified on Friday, September 12, 2008 11:17 PM
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I tryed to add the line
Imports System.Web.Mail
but my visual studio underline it as Namespace or type 'Mail' for the Imports 'System.Web.Mail' cannot be found.
actualy when i type System. the autocomplete dont show the Web at all. i'm missing some component of VB .Net ? where can i get it ?
any idea ?
Seveley
=== edit ===
I installed VS studio 2008 ( had 2002 before ) and now I have System.Net.Mail for all that have the same problem as me
modified on Sunday, June 15, 2008 9:54 PM
|
| Sign In·View Thread·PermaLink | 1.33/5 (3 votes) |
|
|
|
 |
|
 |
i dont know why the email no arrive
EPSendMail v1.0.2999.36948 Console application to send smtp mail
Sending email message From --> test@test.com To --> raquidd@yahoo.com Subject --> test Message --> test SMTP Server --> 127.0.0.1
the only think is the test@test.com if i use window xp and i not count how i can do
thanks for the time
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
i have the email in the Mailroot Queue
i found a article about
Ensure that your machine is able to resolve MX records for the destination domain in the DNS"
i trying to follow the article but i dont understand the part with i configure with me isp
is possible i send emai Through me isp without ask he
thanks for the time
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
 |
hi This is a very good article. one vote for it. i have Question. am using vb2003, .NET 1.1, so i want to use mail namespace, but it seems it doesnt work there, everytime i import the namespace.
what namespace or how can i send an E-mail in this Framework, because all i get is Web Examples, i want to send from a Windows Application.
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sudden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
Do we really need to have an SMTP Server ? because if we digg into the real anonymous mail programs they don't need the SMTP Server to send the mails. instead they just send it with your IP Address. Is it possible with this program ?
I tried so but it not sending the mails without SMTP Server
|
| Sign In·View Thread·PermaLink | 1.50/5 (4 votes) |
|
|
|
 |
|
 |
i have done codings for sending mail in vb.net ...it not showing errors..but i didnt get mail in inbox? what is the pblm ? can u help me?
|
| Sign In·View Thread·PermaLink | 1.17/5 (6 votes) |
|
|
|
 |
|
 |
Hi , I used your application but every time I try to run it it gives me the same error message : Could not access 'CDO.Message' object ...
|
| Sign In·View Thread·PermaLink | 3.11/5 (8 votes) |
|
|
|
 |
|
 |
I use ArgoSoft eMail server from my computer as my SMTP/POP server. SMTP server has authentication turned ON. I have to include Username/Password in order to send eMail through my SMTP server. In the given example nothing about authentication has been mentioned.
How can I pass parameters for UserName and Password for SMTP Authentication?
Thank you.
Regards, Mehdi Anis
|
| Sign In·View Thread·PermaLink | 5.00/5 (1 vote) |
|
|
|
 |
|
 |
Add the following properties to your mail message...
insMail.Fields.Add(@"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); // Basic authentication insMail.Fields.Add(@"http://schemas.microsoft.com/cdo/configuration/sendusername", <"SmtpUsername">); insMail.Fields.Add(@"http://schemas.microsoft.com/cdo/configuration/sendpassword", <"SmtpPassword">);
Chris
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Chris, Thanks for the prompt reply. I am using Visual Studio 2005. It can not recognize ".Fields" property for "insMail" object. So, I could not use it. I solved my problem, but in a totally different way.
In this web site I found another thread where code is given in C# with authentication. Can't remember the thread name/id, but it uses EnhancedMailMessage class. Anyway, I just took the
EnhancedMailMessage.cs
file from that thread in a new C# DLL project and compiled to a .DLL file. Then, in my VB .NET project I added the .DLL file as REFERENCE and Imported that in my VB code file. Now I can just use the EnhancedMailMessage object directly.
Bye now.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi,
Another option for you is to explore the new System.Net.Mail namespace available to the .NET Framework 2.0.
To send a mail message with credentials...
private void SendMailMessage() { try { MailMessage mailMessage = new MailMessage( "test@test.com", "cdufour@epcanada.com", "Test email message", "Test sending an email with an attachment and using credentials...");
Attachment attachment = new Attachment("test.xls", MediaTypeNames.Application.Octet); mailMessage.Attachments.Add(attachment);
SmtpClient smtpClient = new SmtpClient("Your SMTP Server"); smtpClient.UseDefaultCredentials = false; smtpClient.Credentials = new NetworkCredential("user", "password", "domain");
smtpClient.Send(mailMessage); } catch (Exception ex) { MessageBox.Show(string.Format("{0} \n\n {1}", ex.Message, ex.InnerException.Message)); } }
Chris
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi, running this App, this Err occs: "Fehler bei Zugriff auf Klasse CDA.Message" "Error on accessing class CDA.Message".
Anybody n idia why this occs?
carpe noctem!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
your virus scanner is blocking the access to the ColabraDataObject. Library for SMTP support.
|
| Sign In·View Thread·PermaLink | 2.00/5 (2 votes) |
|
|
|
 |
|
 |
This application is not working.Im facing the problem when i press any key the console application window is closing.. Plz let me know why it happens like this..
thanks P
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
 |
Hi, How can I send email as html format and the Body of the email is already exist as html file without put this file as attachment.
|
| Sign In·View Thread·PermaLink | 2.67/5 (3 votes) |
|
|
|
 |
|
|
 |
|
 |
Just a word of warning, I have been using SMTP for my applications to generate email notifications. Suddenly all by app's stopped being able to send mail.
This was about the same time we changed some of our mail servers so I assumed that this was what was killing this part of my app's and thought nothing further of it as I was tied up doing other stuff.
Checking another issue I noticed that McAfee Virus Scan 8 was blocking port 25 which is used by SMTP. Re-enabling port 25 has returned my email notifications.
The port 25 block is default behaviour when installing version 8.
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
If VB doesn't recognise System.Web.Mail as a valid Import, go to Project -> Add Reference and add System.Web.dll.
Hope this helps
|
| Sign In·View Thread·PermaLink | 3.67/5 (3 votes) |
|
|
|
 |
|
 |
hi,I have an error message saying that I could not access the CDO.object while I tried to send SMTP mail using vb.net..Can someone help me,please??? Thank you very much....
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Can someone explain in more detail the job of Ubound? In this code "if UBound(strArgs) < 3", what doesn 3 stand for? Bytes?
Also, are the refrences like "System.Web" a library? Is there something similar for receiving mail?
thanks a lot.
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
 |
Ubound is a basic vb command that tells you the size of an array. In this example, strArgs is an array (its name is wrong. it should have been something like arrArgs)
|
| Sign In·View Thread·PermaLink | 3.14/5 (5 votes) |
|
|
|
 |