Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I'm trying to send email from my as

Status
Not open for further replies.

Eduu

Programmer
Feb 9, 2006
17
YU
I'm trying to send email from my asp application. I don't mind if I have to do it on my server-side or client-side script.
I want to use my exchange to do this. I want to be able to let the user select his recipients from a dialog box, containing the names in his address book. Is this possible? If it is how can I do this?
 
If you want the addresses chosen from the use address book then then you will have to do it client side:

HTML:
<a href=&quot;mailto:&quot;>email</a>

this will open a new message window where the user can choose from thier own address list (by pressing the To button in outlook)

if you want them to be able to see server email addresses then use CDONTS, this is obviously slightly more involved but there are loads of examples on the net of how to do it
 
Thanks, but that isn't exactly what I wanted. I want to be able to customize the message programmatically and have the user only select the recipients.
Where can I find the CDONTS examples?
 
You can also use some more params in your hyperlink, although you have to test it thoroughly in your browser population (if possible):
<a href=&quot;mailto:&subject=test_subject&body=TEST_BODY&quot;>email</email>

good luck,
Cosmin
 
You can present the user with a list of recipients, each recipient having a checkbox next to thier name. Once you wish to fire off the email use javascript to get all the recipients with checkboxes next to there name and then in script build up the mailto link and then fire it off. This is quite a common method actually. You can specify the body text the subject and the recipients in the mailto link.

CDONTS Examples:


good one:

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top