|
how many mails can i send using this code???
its free or not from google.?
if its free then mail we send is limited or not?
and its limited then how many mails can we send per day?
|
|
|
|
|
I have a project for SMTP mail code in VB.net
Plsss send me a VB 2008 SMTP mail transfer and receive coding
Pls
Pls
Plss
Plsss
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
Try changing your imports to Imports System.Net.Mail... it should work.
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
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?
|
|
|
|
|
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 ...
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
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.
|
|
|
|
|
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()<br />
{<br />
try<br />
{<br />
MailMessage mailMessage = new MailMessage(<br />
"test@test.com",<br />
"cdufour@epcanada.com",<br />
"Test email message",<br />
"Test sending an email with an attachment and using credentials...");<br />
<br />
Attachment attachment = new Attachment("test.xls", MediaTypeNames.Application.Octet);<br />
mailMessage.Attachments.Add(attachment);<br />
<br />
SmtpClient smtpClient = new SmtpClient("Your SMTP Server");<br />
smtpClient.UseDefaultCredentials = false;<br />
smtpClient.Credentials = new NetworkCredential("user", "password", "domain");<br />
<br />
smtpClient.Send(mailMessage);<br />
}<br />
catch (Exception ex)<br />
{<br />
MessageBox.Show(string.Format("{0} \n\n {1}", ex.Message, ex.InnerException.Message));<br />
}<br />
}
Chris
|
|
|
|
|
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!
|
|
|
|
|
your virus scanner is blocking the access to the ColabraDataObject. Library for SMTP support.
|
|
|
|
|
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
|
|
|
|
|
same here. did you figure it out yet?
|
|
|
|
|
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.
|
|
|
|
|
|
.NET Framework 4 Other Versions
Represents an e-mail message that can be sent using the SmtpClient class.
Inheritance Hierarchy
System.Object
System.Net.Mail.MailMessage
Namespace: System.Net.Mail
Assembly: System (in System.dll)
.IsBodyHtml Gets or sets a value indicating whether the mail message body is in Html.
http://msdn.microsoft.com/en-us/library/system.net.mail.mailmessage.aspx
|
|
|
|
|
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.
|
|
|
|
|
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
|
|
|
|
|
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....
|
|
|
|