473,800 Members | 2,475 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Email the content of an ASP page using the email client

Hi,

Thanks in advance for any help you can provide. I have a frameset and
one of the frames contains a page that is created on the fly, an
actual word document. I want to have a button in one of the other
frames that emails this created page as an email attachment using the
email client (outlook or whatever). I created a function as follows:

<script language="JavaS cript">
function mailIt()
var page = parent.QandA;
document.write 'mailto: se******@exampl e.com?subject=The
document&Attach ment=';
document.write page;
}
</script>
Which is then called from a button, but it doesnt work! QandA is the
name of the frame that contains the document I want to email as the
attachment. Can anyone help please??!
Thanks
Jul 20 '05 #1
9 1664
In article <7d************ **************@ posting.google. com>,
ni*********@hot mail.com says...
Hi,

Thanks in advance for any help you can provide. I have a frameset and
one of the frames contains a page that is created on the fly, an
actual word document. I want to have a button in one of the other
frames that emails this created page as an email attachment using the
email client (outlook or whatever). I created a function as follows:

<script language="JavaS cript">
function mailIt()
var page = parent.QandA;
document.write 'mailto: se******@exampl e.com?subject=The
document&Attach ment=';
document.write page;
}
</script>
Which is then called from a button, but it doesnt work! QandA is the
name of the frame that contains the document I want to email as the
attachment. Can anyone help please??!


Use a server-side process to do it. Your example mailto: code above is
faulty.

--
Hywel I do not eat quiche
http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php
Jul 20 '05 #2
Hywel Jenkins <hy**********@h otmail.com> wrote in message news:<MP******* *************** **@news.individ ual.net>...
In article <7d************ **************@ posting.google. com>,
ni*********@hot mail.com says...
Hi,

Thanks in advance for any help you can provide. I have a frameset and
one of the frames contains a page that is created on the fly, an
actual word document. I want to have a button in one of the other
frames that emails this created page as an email attachment using the
email client (outlook or whatever). I created a function as follows:

<script language="JavaS cript">
function mailIt()
var page = parent.QandA;
document.write 'mailto: se******@exampl e.com?subject=The
document&Attach ment=';
document.write page;
}
</script>
Which is then called from a button, but it doesnt work! QandA is the
name of the frame that contains the document I want to email as the
attachment. Can anyone help please??!


Use a server-side process to do it. Your example mailto: code above is
faulty.

Thanks for your help. Any ideas as to what the code should be? I still
cant get it to work :(
Jul 20 '05 #3
In article <7d************ **************@ posting.google. com>,
ni*********@hot mail.com enlightened us with...
Which is then called from a button, but it doesnt work! QandA is the
name of the frame that contains the document I want to email as the
attachment. Can anyone help please??!


Use a server-side process to do it. Your example mailto: code above is
faulty.

Thanks for your help. Any ideas as to what the code should be? I still
cant get it to work :(


Do you have ASP CDONTS?
http://www.codefixer.com/tutorials/email_cdonts.asp

Any more questions on ASP should be directed to the ASP groups over at
msnews.microsof t.com.

If you have JSP or PHP, I have code to mail with either of those, too.

--
--
~kaeli~
A little rudeness and disrespect can elevate a meaningless
interaction to a battle of wills and add drama to an
otherwise dull day.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #4
In article <7d************ **************@ posting.google. com>,
ni*********@hot mail.com says...
Hywel Jenkins <hy**********@h otmail.com> wrote in message news:<MP******* *************** **@news.individ ual.net>...
In article <7d************ **************@ posting.google. com>,
ni*********@hot mail.com says...
<script language="JavaS cript">
function mailIt()
var page = parent.QandA;
document.write 'mailto: se******@exampl e.com?subject=The
document&Attach ment=';
document.write page;
}
</script>

Use a server-side process to do it. Your example mailto: code above is
faulty.

Thanks for your help. Any ideas as to what the code should be? I still
cant get it to work :(


You can't add a subject and an attachment with mailto - just set the
recipient. I have no idea what the ASP code for a form handler that
would suit you, but you're barking way up the wrong tree with what
you've got.

--
Hywel I do not eat quiche
http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php
Jul 20 '05 #5

Do you have a mail component available to you on your server ... such
as ASPEmail, CDONTs, or something ... if so, tell me, and I will
supply you with a subroutine to use for the email.

Brynn
www.coolpier.com


On 7 Jan 2004 07:18:52 -0800, ni*********@hot mail.com (NickH) wrote:
Hi,

Thanks in advance for any help you can provide. I have a frameset and
one of the frames contains a page that is created on the fly, an
actual word document. I want to have a button in one of the other
frames that emails this created page as an email attachment using the
email client (outlook or whatever). I created a function as follows:

<script language="JavaS cript">
function mailIt()
var page = parent.QandA;
document.write 'mailto: se******@exampl e.com?subject=The
document&Attac hment=';
document.write page;
}
</script>
Which is then called from a button, but it doesnt work! QandA is the
name of the frame that contains the document I want to email as the
attachment. Can anyone help please??!
Thanks


Brynn
www.coolpier.com

I participate in the group to help give examples of code.
I do not guarantee the effects of any code posted.
Test all code before use!
Jul 20 '05 #6
z@z.com (Brynn) wrote in message news:<40******* *******@news.co mcast.giganews. com>...
Do you have a mail component available to you on your server ... such
as ASPEmail, CDONTs, or something ... if so, tell me, and I will
supply you with a subroutine to use for the email.

Brynn
www.coolpier.com


On 7 Jan 2004 07:18:52 -0800, ni*********@hot mail.com (NickH) wrote:
Hi,

Thanks in advance for any help you can provide. I have a frameset and
one of the frames contains a page that is created on the fly, an
actual word document. I want to have a button in one of the other
frames that emails this created page as an email attachment using the
email client (outlook or whatever). I created a function as follows:

<script language="JavaS cript">
function mailIt()
var page = parent.QandA;
document.write 'mailto: se******@exampl e.com?subject=The
document&Attac hment=';
document.write page;
}
</script>
Which is then called from a button, but it doesnt work! QandA is the
name of the frame that contains the document I want to email as the
attachment. Can anyone help please??!
Thanks


Brynn
www.coolpier.com

I participate in the group to help give examples of code.
I do not guarantee the effects of any code posted.
Test all code before use!

Hi Brynn

The server has the CDONTS mail component. Thanks for any help!

Nick
Jul 20 '05 #7
Checkout the microsoft.publi c.inetserver.as p.general group for a post
called ... Email_Handler.a sp

It will be up in a few minutes

Brynn


On 21 Jan 2004 23:59:17 -0800, ni*********@hot mail.com (NickH) wrote:
z@z.com (Brynn) wrote in message news:<40******* *******@news.co mcast.giganews. com>...
Do you have a mail component available to you on your server ... such
as ASPEmail, CDONTs, or something ... if so, tell me, and I will
supply you with a subroutine to use for the email.

Brynn
www.coolpier.com


On 7 Jan 2004 07:18:52 -0800, ni*********@hot mail.com (NickH) wrote:
>Hi,
>
>Thanks in advance for any help you can provide. I have a frameset and
>one of the frames contains a page that is created on the fly, an
>actual word document. I want to have a button in one of the other
>frames that emails this created page as an email attachment using the
>email client (outlook or whatever). I created a function as follows:
>
><script language="JavaS cript">
>function mailIt()
> var page = parent.QandA;
> document.write 'mailto: se******@exampl e.com?subject=The
>document&Attac hment=';
> document.write page;
> }
></script>
>Which is then called from a button, but it doesnt work! QandA is the
>name of the frame that contains the document I want to email as the
>attachment. Can anyone help please??!
>Thanks


Brynn
www.coolpier.com

I participate in the group to help give examples of code.
I do not guarantee the effects of any code posted.
Test all code before use!

Hi Brynn

The server has the CDONTS mail component. Thanks for any help!

Nick


Brynn
www.coolpier.com

I participate in the group to help give examples of code.
I do not guarantee the effects of any code posted.
Test all code before use!
Jul 20 '05 #8
Hywel Jenkins wrote:
You can't add a subject and an attachment with mailto [...]


In fact, you *can* add a Subject, that header is believed to
be safe along with Keywords and Body:

http://www.ietf.org/rfc/rfc2368.txt

The problem is buggy implementations . You are right for the
attachment, however, and thus the server-side app is the best
bet (not to mention people who do not use a mail client whose
numbers are apparently increasing.)
PointedEars
Jul 20 '05 #9
Thomas 'PointedEars' Lahn wrote:
Hywel Jenkins wrote:

You can't add a subject and an attachment with mailto [...]

In fact, you *can* add a Subject, that header is believed to
be safe along with Keywords and Body:

http://www.ietf.org/rfc/rfc2368.txt

The problem is buggy implementations . You are right for the
attachment, however, and thus the server-side app is the best
bet (not to mention people who do not use a mail client whose
numbers are apparently increasing.)


And its the lack of a default mail client that will cause mailto: to be
as unreliable as it is. Of all the browsers I have installed, the only
one that has a default mail client is AOL and thats because I can't
disable it.

--
Randy
Chance Favors The Prepared Mind

Jul 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
14239
by: lucanos | last post by:
Hey All, I'm having trouble trying to create a PHP file which will generate a multipart email message (containing both an HTML formatted part and a Plain Text formatted part). I have Googled for it, and found previous entries in Google Groups, but I just can't get it to work. My PHP File contains the following:
0
9876
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ********************************** package Celcom.Client;
88
12571
by: Mike | last post by:
Is there a way to determine what a user's default email client is? I read a post from 3 years ago that said no. I guess I'm hoping something has come along since then.
24
7132
by: Arno R | last post by:
Hi all, I have a client with several shoe-shops. Customers can leave their email-address if they want to be notified when there is a sale. Input is validated with instr() I am checking for @ and . (required) and also checking for spaces (not allowed). But: A LOT (5-10%) of the addresses still are wrong; (provider doesn't exist) or email-address not valid (anymore). When sending bulk-mail its a nasty problem to get the false addresses...
5
3093
by: Das | last post by:
Hi, I'm trying to email html page & that page also contains the images. I can do that when we send html page from ms outlook. But I want to attach page c# code & send the mail through smtp mail. Thanx in advance.. Regards,
7
2153
by: Martin | last post by:
Hi, I have a standard aspx page (form) that contains a few user controls. Upon form submission the page is validated. If validation passses then a text based email is sent. This is all working fine, however what I would like to do is sent the entire contents of the posted back page as a HTML email. Is this possible and if so could somebody point me in the right direction to achieving this.
13
31430
by: =?Utf-8?B?S2VzdGZpZWxk?= | last post by:
Hi Our company has a .Net web service that, when called via asp.net web pages across our network works 100%! The problem is that when we try and call the web service from a remote machine, one outside of our domain, we get the error.. ** Client found response content type of 'text/html; charset=Windows-1252', but expected 'text/xml' **. We can discover the web service by typing in the url of the asmx so we know the server can 'see' it...
0
2162
by: anu b | last post by:
Now i am sending email to my friend using session variable... but my code is as below private bool SendEmail(string email) { try {
3
7244
by: anu b | last post by:
Hii I am using System.net.mail for sending email... i need to send a webpage with its html content as my email body .....for that i used mail.Isbodyhtml as true...but it is not working for me so pls help me....
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10276
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10253
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10035
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9090
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7580
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5471
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5606
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.