Click here to Skip to main content
15,904,153 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I am totally stuck

I can find parts of the solution to my problem but all in different codes that i am not skilled enough to pull together so any help would be great

In short my environment is not mine, it is a DB server (SQL) and a web server (IIS) running on a corporate network (no worries about spam).

I want to create a request form on my site that lets you request services. So what i WANT to do is

User fills in form and selects recipiant from a drop down and on clicking submit it writes to my database and emails both the requestor and the person selected from the drop down.

Is this possible?
Posted

1 solution

From Javascript, I don't think so, from HTML, I'm pretty certain not.

If you have access to .NET, it's pretty simple. You can either send the same email twice, or send it to one of the recipients as a CC or BCC.

There is a generic C# routine for sending emails here: Sending an Email in C# with or without attachments: generic routine.[^]
A System.Net.MailMessage has both CC and BCC fields, if you need to go that route - set them just like the To address.
 
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