Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: ASP Mail


Message #1 by "Hiro Shiratori" <hiro-shiratori@m...> on Fri, 18 Jan 2002 10:27:51 -0800
Hello, developers:



I have a question on the asp mail form.

I have the following codes, but nothing appears on the browser.

It is just a blank white screen.

Do you know how to fix this problem?



Best regards,

Hiro



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

<%

Set Mail =3D Server.CreateObject("Persits.MailSender")

Mail.Host =3D "mail.MyDomain.com"

Mail.From =3D ""



Mail.FromName =3D ""

Mail.AddAddress "support@M...", "Support Team."

Mail.AddAddress "info@M..."



Mail.AddReplyTo "info@t..."

Mail.Subject =3D "Thanks for contacting us!"

Mail.Body =3D "Dear " & Request.Form("FirstName") & ":" & Chr(13) & 

Chr(10) &

_

     "Thank you for your business."



On Error Resume Next



Mail.Send 'this actually sends the email



If Err <> 0 Then

   Response.Write "Error encountered: " & Err.Description

End If

%>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Message #2 by "Kim Iwan Hansen" <kimiwan@k...> on Fri, 18 Jan 2002 19:48:03 +0100
If Err <> 0 Then

   Response.Write "Error encountered: " & Err.Description

Else

   Response.Write "Master, I have mail for you"

End If





Just because it sends an email doesn't mean it also produces some output on

the screen ;)



-Kim







> -----Original Message-----

> From: Hiro Shiratori [mailto:hiro-shiratori@m...]

> Sent: 18. januar 2002 19:28

> To: ASP Databases

> Subject: [asp_databases] ASP Mail

>

>

> Hello, developers:

>

> I have a question on the asp mail form.

> I have the following codes, but nothing appears on the browser.

> It is just a blank white screen.

> Do you know how to fix this problem?

>

> Best regards,

> Hiro

>

> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> <%

> Set Mail = Server.CreateObject("Persits.MailSender")

> Mail.Host = "mail.MyDomain.com"

> Mail.From = ""

>

> Mail.FromName = ""

> Mail.AddAddress "support@M...", "Support Team."

> Mail.AddAddress "info@M..."

>

> Mail.AddReplyTo "info@t..."

> Mail.Subject = "Thanks for contacting us!"

> Mail.Body = "Dear " & Request.Form("FirstName") & ":" & Chr(13) &

> Chr(10) &

> _

>      "Thank you for your business."

>

> On Error Resume Next

>

> Mail.Send 'this actually sends the email

>

> If Err <> 0 Then

>    Response.Write "Error encountered: " & Err.Description

> End If

> %>

> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

>

>




> $subst('Email.Unsub').

>



Message #3 by "Drew, Ron" <RDrew@B...> on Fri, 18 Jan 2002 14:57:09 -0500
No screen output on this code for the client.  Add an ELSE to your check

for error and add a

Response.Write "The Mail Has Been Sent"       ' or something like that



-----Original Message-----

From: Hiro Shiratori [mailto:hiro-shiratori@m...]

Sent: Friday, January 18, 2002 1:28 PM

To: ASP Databases

Subject: [asp_databases] ASP Mail





Hello, developers:



I have a question on the asp mail form.

I have the following codes, but nothing appears on the browser. It is

just a blank white screen. Do you know how to fix this problem?



Best regards,

Hiro



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

<%

Set Mail =3D Server.CreateObject("Persits.MailSender")

Mail.Host =3D "mail.MyDomain.com"

Mail.From =3D ""



Mail.FromName =3D ""

Mail.AddAddress "support@M...", "Support Team." Mail.AddAddress

"info@M..."



Mail.AddReplyTo "info@t..."

Mail.Subject =3D "Thanks for contacting us!"

Mail.Body =3D "Dear " & Request.Form("FirstName") & ":" & Chr(13) &

Chr(10) & _

     "Thank you for your business."



On Error Resume Next



Mail.Send 'this actually sends the email



If Err <> 0 Then

   Response.Write "Error encountered: " & Err.Description

End If

%>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~








$subst('Email.Unsub').

Message #4 by "Hiro Shiratori" <hiro-shiratori@m...> on Fri, 18 Jan 2002 17:13:12 -0800
Hello, Ron & Kim!



Thank you so much.  You, guys, are great!

Now, it shows a message.

<FORM METHOD=3DPOST ACTION=3D"Register.asp"> is working.

I'm getting close to what I want to accomplish.



What I am trying to do is:

After the user put the necessary information on the following form, he 

or she

hits the SEND button to send this whole message, which has a hyperlink 

to

the e-mail address as <a href=3D"mailto:support@M...">

Would you advise me how I can make this happen?



Best regards,

Hiro Shiratori



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

<HTML>

<HEAD>

<META HTTP-EQUIV=3D"Content-Type" content=3D"text/html; 

charset=3Diso-8859-1">

<TITLE>AspEmail</TITLE>

</HEAD>

<BODY BGCOLOR=3D"#FFFFFF">

<BASEFONT FACE=3D"Arial, Helvetica">

<TABLE WIDTH=3D"500" BGCOLOR=3D"#C0C0C0" BORDER=3D2 CELLPADDING=3D0 

CELLSPACING=3D3>

<TD>

<TABLE WIDTH=3D"100%" BGCOLOR=3D"#C0C0C0" BORDER=3D0 CELLPADDING=3D2 

CELLSPACING=3D0>

<FORM METHOD=3DPOST ACTION=3D"Register.asp">

 <TR>

  <TD BGCOLOR=3D"#808080" ALIGN=3DRIGHT><FONT 

COLOR=3D"#FFFFFF">To:</FONT></TD>

  <TD BGCOLOR=3D"#E0E0E0">

        <font face=3D"Arial" size=3D"3">

  &nbsp;support@M...</font>

  </TD>

  <TD BGCOLOR=3D"#E0E0E0"ALIGN=3DRIGHT>&nbsp;</TD>

 </TR>

</FORM><FORM METHOD=3DPOST ACTION=3D"Register.asp">

 <TR>

  <TD BGCOLOR=3D"#808080" ALIGN=3DRIGHT><FONT 

COLOR=3D"#FFFFFF">Subject:</FONT></TD><TD BGCOLOR=3D"#E0E0E0"><INPUT 

SIZE=3D30 NAME=3D"Subject" VALUE=3D"User Name & Password 

Request"></TD><TD ALIGN=3DRIGHT BGCOLOR=3D"#E0E0E0">&nbsp;</TD>

 </TR>

 <TR>

  <TD ALIGN=3DLEFT BGCOLOR=3D"#C0C0C0" COLSPAN=3D3><TEXTAREA 

NAME=3D"Body" COLS=3D70 ROWS=3D12>

Your E-mail Address:

First Name:

Last Name:

Company Name:

Address:

City:

State:

Zip:

Country:

TEL:

FAX:</TEXTAREA></TD>

 </TR>

 <TR>

  <TD BGCOLOR=3D"#C0C0C0"><a href=3D"mailto:support@M...">

<INPUT TYPE=3DSUBMIT NAME=3D"SEND" VALUE=3D"Send"></a></TD>

  <TD BGCOLOR=3D"#C0C0C0" COLSPAN=3D2>  

  </TD>

 </TR>

</FORM>

</TABLE>

</TD>

</TABLE>

</BODY>

</HTML>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



----- Original Message -----

From: "Kim Iwan Hansen" <kimiwan@k...>

To: "ASP Databases" <asp_databases@p...>

Sent: Friday, January 18, 2002 10:48 AM

Subject: [asp_databases] RE: ASP Mail





> If Err <> 0 Then

>    Response.Write "Error encountered: " & Err.Description

> Else

>    Response.Write "Master, I have mail for you"

> End If

>

> Just because it sends an email doesn't mean it also produces some 

output on

> the screen ;)

>

> -Kim

>

> > -----Original Message-----

> > From: Hiro Shiratori [mailto:hiro-shiratori@m...]

> > Sent: 18. januar 2002 19:28

> > To: ASP Databases

> > Subject: [asp_databases] ASP Mail

> >

> > Hello, developers:

> >

> > I have a question on the asp mail form.

> > I have the following codes, but nothing appears on the browser.

> > It is just a blank white screen.

> > Do you know how to fix this problem?

> >

> > Best regards,

> > Hiro

> >

> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> > <%

> > Set Mail =3D Server.CreateObject("Persits.MailSender")

> > Mail.Host =3D "mail.MyDomain.com"

> > Mail.From =3D ""

> >

> > Mail.FromName =3D ""

> > Mail.AddAddress "support@M...", "Support Team."

> > Mail.AddAddress "info@M..."

> >

> > Mail.AddReplyTo "info@t..."

> > Mail.Subject =3D "Thanks for contacting us!"

> > Mail.Body =3D "Dear " & Request.Form("FirstName") & ":" & Chr(13) &

> > Chr(10) &

> > _

> >      "Thank you for your business."

> >

> > On Error Resume Next

> >

> > Mail.Send 'this actually sends the email

> >

> > If Err <> 0 Then

> >    Response.Write "Error encountered: " & Err.Description

> > End If

> > %>

> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> >



> > $subst('Email.Unsub').

> >



$subst('Email.Unsub').



Message #5 by "Kim Iwan Hansen" <kimiwan@k...> on Sat, 19 Jan 2002 09:15:15 +0100
Why do you want to open a new email window on the client??



-Kim







> -----Original Message-----

> From: Hiro Shiratori [mailto:hiro-shiratori@m...]

> Sent: 19. januar 2002 02:13

> To: ASP Databases

> Subject: [asp_databases] RE: ASP Mail

>

>

> Hello, Ron & Kim!

>

> Thank you so much.  You, guys, are great!

> Now, it shows a message.

> <FORM METHOD=POST ACTION="Register.asp"> is working.

> I'm getting close to what I want to accomplish.

>

> What I am trying to do is:

> After the user put the necessary information on the following

> form, he or she

> hits the SEND button to send this whole message, which has a hyperlink to

> the e-mail address as <a href="mailto:support@M...">

> Would you advise me how I can make this happen?

>

> Best regards,

> Hiro Shiratori

>

> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> <HTML>

> <HEAD>

> <META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">

> <TITLE>AspEmail</TITLE>

> </HEAD>

> <BODY BGCOLOR="#FFFFFF">

> <BASEFONT FACE="Arial, Helvetica">

> <TABLE WIDTH="500" BGCOLOR="#C0C0C0" BORDER=2 CELLPADDING=0 CELLSPACING=3>

> <TD>

> <TABLE WIDTH="100%" BGCOLOR="#C0C0C0" BORDER=0 CELLPADDING=2

> CELLSPACING=0>

> <FORM METHOD=POST ACTION="Register.asp">

>  <TR>

>   <TD BGCOLOR="#808080" ALIGN=RIGHT><FONT COLOR="#FFFFFF">To:</FONT></TD>

>   <TD BGCOLOR="#E0E0E0">

>         <font face="Arial" size="3">

>   &nbsp;support@M...</font>

>   </TD>

>   <TD BGCOLOR="#E0E0E0"ALIGN=RIGHT>&nbsp;</TD>

>  </TR>

> </FORM><FORM METHOD=POST ACTION="Register.asp">

>  <TR>

>   <TD BGCOLOR="#808080" ALIGN=RIGHT><FONT

> COLOR="#FFFFFF">Subject:</FONT></TD><TD BGCOLOR="#E0E0E0"><INPUT

> SIZE=30 NAME="Subject" VALUE="User Name & Password

> Request"></TD><TD ALIGN=RIGHT BGCOLOR="#E0E0E0">&nbsp;</TD>

>  </TR>

>  <TR>

>   <TD ALIGN=LEFT BGCOLOR="#C0C0C0" COLSPAN=3><TEXTAREA

> NAME="Body" COLS=70 ROWS=12>

> Your E-mail Address:

> First Name:

> Last Name:

> Company Name:

> Address:

> City:

> State:

> Zip:

> Country:

> TEL:

> FAX:</TEXTAREA></TD>

>  </TR>

>  <TR>

>   <TD BGCOLOR="#C0C0C0"><a href="mailto:support@M...">

> <INPUT TYPE=SUBMIT NAME="SEND" VALUE="Send"></a></TD>

>   <TD BGCOLOR="#C0C0C0" COLSPAN=2>

>   </TD>

>  </TR>

> </FORM>

> </TABLE>

> </TD>

> </TABLE>

> </BODY>

> </HTML>

> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

>

> ----- Original Message -----

> From: "Kim Iwan Hansen" <kimiwan@k...>

> To: "ASP Databases" <asp_databases@p...>

> Sent: Friday, January 18, 2002 10:48 AM

> Subject: [asp_databases] RE: ASP Mail

>

>

> > If Err <> 0 Then

> >    Response.Write "Error encountered: " & Err.Description

> > Else

> >    Response.Write "Master, I have mail for you"

> > End If

> >

> > Just because it sends an email doesn't mean it also produces

> some output on

> > the screen ;)

> >

> > -Kim

> >

> > > -----Original Message-----

> > > From: Hiro Shiratori [mailto:hiro-shiratori@m...]

> > > Sent: 18. januar 2002 19:28

> > > To: ASP Databases

> > > Subject: [asp_databases] ASP Mail

> > >

> > > Hello, developers:

> > >

> > > I have a question on the asp mail form.

> > > I have the following codes, but nothing appears on the browser.

> > > It is just a blank white screen.

> > > Do you know how to fix this problem?

> > >

> > > Best regards,

> > > Hiro

> > >

> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> > > <%

> > > Set Mail = Server.CreateObject("Persits.MailSender")

> > > Mail.Host = "mail.MyDomain.com"

> > > Mail.From = ""

> > >

> > > Mail.FromName = ""

> > > Mail.AddAddress "support@M...", "Support Team."

> > > Mail.AddAddress "info@M..."

> > >

> > > Mail.AddReplyTo "info@t..."

> > > Mail.Subject = "Thanks for contacting us!"

> > > Mail.Body = "Dear " & Request.Form("FirstName") & ":" & Chr(13) &

> > > Chr(10) &

> > > _

> > >      "Thank you for your business."

> > >

> > > On Error Resume Next

> > >

> > > Mail.Send 'this actually sends the email

> > >

> > > If Err <> 0 Then

> > >    Response.Write "Error encountered: " & Err.Description

> > > End If

> > > %>

> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> > >



> > > $subst('Email.Unsub').

> > >



> $subst('Email.Unsub').

>

>




> $subst('Email.Unsub').

>



Message #6 by "Hiro Shiratori" <hiro-shiratori@m...> on Sat, 19 Jan 2002 14:10:13 -0800
Hello, Kim:



Thanks for your e-mail.  I should have explained earlier.

There are two projects: one for internal small groups,

and the other for the general use.

I'd like to collect more information for the general use project,

and I'd like to use, I mean I'd like to learn a different method.

Therefore, on the second one, I was trying to use the SEND

button with <a href=3D"mailto:support@M...">.

Is this possible?



Best regards,

Hiro Shiratori



----- Original Message -----

From: "Kim Iwan Hansen" <kimiwan@k...>

To: "ASP Databases" <asp_databases@p...>

Sent: Saturday, January 19, 2002 12:15 AM

Subject: [asp_databases] RE: ASP Mail





> Why do you want to open a new email window on the client??

>

> -Kim

>

> > -----Original Message-----

> > From: Hiro Shiratori [mailto:hiro-shiratori@m...]

> > Sent: 19. januar 2002 02:13

> > To: ASP Databases

> > Subject: [asp_databases] RE: ASP Mail

> >

> > Hello, Ron & Kim!

> >

> > Thank you so much.  You, guys, are great!

> > Now, it shows a message.

> > <FORM METHOD=3DPOST ACTION=3D"Register.asp"> is working.

> > I'm getting close to what I want to accomplish.

> >

> > What I am trying to do is:

> > After the user put the necessary information on the following

> > form, he or she

> > hits the SEND button to send this whole message, which has a 

hyperlink to

> > the e-mail address as <a href=3D"mailto:support@M...">

> > Would you advise me how I can make this happen?

> >

> > Best regards,

> > Hiro Shiratori

> >

> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> > <HTML>

> > <HEAD>

> > <META HTTP-EQUIV=3D"Content-Type" content=3D"text/html; 

charset=3Diso-8859-1">

> > <TITLE>AspEmail</TITLE>

> > </HEAD>

> > <BODY BGCOLOR=3D"#FFFFFF">

> > <BASEFONT FACE=3D"Arial, Helvetica">

> > <TABLE WIDTH=3D"500" BGCOLOR=3D"#C0C0C0" BORDER=3D2 CELLPADDING=3D0 

CELLSPACING=3D3>

> > <TD>

> > <TABLE WIDTH=3D"100%" BGCOLOR=3D"#C0C0C0" BORDER=3D0 CELLPADDING=3D2

> > CELLSPACING=3D0>

> > <FORM METHOD=3DPOST ACTION=3D"Register.asp">

> >  <TR>

> >   <TD BGCOLOR=3D"#808080" ALIGN=3DRIGHT><FONT 

COLOR=3D"#FFFFFF">To:</FONT></TD>

> >   <TD BGCOLOR=3D"#E0E0E0">

> >         <font face=3D"Arial" size=3D"3">

> >   &nbsp;support@M...</font>

> >   </TD>

> >   <TD BGCOLOR=3D"#E0E0E0"ALIGN=3DRIGHT>&nbsp;</TD>

> >  </TR>

> > </FORM><FORM METHOD=3DPOST ACTION=3D"Register.asp">

> >  <TR>

> >   <TD BGCOLOR=3D"#808080" ALIGN=3DRIGHT><FONT

> > COLOR=3D"#FFFFFF">Subject:</FONT></TD><TD BGCOLOR=3D"#E0E0E0"><INPUT

> > SIZE=3D30 NAME=3D"Subject" VALUE=3D"User Name & Password

> > Request"></TD><TD ALIGN=3DRIGHT BGCOLOR=3D"#E0E0E0">&nbsp;</TD>

> >  </TR>

> >  <TR>

> >   <TD ALIGN=3DLEFT BGCOLOR=3D"#C0C0C0" COLSPAN=3D3><TEXTAREA

> > NAME=3D"Body" COLS=3D70 ROWS=3D12>

> > Your E-mail Address:

> > First Name:

> > Last Name:

> > Company Name:

> > Address:

> > City:

> > State:

> > Zip:

> > Country:

> > TEL:

> > FAX:</TEXTAREA></TD>

> >  </TR>

> >  <TR>

> >   <TD BGCOLOR=3D"#C0C0C0"><a href=3D"mailto:support@M...">

> > <INPUT TYPE=3DSUBMIT NAME=3D"SEND" VALUE=3D"Send"></a></TD>

> >   <TD BGCOLOR=3D"#C0C0C0" COLSPAN=3D2>

> >   </TD>

> >  </TR>

> > </FORM>

> > </TABLE>

> > </TD>

> > </TABLE>

> > </BODY>

> > </HTML>

> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> >

> > ----- Original Message -----

> > From: "Kim Iwan Hansen" <kimiwan@k...>

> > To: "ASP Databases" <asp_databases@p...>

> > Sent: Friday, January 18, 2002 10:48 AM

> > Subject: [asp_databases] RE: ASP Mail

> >

> > > If Err <> 0 Then

> > >    Response.Write "Error encountered: " & Err.Description

> > > Else

> > >    Response.Write "Master, I have mail for you"

> > > End If

> > >

> > > Just because it sends an email doesn't mean it also produces

> > some output on

> > > the screen ;)

> > >

> > > -Kim

> > >

> > > > -----Original Message-----

> > > > From: Hiro Shiratori [mailto:hiro-shiratori@m...]

> > > > Sent: 18. januar 2002 19:28

> > > > To: ASP Databases

> > > > Subject: [asp_databases] ASP Mail

> > > >

> > > > Hello, developers:

> > > >

> > > > I have a question on the asp mail form.

> > > > I have the following codes, but nothing appears on the browser.

> > > > It is just a blank white screen.

> > > > Do you know how to fix this problem?

> > > >

> > > > Best regards,

> > > > Hiro

> > > >

> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> > > > <%

> > > > Set Mail =3D Server.CreateObject("Persits.MailSender")

> > > > Mail.Host =3D "mail.MyDomain.com"

> > > > Mail.From =3D ""

> > > >

> > > > Mail.FromName =3D ""

> > > > Mail.AddAddress "support@M...", "Support Team."

> > > > Mail.AddAddress "info@M..."

> > > >

> > > > Mail.AddReplyTo "info@t..."

> > > > Mail.Subject =3D "Thanks for contacting us!"

> > > > Mail.Body =3D "Dear " & Request.Form("FirstName") & ":" & 

Chr(13) &

> > > > Chr(10) &

> > > > _

> > > >      "Thank you for your business."

> > > >

> > > > On Error Resume Next

> > > >

> > > > Mail.Send 'this actually sends the email

> > > >

> > > > If Err <> 0 Then

> > > >    Response.Write "Error encountered: " & Err.Description

> > > > End If

> > > > %>

> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> > > >



> > > > $subst('Email.Unsub').

> > > >



> > $subst('Email.Unsub').

> >



> > $subst('Email.Unsub').

> >



$subst('Email.Unsub').



Message #7 by "Kim Iwan Hansen" <kimiwan@k...> on Sun, 20 Jan 2002 00:52:13 +0100
Sure you can do it in many different ways - some more useful than others.



Here's one way, using mailto:email@a... and the client's default

email program.

<form action="mailto:email@a..." method="post">

	<input type="text" name="Body">

	<input type="submit">

</form>



NOTE:



The client has little control of the sender name and email as it's the

default email client that's used. (At a school or library computer?  At your

dad's computer?  At your son's computer?  Anywhere where your own email

address hasn't been set up!)



Maybe the user wants to use his/her hotmail address instead.



Another problem could be if the user never uses his/her email program on the

computer and hence doesn't have an account properly set up.  What if the

smtp server isn't working for one or another reason?



By using a server-side script to send the email, you don't rely on the user

to do anything other than fill in the form properly - Your program takes

care of the rest, even validates the form input.



As an alternative you can send the form using GET instead of POST.  That'll

give the user a chance to select which email account on the default email

client should be used - but then your form validation won't have much effect

either when you use the mailto: method as Required fields will no longer be

a must to be able to send the email.



Of course there are scenarios where it's more user friendly to let them just

open an email from a link and fill it in, attach files and send it through

their default email client.



So sure you can do it that way, just think about who's gonna use it and how

much you want to be in control :)





-Kim, control freak ;)







> -----Original Message-----

> From: Hiro Shiratori [mailto:hiro-shiratori@m...]

> Sent: 19. januar 2002 23:10

> To: ASP Databases

> Subject: [asp_databases] RE: ASP Mail

>

>

> Hello, Kim:

>

> Thanks for your e-mail.  I should have explained earlier.

> There are two projects: one for internal small groups,

> and the other for the general use.

> I'd like to collect more information for the general use project,

> and I'd like to use, I mean I'd like to learn a different method.

> Therefore, on the second one, I was trying to use the SEND

> button with <a href="mailto:support@M...">.

> Is this possible?

>

> Best regards,

> Hiro Shiratori

>

> ----- Original Message -----

> From: "Kim Iwan Hansen" <kimiwan@k...>

> To: "ASP Databases" <asp_databases@p...>

> Sent: Saturday, January 19, 2002 12:15 AM

> Subject: [asp_databases] RE: ASP Mail

>

>

> > Why do you want to open a new email window on the client??

> >

> > -Kim

> >

> > > -----Original Message-----

> > > From: Hiro Shiratori [mailto:hiro-shiratori@m...]

> > > Sent: 19. januar 2002 02:13

> > > To: ASP Databases

> > > Subject: [asp_databases] RE: ASP Mail

> > >

> > > Hello, Ron & Kim!

> > >

> > > Thank you so much.  You, guys, are great!

> > > Now, it shows a message.

> > > <FORM METHOD=POST ACTION="Register.asp"> is working.

> > > I'm getting close to what I want to accomplish.

> > >

> > > What I am trying to do is:

> > > After the user put the necessary information on the following

> > > form, he or she

> > > hits the SEND button to send this whole message, which has a

> hyperlink to

> > > the e-mail address as <a href="mailto:support@M...">

> > > Would you advise me how I can make this happen?

> > >

> > > Best regards,

> > > Hiro Shiratori

> > >

> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> > > <HTML>

> > > <HEAD>

> > > <META HTTP-EQUIV="Content-Type" content="text/html;

> charset=iso-8859-1">

> > > <TITLE>AspEmail</TITLE>

> > > </HEAD>

> > > <BODY BGCOLOR="#FFFFFF">

> > > <BASEFONT FACE="Arial, Helvetica">

> > > <TABLE WIDTH="500" BGCOLOR="#C0C0C0" BORDER=2 CELLPADDING=0

> CELLSPACING=3>

> > > <TD>

> > > <TABLE WIDTH="100%" BGCOLOR="#C0C0C0" BORDER=0 CELLPADDING=2

> > > CELLSPACING=0>

> > > <FORM METHOD=POST ACTION="Register.asp">

> > >  <TR>

> > >   <TD BGCOLOR="#808080" ALIGN=RIGHT><FONT

> COLOR="#FFFFFF">To:</FONT></TD>

> > >   <TD BGCOLOR="#E0E0E0">

> > >         <font face="Arial" size="3">

> > >   &nbsp;support@M...</font>

> > >   </TD>

> > >   <TD BGCOLOR="#E0E0E0"ALIGN=RIGHT>&nbsp;</TD>

> > >  </TR>

> > > </FORM><FORM METHOD=POST ACTION="Register.asp">

> > >  <TR>

> > >   <TD BGCOLOR="#808080" ALIGN=RIGHT><FONT

> > > COLOR="#FFFFFF">Subject:</FONT></TD><TD BGCOLOR="#E0E0E0"><INPUT

> > > SIZE=30 NAME="Subject" VALUE="User Name & Password

> > > Request"></TD><TD ALIGN=RIGHT BGCOLOR="#E0E0E0">&nbsp;</TD>

> > >  </TR>

> > >  <TR>

> > >   <TD ALIGN=LEFT BGCOLOR="#C0C0C0" COLSPAN=3><TEXTAREA

> > > NAME="Body" COLS=70 ROWS=12>

> > > Your E-mail Address:

> > > First Name:

> > > Last Name:

> > > Company Name:

> > > Address:

> > > City:

> > > State:

> > > Zip:

> > > Country:

> > > TEL:

> > > FAX:</TEXTAREA></TD>

> > >  </TR>

> > >  <TR>

> > >   <TD BGCOLOR="#C0C0C0"><a href="mailto:support@M...">

> > > <INPUT TYPE=SUBMIT NAME="SEND" VALUE="Send"></a></TD>

> > >   <TD BGCOLOR="#C0C0C0" COLSPAN=2>

> > >   </TD>

> > >  </TR>

> > > </FORM>

> > > </TABLE>

> > > </TD>

> > > </TABLE>

> > > </BODY>

> > > </HTML>

> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> > >

> > > ----- Original Message -----

> > > From: "Kim Iwan Hansen" <kimiwan@k...>

> > > To: "ASP Databases" <asp_databases@p...>

> > > Sent: Friday, January 18, 2002 10:48 AM

> > > Subject: [asp_databases] RE: ASP Mail

> > >

> > > > If Err <> 0 Then

> > > >    Response.Write "Error encountered: " & Err.Description

> > > > Else

> > > >    Response.Write "Master, I have mail for you"

> > > > End If

> > > >

> > > > Just because it sends an email doesn't mean it also produces

> > > some output on

> > > > the screen ;)

> > > >

> > > > -Kim

> > > >

> > > > > -----Original Message-----

> > > > > From: Hiro Shiratori [mailto:hiro-shiratori@m...]

> > > > > Sent: 18. januar 2002 19:28

> > > > > To: ASP Databases

> > > > > Subject: [asp_databases] ASP Mail

> > > > >

> > > > > Hello, developers:

> > > > >

> > > > > I have a question on the asp mail form.

> > > > > I have the following codes, but nothing appears on the browser.

> > > > > It is just a blank white screen.

> > > > > Do you know how to fix this problem?

> > > > >

> > > > > Best regards,

> > > > > Hiro

> > > > >

> > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> > > > > <%

> > > > > Set Mail = Server.CreateObject("Persits.MailSender")

> > > > > Mail.Host = "mail.MyDomain.com"

> > > > > Mail.From = ""

> > > > >

> > > > > Mail.FromName = ""

> > > > > Mail.AddAddress "support@M...", "Support Team."

> > > > > Mail.AddAddress "info@M..."

> > > > >

> > > > > Mail.AddReplyTo "info@t..."

> > > > > Mail.Subject = "Thanks for contacting us!"

> > > > > Mail.Body = "Dear " & Request.Form("FirstName") & ":" & Chr(13) &

> > > > > Chr(10) &

> > > > > _

> > > > >      "Thank you for your business."

> > > > >

> > > > > On Error Resume Next

> > > > >

> > > > > Mail.Send 'this actually sends the email

> > > > >

> > > > > If Err <> 0 Then

> > > > >    Response.Write "Error encountered: " & Err.Description

> > > > > End If

> > > > > %>

> > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> > > > >



> > > > > $subst('Email.Unsub').

> > > > >



> > > $subst('Email.Unsub').

> > >



> > > $subst('Email.Unsub').

> > >



> $subst('Email.Unsub').

>

>




> $subst('Email.Unsub').

>



Message #8 by "Drew, Ron" <RDrew@B...> on Tue, 22 Jan 2002 14:04:04 -0500
Do you just want to email the elements on the form to

support@M...??  What does Register.asp do??



-----Original Message-----

From: Hiro Shiratori [mailto:hiro-shiratori@m...]

Sent: Friday, January 18, 2002 8:13 PM

To: ASP Databases

Subject: [asp_databases] RE: ASP Mail





Hello, Ron & Kim!



Thank you so much.  You, guys, are great!

Now, it shows a message.

<FORM METHOD=3DPOST ACTION=3D"Register.asp"> is working.

I'm getting close to what I want to accomplish.



What I am trying to do is:

After the user put the necessary information on the following form, he

or she hits the SEND button to send this whole message, which has a

hyperlink to the e-mail address as <a

href=3D"mailto:support@M...">

Would you advise me how I can make this happen?



Best regards,

Hiro Shiratori



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

<HTML>

<HEAD>

<META HTTP-EQUIV=3D"Content-Type" content=3D"text/html; 

charset=3Diso-8859-1">

<TITLE>AspEmail</TITLE> </HEAD> <BODY BGCOLOR=3D"#FFFFFF"> <BASEFONT

FACE=3D"Arial, Helvetica"> <TABLE WIDTH=3D"500" BGCOLOR=3D"#C0C0C0" 

BORDER=3D2

CELLPADDING=3D0 CELLSPACING=3D3> <TD> <TABLE WIDTH=3D"100%" 

BGCOLOR=3D"#C0C0C0"

BORDER=3D0 CELLPADDING=3D2 CELLSPACING=3D0> <FORM METHOD=3DPOST

ACTION=3D"Register.asp">  <TR>

  <TD BGCOLOR=3D"#808080" ALIGN=3DRIGHT><FONT

COLOR=3D"#FFFFFF">To:</FONT></TD>

  <TD BGCOLOR=3D"#E0E0E0">

        <font face=3D"Arial" size=3D"3">

  &nbsp;support@M...</font>

  </TD>

  <TD BGCOLOR=3D"#E0E0E0"ALIGN=3DRIGHT>&nbsp;</TD>

 </TR>

</FORM><FORM METHOD=3DPOST ACTION=3D"Register.asp">

 <TR>

  <TD BGCOLOR=3D"#808080" ALIGN=3DRIGHT><FONT

COLOR=3D"#FFFFFF">Subject:</FONT></TD><TD BGCOLOR=3D"#E0E0E0"><INPUT 

SIZE=3D30

NAME=3D"Subject" VALUE=3D"User Name & Password Request"></TD><TD 

ALIGN=3DRIGHT

BGCOLOR=3D"#E0E0E0">&nbsp;</TD>  </TR>  <TR>

  <TD ALIGN=3DLEFT BGCOLOR=3D"#C0C0C0" COLSPAN=3D3><TEXTAREA 

NAME=3D"Body"

COLS=3D70 ROWS=3D12> Your E-mail Address: First Name: Last Name: Company

Name:

Address:

City:

State:

Zip:

Country:

TEL:

FAX:</TEXTAREA></TD>

 </TR>

 <TR>

  <TD BGCOLOR=3D"#C0C0C0"><a href=3D"mailto:support@M...">

<INPUT TYPE=3DSUBMIT NAME=3D"SEND" VALUE=3D"Send"></a></TD>

  <TD BGCOLOR=3D"#C0C0C0" COLSPAN=3D2>  

  </TD>

 </TR>

</FORM>

</TABLE>

</TD>

</TABLE>

</BODY>

</HTML> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



----- Original Message -----

From: "Kim Iwan Hansen" <kimiwan@k...>

To: "ASP Databases" <asp_databases@p...>

Sent: Friday, January 18, 2002 10:48 AM

Subject: [asp_databases] RE: ASP Mail





> If Err <> 0 Then

>    Response.Write "Error encountered: " & Err.Description Else

>    Response.Write "Master, I have mail for you"

> End If

>

> Just because it sends an email doesn't mean it also produces some

> output on the screen ;)

>

> -Kim

>

> > -----Original Message-----

> > From: Hiro Shiratori [mailto:hiro-shiratori@m...]

> > Sent: 18. januar 2002 19:28

> > To: ASP Databases

> > Subject: [asp_databases] ASP Mail

> >

> > Hello, developers:

> >

> > I have a question on the asp mail form.

> > I have the following codes, but nothing appears on the browser. It

> > is just a blank white screen. Do you know how to fix this problem?

> >

> > Best regards,

> > Hiro

> >

> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> > <%

> > Set Mail =3D Server.CreateObject("Persits.MailSender")

> > Mail.Host =3D "mail.MyDomain.com"

> > Mail.From =3D ""

> >

> > Mail.FromName =3D ""

> > Mail.AddAddress "support@M...", "Support Team."

> > Mail.AddAddress "info@M..."

> >

> > Mail.AddReplyTo "info@t..."

> > Mail.Subject =3D "Thanks for contacting us!"

> > Mail.Body =3D "Dear " & Request.Form("FirstName") & ":" & Chr(13) &

> > Chr(10) &

> > _

> >      "Thank you for your business."

> >

> > On Error Resume Next

> >

> > Mail.Send 'this actually sends the email

> >

> > If Err <> 0 Then

> >    Response.Write "Error encountered: " & Err.Description End If

> > %>

> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> >

> > Change your mail options at http://p2p.wrox.com/manager.asp or to

> > unsubscribe send a blank email to

> > $subst('Email.Unsub').

> >



> $subst('Email.Unsub').








$subst('Email.Unsub').


  Return to Index