This topic is locked

NEED HELP - E-Mail Export Results

6/28/2009 3:22:16 PM
ASPRunnerPro General questions
B
bpawlowski author

Hello
I'm a newb, and I need some help with the export page. I'd like to add an option to the "Export" page to choose e-mail. I'd like to be able to have the user enter in an e-mail address and the export results are sent (in .pdf of HTML format) to the recipient.
If that's not possible, then I could use the "View" page (after an advanced search has been performed).
Any help would be greatly appreciated.
<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=12177&image=1&table=forumtopics' class='bbc_emoticon' alt=':)' />

Sergey Kornilov admin 6/29/2009

Ben,
unfortunately this cannot be done. You cannot attach anything to email sent from the server.

B
bpawlowski author 6/29/2009

Ben,

unfortunately this cannot be done. You cannot attach anything to email sent from the server.


Is there a way to have the export information sent within an e-mail? It doesn't have to be attached....I just need the exported results sent. Any suggestions?
Thanks;

Sergey Kornilov admin 6/30/2009

Ben,
this can be done however you need to code it manually.
You either need to modify export page so it sends data via email instead of offering to download it. Note that exported data won't look good in plain text in most cases.
In fact, if you have control over the server you can make export page save data to a temporary file and attach it to email. You still need to code this manually modifying the export page.

B
bpawlowski author 7/2/2009

Ben,

this can be done however you need to code it manually.
You either need to modify export page so it sends data via email instead of offering to download it. Note that exported data won't look good in plain text in most cases.
In fact, if you have control over the server you can make export page save data to a temporary file and attach it to email. You still need to code this manually modifying the export page.


Can you give me some example code??? I'm not really sure where to start.

B
bpawlowski author 7/2/2009



Can you give me some example code??? I'm not really sure where to start.


I have full control of a MS Business Server 2003 (this is where the app is housed). How would I get the app to save the .pdf to a local directory? Then attach it?? Space is not an issue.
Any help would be great. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=42422&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />

Sergey Kornilov admin 7/2/2009

Here are a couple of links that might help:
Saving binary data to a file

http://www.motobit.com/tips/detpg_read-write-binary-files/
Sending an email with attached file

http://www.paulsadowski.com/WSH/cdo.htm
If you need more help feel free to contact support team directly.