Click here to Skip to main content
15,896,201 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
i m trying to do invite friends

so plz any 1 help me.
plz provide me code
Posted
Updated 7-Dec-09 1:44am
v2

What you are trying to do and where you are getting snagged is still unclear. Are you asking how to send an email to multiple recipients at the same time? If so, it's just the same as sending any other email... you just add more recipients. Like I said, post what code you are trying and let us know what problems you are having and why you have yet to figure it out.
 
Share this answer
 
suppose there is one button "invite friend". when we clk on dis buttn gmail server opens and put all cntacts frm my gmail acct into text box. all email ids are separated with comma. after dat we clk on send button thn one link shud be send on all those email ids.

so my first part has cmpleted but 2nd part .....
how can i send link of frnd request on those email ids whatever it is in my textbox.
 
Share this answer
 
got it????? if no, Plz let me kno
 
Share this answer
 
<% activationURL = "http://www.abc.com/"
cmailTo = Request.Form("Friends_Emails")
cmailFrom = "<abc@gmail.com>"
cmailSub = "[Important] join my article"
cmailBody = activationURL
%>

<h3 class="toggler">Invite Your Friends</h3>
<div class="element">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="middle" width="2%"></td>
<td align="left" valign="middle" >
<textarea name="Friends_Emails" class="signinbox2" cols="65" rows="10" id="Friends_Emails"></textarea>
</td>
</tr>
<tr>
<td align="left" valign="middle" width="2%"></td>
<td align="left" valign="middle" class="maintext8">
<a href="javascript:void(0);" id="none" onclick="showPlaxoABChooser('Friends_Emails', '/InviteWidget.asp'); return false"><img src="http://www.plaxo.com/images/abc/buttons/add_button.gif" border="0" alt="Add from my address book" align="left" /></a>&nbsp;&nbsp;<input name="Send_Invite" type="button" value="Send Invite" class="enter" onclick="SendMail(cmailFrom, cmailTo, cmailSub, cmailBody)" />
</td>
</tr>
</table>
</div>


and fuction of javascript is

Function SendMail(mailFrom, mailTo, mailSubject, mailBody)
dim myMail
If len(trim(mailFrom))<1 Then mailFrom=" put email id "
SET myMail = Server.CreateObject("CDO.Message")
myMail.From = mailFrom
myMail.To = mailTo
myMail.Subject = mailSubject
myMail.HTMLBody = mailBody
'myMail.AddAttachment "c:\myweb\somefile.jpg"
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtpout.secureserver.net"
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") ="put email id"
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") ="wethepeople"
myMail.Configuration.Fields.Update
myMail.Send
set myMail=nothing
End Function
 
Share this answer
 
is it clear now.....
plz let me kno
 
Share this answer
 
ok. i m extremly sorry. i will keep in mind.
once again sorry.
 
Share this answer
 
v2
Please stop adding answers asking if I've read your updates. There is a whole community of people here to answer your question, you just have to phrase it well. You have violated several procedures for asking questions well, so rather than answer you, I am writing an article on how not to ask questions. That'll be done soon, but in the meantime here are some things to keep in mind:

  • It's annoying when you ask if we've received your question. Yes, we've received your question. At the top of your question page, it even shows how many times it's been viewed. Stop asking if we've read it. We'll get to it when we get to it (but we'll get to it sooner if you ask it better).
  • You are using "text speak" unnecessarily. Spell words out fully. Spelling "please" as "plz" is silly and makes you appear childish. We want to help other professionals, not children (that's what school is for).
  • Do not post updates to your question in the answers. Update your original question with new information.
  • Do not repeatedly ask the same thing. You asked us if we saw your updates, which is useless enough. Doing it repeatedly is even more annoying.
  • Format your code properly. Make sure to HTML encode it and surround it in a PRE tag and specify the lang attribute. If you posted your question and it looks funny you can edit it and correct that. But you can also preview your posts before posting them, so try to be diligent.

And that's just for starters. Now I'm going to get back to writing that article and I hope you will stop with your continuously asking us if we've seen your updates.
 
Share this answer
 
wrote:
Hello,
i m trying to do invite friends
so plz any 1 help me.
plz provide me code


How could you possibly think that someone would be able to provide you any help at all with this query?! Are you even serious?

Please read this: How to ask questions the smart way[^]

And then click "Improve question" and edit it to include something relevant such that people will be able to understand it and answer.
 
Share this answer
 

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