Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,

I am doing an assignment where I have to do a code for sending of notification. When a user edits a booking or cancels a booking, the system will automatically generate a notification that will be sent to their email and will prompt the user to accept or decline it.

What I have tried:

I am having problems with this part of the code please help me thank you!
Posted
Updated 21-Jan-18 22:17pm
v2
Comments
David_Wimbley 20-Jan-18 22:12pm    
What problems are having? We can't help you if you don't explain what the issue is.
Member 13634434 21-Jan-18 1:10am    
Its not really a problem, its more like I don't really know how to start on this?
Foothill 22-Jan-18 10:57am    
Sending email can be quite simple. Start with the System.Net.Mail namespace. There are lots of examples on how to send an email.
Laxmidhar tatwa technologies 23-Jan-18 10:04am    
pl mension the app like asp.net or windows app and whta are the table structure
again what is the control u use

1 solution

If you've managed to build a book application i don't understand how are unable to build functionality in that sends an email to the person making the booking.

This seems pretty straight forward and I imagine you are over complicating what you are trying to do, where you save the booking in the app, you build out an email template, get the persons address, send the email with a link to click if they accept the booking.

For accepting the booking, expose an API endpoint that accepts say...booking id and "ACCEPTED"...then within this api mark this booking as confirmed and if the second parameter passed back is DECLINED then mark the booking as declined.

I'm not sure how technically adept you are but if you've managed to build a booking app but can't work out how to confirm those bookings (not an insult) then I would suggest you break the issue down into smaller pieces and start to tackle your problems in that manner. For example...if you don't know how to send an email in C#...then i'd start by googling "How to send emails with C#". From there if you don't know how to save data to a database then i'd google "How to save data to DB c#"...etc.
 
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