Click here to Skip to main content
15,892,697 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Please reply me fast :doh: :doh: :confused::confused::confused::confused:

How to create an application that sends Emails?
Posted
Updated 3-Jun-10 20:01pm
v2
Comments
Sandeep Mewara 4-Jun-10 2:01am    
Reason for my vote of 1
1. Demanding.
2. Gimmecode

Sending Emails from C# Application using default SMTP[^]
check this. I think this will help you.
 
Share this answer
 
v2
You have not describe in detail, but from the subject what i understand is you want to send email from application.
To Sent email you need to have smtp server and smtp port no.

below is the code to add on button click event

declare variables [subject, mail_body, smtpserver, smtpport, receiver, mail, sender]

mail_body="This is my first mail from application"
smtpserver="1.1.1.1"; //You server ip
smtpport=25;  //your server port
sender="sender@check.com" ;  //sender id
receiver="receive@a.com";    //receiver id
Subject="Test";

mail=Createobject("Jmail.smtpmail");
mail.ServerAddress=smtpserver + ":" + smtpport;
mail.sender=sender;
mail.subject=subject;
mail.AddRecepient(receiver);
mail.contentType="text/html";
mail.ISOEncodeHaders=False;
mail.contentTransferEncoding="8bit";
mail.body=mail_body;
mail.priority=3;
mail.execute();
mail=nothing;


You can also refer
http://articles.techrepublic.com.com/5100-10878_11-5794511.html[^] for more information on smtp
 
Share this answer
 
v2
I couldnt get ur question fully ..
but go through this site surely u will get the solution..
http://www.aspnetemail.com/Examples.aspx[^]
 
Share this answer
 
v3
Comments
Sandeep Mewara 4-Jun-10 8:34am    
Reason for my vote of 1
Its a third party tool link!
There are ways to send email from code without using third party!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900