I generate a page that is a receipt and want to send a receipt to the person from the web page.
Can I create an image from the page and attach the image to the email or must a save the page in memory and attach the page and how do I d this.
Any suggestions would be greatly appreciated.
Why are you attaching the whole page? What about just creating an email using the system.web.mail namespace, sticking in recipt details and sending it? It doesn't have to be the actual web page you send them.
Please mark posts as the answer if I was helpful. Thanks!
For images, you would want to look into GDI+. You could also do HTML email, which I've seen done, and it looks just as professional. It would probably be better because an images is going to be a large size for an 8.5x11 file, whereas the HTML is going to
be rather small.
Brian
"Trust in the Lord and do what is good; dwell in the land and live securely. Take delight in the Lord, and He will give you your heart's desires" (Psalm 37: 3-4).
I am lazy and the most of the details get posted to the webpage and I don’t save the details and I don’t want to go line by line and create the body of the email.
2 min go I found the example I was looking for. [:D]
I don’t attach it any more I just use html email but how many people can’t read html e-mail’s, how can I create a attachment using
Web.Mail.MailMessage with out saving the file and deleting it afterwards?
Biovolt
Member
110 Points
22 Posts
I generate a page that is a receipt and want to send a receipt to the person from the web page.
Jun 23, 2005 08:21 AM|LINK
I generate a page that is a receipt and want to send a receipt to the person from the web page.
Can I create an image from the page and attach the image to the email or must a save the page in memory and attach the page and how do I d this.
Any suggestions would be greatly appreciated.
ParrotBoy
Contributor
2379 Points
487 Posts
Re: I generate a page that is a receipt and want to send a receipt to the person from the web page.
Jun 23, 2005 10:32 AM|LINK
Visit my blog
bmains
All-Star
28851 Points
5839 Posts
MVP
Re: I generate a page that is a receipt and want to send a receipt to the person from the web page.
Jun 23, 2005 11:58 AM|LINK
"Trust in the Lord and do what is good; dwell in the land and live securely. Take delight in the Lord, and He will give you your heart's desires" (Psalm 37: 3-4).
Biovolt
Member
110 Points
22 Posts
Re: I generate a page that is a receipt and want to send a receipt to the person from the web page.
Jun 23, 2005 12:27 PM|LINK
I am lazy and the most of the details get posted to the webpage and I don’t save the details and I don’t want to go line by line and create the body of the email.
2 min go I found the example I was looking for. [:D]
http://west-wind.com/weblog/posts/481.aspx but thanx
I don’t attach it any more I just use html email but how many people can’t read html e-mail’s, how can I create a attachment using Web.Mail.MailMessage with out saving the file and deleting it afterwards?