1

Hey, im not sure if theres a technical 'term' for this, but on some social networking sites there is a 'invite your friends' page, which allows you to type your email address, and password, and send a generic invite email to everyone in the users contacts list. can anyone point me in the direction of a tutorial / old forum post that might help me learn how to do this please?

i am using asp.net.

Monodeep
  • 1,392
  • 1
  • 17
  • 39

3 Answers3

0

Basically you need to use SmtpClient to send your emails, and have a template of the email you want to send. don't know what else can be told about it.

Bogdan Verbenets
  • 25,686
  • 13
  • 66
  • 119
0

Create a page with multiple text boxes and generic invite message text box.

On Button click do this

MailMessage message = new MailMessage(txtFrom.Text, txtTo.Text, txtSubject.Text, 
  txtInvite.Text); //You can interate through all text boses to reach to a final TO list
SmtpClient emailClient = new SmtpClient(txtSMTPServer.Text);
System.Net.NetworkCredential SMTPUserInfo = 
  new System.Net.NetworkCredential(<GetUserFromConfig>, <GetPasswordFromConfig>);
emailClient.UseDefaultCredentials = false;
emailClient.Credentials = SMTPUserInfo;
emailClient.Send(message);

There are different variants here, like Authentication, SMTP settings etc. For that, you will have to understand them first, so here are two links which should help you out

ASP.Net Offical Site

Tutorial

Subhash Dike
  • 1,836
  • 1
  • 22
  • 37
0

Find here : How-to Import contacts from hotmail, live, gmail, yahoo

Community
  • 1
  • 1
Govind Malviya
  • 13,627
  • 17
  • 68
  • 94
  • http://sourceforge.net/projects/opencontactsnet/ how do i use this api in my website?? – Monodeep Apr 26 '11 at 11:24
  • @Monodeep : read this one I think u have to use individual techniques for that http://stackoverflow.com/questions/3002967/c-library-that-extracts-gmail-yahoomail-and-aol-contacts – Govind Malviya Apr 26 '11 at 11:27
  • http://sourceforge.net/projects/opencontactsnet/ this project also have console example application you can use in webform application also... – Govind Malviya Apr 26 '11 at 11:33