 |
|
|

|
hi evey body
i want send file in c++ but i don't know code.if any you have code it.please post in this site and mail for me.mail to misa_qn@yahoo.com.vn
thank you
|
|
|
|

|
www.example-code.com/vcpp/FileAttachment.asp
|
|
|
|

|
hi
i want to send mail using C# but i cant
this is my code:
MailAddress from = new MailAddress("negin_sarkhosh22@yahoo.com", ":: safir187.com ::");
MailAddress to = new MailAddress("sara_sarakhanom22@yahoo.com", ":: tnz187 ::");
MailMessage message = new MailMessage(from, to);
message.Subject = "Safir187.com is updated!";
message.IsBodyHtml = true;
message.Priority = MailPriority.High;
message.Body = "wedqwe";
SmtpClient client = new SmtpClient("localhost");
client.Send(message);
please tell me my mistake
thanks
|
|
|
|

|
>> SmtpClient client = new SmtpClient("localhost");
Do you have a SMTP service running on your machine? I guess not.
You can easily google simple smtp server applications that don't require installation.
|
|
|
|

|
I need to send a message between two mails in yahoo.com
But I don't konw what can I write to textBox of SMTP
Help ,Please !
programet_nje@hotmail.com
|
|
|
|

|
I need to send a message between two mails in yahoo.com
But I don't konw what can I write to textBox of SMTP
Help ,Please !
|
|
|
|

|
hi,
can anyone temme abt the code written in c # for sending mail throgh SMTP s dependent on any mail client????
s ter any code for doin the same in C++????
kidly help.
thanks.
|
|
|
|

|
hello
ia have problem with this code .
when i want to run this program it throws an unhandeled exception in this line
TcpClient SmtpServ = new TcpClient(ServSMTP.Text.Trim(), 25);
it seems that it couldnt make tcp client
please guide me
mohsen
|
|
|
|

|
Hi everyone,
I've found this code that can send SMTP commands via sockets (25).
The problem is when I send the command: "rcpt to:whatever@yahoo.com", I get a server response: "503 This mail server requires authentication ...".
Is there a way to create this authentication, to make this happen?
Thanks in advance,
Danny
|
|
|
|

|
I want to attach file to an e-mail.
How can I do it?
|
|
|
|

|
View the RFC 821 specs. It will tell you how to organize it.
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|

|
In the code there is line:
Data = "HELLO server " + CRLF;
1.
It would be nice to point that instead of "server" there should be real server. E.g. it can be 127.0.0.1
2.
HELLO should be HELO
3.
It is critical that after server name there will be NO SPACES before CRLF
The example of correct line is:
Data = "HELO 127.0.0.1" + CRLF;
-- modified at 20:42 Wednesday 16th November, 2005
|
|
|
|

|
the code when uusing Send button its reusablwe for vc++, i have to send a mail in a console application to inform people who were late at the morning.
|
|
|
|

|
Hi,
I used this sample but the any message isnot arrive.
I don't know why.
Someone know how to attach a file?
I would like to knwo if i can define user in the server SMTP?
Tnak you for your help.
|
|
|
|

|
OpenSMTP.NET http://sourceforge.net/projects/opensmtp-net is recommended.
Regards,
unruledboy@hotmail.com
|
|
|
|

|
Too bad the project doesn't use BSD licensing, it's worthless for commercial work as it stands.
|
|
|
|

|
Wheather it is working in Windows 98
123
|
|
|
|

|
Certainly a stupid question but .....
What do we specify in the area of "SMTP server" ?
I suppose a SMTP server, but is a Standard SMTP server running on my system (Windows XP) ? How can I see that ?
What is a SMTP server ?
I believed that we have to send a text respecting the SMTP protocol to the port 25.
JMK
|
|
|
|

|
hi all,
I have an application sending mails but i am not able to specify my name in the field.the problem is that the recepient sees my whole e-id instead of my name.
can there be a property which i can use to resolve this problem.
plz help!!!!
|
|
|
|

|
The System.Web.Mail.SmtpMail does not support ESMTP.
If you want to auth login, you need to do so by using
the TCP client. And remember to convert the user name
and password to BASE64 code. Using the code below:
Convert.ToBase64String(Encoder.GetBytes(username))
can do the task.
|
|
|
|

|
how do you provide login information to TCP client
like how do u pass [login] and [password] to
ESMTP..
how do we write ESMTP program.
thanks..
|
|
|
|

|
Havo everybody made ESMTP Mailer? Also an SMTP Mail Service with Auth??
|
|
|
|

|
Hi,
actually I've learned that the message sequence for ESMTP is like below:
< TCP Connection to server >
S: 220 Welcome to (my smtp server).
C: EHLO (my smtp server).
S: List of supported ways
{
for example test smtp.gmail.com on port 587 in telnet.
result is:
220 mx.google.com ESMTP j9sm28589707bkd.2
EHLO *(you should send it again when you negotiate an ssl/tls connection)
250-mx.google.com at your service, [46.164.103.3]
250-SIZE 35882577
250-8BITMIME
250-STARTTLS
250 ENHANCEDSTATUSCODES
}
C: STARTTLS
S: 220 2.0.0 Ready to start TLS
< Here a ssl/tls connection should be negotiated. >
After negotiation you can do as normal smtp, but the data you send will be encrypted:
C: EHLO
S: Introduce yourself
C: AUTH PLAN ABCDEFG== *(Here you should send your password in base64 encoding)
S: 235 Authentication succeed.
C: Mail FROM: MyMail@MyServer.com
S: 250 Sender OK
and so on ...
But I have problem in establishing a secure connection to gmail esmpt.
I do not know how to exchange a secret key between my program and gmail!
So if you know the answer (in C# or java) please help me.
Hope it will be useful.
and after here you can continue with smtp protocol (mail from, rcpt to:, . . . )
|
|
|
|

|
I'm having a problem:
I send the mail, and the server sends to my email the message:
Hi. This is the qmail-send program at hm101.locaweb.com.br.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.
:
vdeliver: Message is corrupted. It does not possess body
Felipe Drumond - Brazil
|
|
|
|

|
i would like to know how to run smtp using c#, i compiled it successfully whenever i try to run it using IIS, default server says hello(220) but when i give command (HELO, EHLO) it doesn't accepts and connection closes saying invalid address, wrong command, mail send successfully and connection close. if configuration of IIS is wrong how do i correctly set it,and how do i recieve the mail send through this SMTP mail server.
i will be very thankfull for any valuable information.
|
|
|
|

|
1.There is no username and password here.So I can send from any email address?
2.How can I attach file to my email?
Thanks
<html>Mazy
No sig. available now.
</html>
|
|
|
|

|
Hello,
I need to send HTML formatted email,
How can I do with this code?
aude
|
|
|
|

|
hi.
First of all, you wrote a very nice article. Specially very simple for us, beginners.
I cannot run the application, because I get a ‘Microsoft development error’:
“An unhandled exception of type 'System.Security.SecurityException' occurred in mscorlib.dll
Additional information: Request for the permission of type System.Net.SocketPermission, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.”
I am using Windows XP, which is completely up-to-date.
BTW, I also couldn’t run the EXE that came with the source code…
Any idea????????
Thanks a lot!
Julian
|
|
|
|

|
Try this
Control Panel
Net Framework Configuration
Runtime Restrictions (something like that, sorry i work on a german system)
User
Codegroups
All_Code -> right click for propertys
on the 3th Tab ensure you have enabled full thrust to AllCode
i hope it helps
Harry
|
|
|
|

|
Sending as ASCII is nice, but i really need an option for sending HTML formatted email.
Anyone ?!
|
|
|
|

|
From below:
// create the mail message
MailMessage mail = new MailMessage();
// populate the message
mail.From = argumentEmailFrom;
mail.To = toAddress;
mail.Subject = argumentEmailSubject;
mail.BodyFormat = MailFormat.Html;
mail.Body = "<html><body>" + yourMessageHere + "</body></html>";
// send it
SmtpMail.SmtpServer = "your.smtpserver.com"
SmtpMail.Send(mail);
ed
Every time I walk into a singles bar I can hear Mom's wise words: "Don't pick that up, you don't know where it's been!"
|
|
|
|

|
Note: I pasted the data in message body
I changed to mutiline property to yes
Still My message body is coming in a single line.
|
|
|
|

|
How to do smtp auth login in c #
|
|
|
|

|
I really appreciate the article at http://www.codeproject.com/csharp/POPApp.asp, but can anyone tell me how to read/get/decode attachments such as word documents / excel spreadsheets / image files from a POP3 server mail account ?
Assistance will be appreciated as time is of the essence!
Thanks!
|
|
|
|

|
why do you not use the mail class?
using System.Web.Mail;
.
.
.
// create the mail message
MailMessage mail = new MailMessage();
// populate the message
mail.From = argumentEmailFrom;
mail.To = toAddress;
mail.Subject = argumentEmailSubject;
mail.BodyFormat = MailFormat.Html;
mail.Body = htmlMessage;
// send it
SmtpMail.SmtpServer = "your.smtpserver.com"
SmtpMail.Send(mail);
"When the only tool you have is a hammer, a sore thumb you will have."
|
|
|
|

|
I know how to SEND Mail, but I am trying to get messages from the SMTP Server.
I want to use the example at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnproasp2/html/usingcdofornts.asp in C-Sharp though.
Thanks!
|
|
|
|

|
you don't 'get' messages from an smtp server you muppet. that's what pop3 is for
|
|
|
|
|
|

|
er my post was dated 9:42 15 Aug '02
there was no 2003 server then
"When the only tool you have is a hammer, a sore thumb you will have."
|
|
|
|

|
The article you link to explicitly tells you to use System.Web.Mail on 2003 servers!
|
|
|
|

|
Hi, Is there anything out there in C# of the following: <% Set objSession = Server.CreateObject("CDONTS.Session") objSession.LogonSMTP "Service", "service@mysmtp.com" Set objFolder = objSession.inbox set objMessages = objFolder.messages Response.Write "Number of Messages: " & objMessages.count %> I am going from VBScript to C# and cannot find anything out there with a sample br /> Any assistance will be greatly appreciated!
|
|
|
|

|
It is sometimes hard to believe that some people out there actually think they could ever possibly write a program on thier own? I mean, why do you think that you've had to configure smtp AND pop in every single email client you've ever owned....for a laugh?
|
|
|
|

|
How to send User Name and Password to SMTP Server???
|
|
|
|

|
It has something wrong
When I type my SMTP server and I send another message it only sends messages to E-mails on this server only
I mean when I send E-mail form My e-mail to another different E-mail it tells me in the log screen
Relay Access Denied
|
|
|
|

|
Take a look at the relay restrictions set for your SMTP server. If you're using IIS, open the IIS control panel applet, right-click on the SMTP server, and select properties. Click the Access tab, then click the Relay... button. On my system, I have the "All except the list below" radio button selected, the list is empty, and the "Allow all computers which successfully authenticate..." checkbox is unchecked.
HTH!
|
|
|
|

|
Nice article!
But how I can send e-mail with attachments?
|
|
|
|

|
Sending mail with attachment using System.Web
http://www.c-sharpcorner.com/Internet/MailingAppMG.asp
|
|
|
|
 |