Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Actually i ve a button ,when i click the button i need to sent the pdf file from my local folder to my mail id ,i need to get my mail id is from database , i need this from a single button click event, in design page only button, pls can u help me,its urgent
Posted
Updated 16-Dec-11 23:01pm
v3

Have you heard about algorithms? Do step by step flow of your logic, in an end you will get what you want.

1. first fetch E-Mail from database depend on userid.
2. get PDF file location from your machine, which you want to attach.
3. Write a SMTP server module to send email with attachment.

Work done.
 
Share this answer
 
v2
Comments
resonance_siv 17-Dec-11 5:16am    
me 5 for u kool...
try something like this

1.first choose the path of the pdf file.u can do it by using methods and properties.plenty available in .net
2.use database connection to retrieve the mail-id .
3.for mail sending use the MailMessage class and use its properties like to,from,attachment,priority,subject,body and send the mail.

hope this will be helpful.
jus u can get logic is here and process it.

Regards,
siv
 
Share this answer
 
v2

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