Thursday, March 22, 2012

SmtpMail body from .aspx file

I want to email a detailed report of stuff pulled from a database. I want to have page A have a textbox and button where you enter the users email and click go.

I would love it if it is possible to do something like:

SmtpMail.body = pageb.aspx

Is this even possible?

Thanks for looking

daveI'm not sure that its possible to send an aspx page in this manner

have a look at

http://www.4guysfromrolla.com/webtech/080801-1.shtml

and think about compiling the report in the body of an email.
it can be text or html formatted.

cheers

funkybeatz
Thanks, I've sent normal mail many times, so I understand how to build and send the message. I was just hoping to avoid having one giant body string that I have to construct from loads of text intermingled with loads of variables.

I've done <asp:image> src value as "getImage.aspx?id=37" and it would call that page, which in turn performed the image lookup. I was hoping to do something similar.

Thanks for trying to help

dave

0 comments:

Post a Comment