Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

e-mail Application

This is a discussion on e-mail Application within the ASP.NET forums, part of the Web Development category; Hi, I want to create an application in which i can send e-mails to others, so plz help me and also tell me about web service...

Go Back   Geeks Talk > Web Development > ASP.NET
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

ASP.NET ASP.NET and ASP Related Problems

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-16-2009
Junior Member
 
Join Date: Jun 2009
Location: bangalore
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
harshavardhan1708 is on a distinguished road
e-mail Application

Hi,

I want to create an application in which i can send e-mails to others, so plz help me and also tell me about web service
Reply With Quote
The Following User Says Thank You to harshavardhan1708 For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 07-29-2009
Junior Member
 
Join Date: Jul 2009
Location: riyadh
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
alapati.satyanand is on a distinguished road
Re: e-mail Application

Dear user,
for creating an application that send email u have to use the smtp pop3 mail service of goolge or some other service provider of your choice.
Reply With Quote
  #3 (permalink)  
Old 08-01-2009
Contributing Member
 
Join Date: Sep 2007
Location: India
Posts: 34
Thanks: 16
Thanked 5 Times in 1 Post
Golda is on a distinguished road
Re: e-mail Application

You can sent a mail using smtp server and mail message class.
Reply With Quote
  #4 (permalink)  
Old 08-12-2009
Junior Member
 
Join Date: Aug 2009
Location: Chennai
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
chinnakulandaiv is on a distinguished road
Re: e-mail Application

Hey u can send a mail

Top of the page

using System.Web.Mail;

method is below

button1_click

{
String Mail_to="Testmail@test.com"
MailBody = "<p align='left'><p align='left'>Dear Raj,</p><BR>";
MailBody += "<p align='left'>Good Day & Warm Greetings!</p><BR></p>";
SendMailToUser(MailBody, mail_to);
}

The method which sends the mail

public void SendMailToUser(string mailBody, string mail_to)
{

MailMessage msg = new MailMessage();
msg.From = "abc@xya.com";
msg.To = mail_to;
msg.Subject = "Test Mail";
msg.BodyFormat = MailFormat.Html;
msg.Body = mailBody;
try
{
SmtpMail.SmtpServer = System.Configuration.ConfigurationSettings.AppSettings["SMTPServerIP"];
SmtpMail.Send(msg);
}
catch (Exception excep)
{
//lblErrorMsg.Text = "Unable to send mail. Either email id is incorrect or the SMTP server is unavailable.";
}

}
Reply With Quote
Reply

  Geeks Talk > Web Development > ASP.NET

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
How to configure php mail() function in Apache server and how to use mail() function. yusuf456 PHP 0 04-02-2009 05:49 AM
Java Mail API tirupathi.reddy Java 0 01-28-2008 09:30 PM
Sending mail from web application santhi1521 Java 0 12-28-2007 04:21 AM
Query with mail in PHP sripri PHP 0 07-13-2006 10:54 PM
Photos in E-mail! Martin Lucas Geeks Lounge 0 06-20-2006 08:19 AM


All times are GMT -4. The time now is 02:45 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved