473,569 Members | 2,866 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

W3 Jmail

I am new to Jmail/ASP and either need some help or someone to tell me I
am stupid...

I got Jmail to work fine. My problem is I need to send an email based
on somthing a customer submitted. When we receive the submission in
our system an auto-receipt email will be sent. What I need to have
happen (and cant figure out) is that email to include what was received
not just a on liner saying it was received. The information is pulled
from the db with a query. Anyone got any suggestions?

Danny

Oct 19 '06 #1
8 5014
Mangler wrote on 19 okt 2006 in microsoft.publi c.inetserver.as p.general:
I am new to Jmail/ASP and either need some help or someone to tell me I
am stupid...

I got Jmail to work fine. My problem is I need to send an email based
on somthing a customer submitted. When we receive the submission in
our system an auto-receipt email will be sent. What I need to have
happen (and cant figure out) is that email to include what was received
not just a on liner saying it was received. The information is pulled
from the db with a query. Anyone got any suggestions?
This is realy simple.

The jmail email is build up from asp code statements.

is you want to add a line based on variables that came from a
<form method='post'in your submitter page, you can do this:

<% 'vbscript assumed
Set JMail = Server.CreateOb ject("JMail.SMT PMail")
......

JMail.Sender = Request.Form("e mail")
JMail.AddRecipi ent Request.Form("e mail")
JMail.Subject = "Received from: " & Request.Form("n ame")

JMail.Body = "Hi," & vbCrLf & vbCrLf & "You just entered:" & vbCrLf

JMail.AppendTex t Request.Form("e mail") & " (your emailaddress)" & vbCrLf
JMail.AppendTex t Request.Form("n ame") & " (your name)" & vbCrLf
JMail.AppendTex t Request.Form("s treet") & " (your street)" & vbCrLf

etc., etc.

JMail.Execute
.......
%>

Be careful to follow which statements need a = and which need arguments
without the =, see the specs.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Oct 19 '06 #2
What if I need to have a repeat region in there to show all of the
contents received not just one line. Example order:

RMA#: 1057

lot# Part Desc Qty
1 flip 50
2 lcd 200
3 back 75
ETC....

The information above is coming from a query.
Evertjan. wrote:
Mangler wrote on 19 okt 2006 in microsoft.publi c.inetserver.as p.general:
I am new to Jmail/ASP and either need some help or someone to tell me I
am stupid...

I got Jmail to work fine. My problem is I need to send an email based
on somthing a customer submitted. When we receive the submission in
our system an auto-receipt email will be sent. What I need to have
happen (and cant figure out) is that email to include what was received
not just a on liner saying it was received. The information is pulled
from the db with a query. Anyone got any suggestions?

This is realy simple.

The jmail email is build up from asp code statements.

is you want to add a line based on variables that came from a
<form method='post'in your submitter page, you can do this:

<% 'vbscript assumed
Set JMail = Server.CreateOb ject("JMail.SMT PMail")
.....

JMail.Sender = Request.Form("e mail")
JMail.AddRecipi ent Request.Form("e mail")
JMail.Subject = "Received from: " & Request.Form("n ame")

JMail.Body = "Hi," & vbCrLf & vbCrLf & "You just entered:" & vbCrLf

JMail.AppendTex t Request.Form("e mail") & " (your emailaddress)" & vbCrLf
JMail.AppendTex t Request.Form("n ame") & " (your name)" & vbCrLf
JMail.AppendTex t Request.Form("s treet") & " (your street)" & vbCrLf

etc., etc.

JMail.Execute
......
%>

Be careful to follow which statements need a = and which need arguments
without the =, see the specs.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Oct 19 '06 #3
Here is the code, maybe it will explain what I need better:

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<%@LANGUAGE="VB SCRIPT" CODEPAGE="1252" %>
<%
' Create the JMail message Object
set msg = Server.CreateOb ject( "JMail.Mess age" )

' Mail server requires sender and receiver data first
' Note that as addRecipient is method and not
' a property, we do not use an equals ( = ) sign
msg.From = "in**@repairres ource.com"
msg.AddRecipien t Request.Form("h dnemail")

' Get the form data
name = Request.Form("h dnname")
subject = "Repair Resource :: Auto-Receipt for RMA# " &
Request.Form("h dnrma")

' Enter the sender data
msg.FromName = "Repair Resource, Inc."

' Setup the correct mail sending user data
msg.MailServerU serName = "in**@repairres ource.com"
msg.MailServerP assword = "********** "

' Set logging to true to ease any potential debugging
' And set silent to true as we wish to handle our errors ourself
msg.Logging = true
msg.silent = true

' The subject of the message
msg.Subject = subject

' And the body
msg.body = "The contents of RMA#:" & Request.Form("h dnrma") & "have
been received into our system to be processed. Below are the results:"
$ vbCrlf & vbCrlF

(((??????????)) ))

%>
<%
Dim Repeat1__numRow s
Dim Repeat1__index

Repeat1__numRow s = -1
Repeat1__index = 0
rst_numRows = rst_numRows + Repeat1__numRow s
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitl ed Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/>
<meta http-equiv="refresh" content="5;URL= reclaimapp.asp" >
<link href="../../style/style.css" rel="stylesheet " type="text/css" />
<link href="../../style/newRepairStyle. css" rel="stylesheet "
type="text/css" />
</head>

<body>
<form name="frmemail" id="frmemail" method="post" action="">
<font color="#000000" face="Verdana, Arial, Helvetica,
sans-serif"><font size="2">

<%
' Now send the message, using the indicated mailserver
if not msg.Send("mail. repairresource. com" )then
Response.write "<pre>" & msg.log & "</pre>"
else
Response.write "Your email confirmation message was sent
succesfully.... Thank You!"
end if
' And we're done! the message has been sent.
%>
</font></font>
</form>
<p>&nbsp;</p>
</body>
</html>


Mangler wrote:
What if I need to have a repeat region in there to show all of the
contents received not just one line. Example order:

RMA#: 1057

lot# Part Desc Qty
1 flip 50
2 lcd 200
3 back 75
ETC....

The information above is coming from a query.
Evertjan. wrote:
Mangler wrote on 19 okt 2006 in microsoft.publi c.inetserver.as p.general:
I am new to Jmail/ASP and either need some help or someone to tell me I
am stupid...
>
I got Jmail to work fine. My problem is I need to send an email based
on somthing a customer submitted. When we receive the submission in
our system an auto-receipt email will be sent. What I need to have
happen (and cant figure out) is that email to include what was received
not just a on liner saying it was received. The information is pulled
from the db with a query. Anyone got any suggestions?
>
This is realy simple.

The jmail email is build up from asp code statements.

is you want to add a line based on variables that came from a
<form method='post'in your submitter page, you can do this:

<% 'vbscript assumed
Set JMail = Server.CreateOb ject("JMail.SMT PMail")
.....

JMail.Sender = Request.Form("e mail")
JMail.AddRecipi ent Request.Form("e mail")
JMail.Subject = "Received from: " & Request.Form("n ame")

JMail.Body = "Hi," & vbCrLf & vbCrLf & "You just entered:" & vbCrLf

JMail.AppendTex t Request.Form("e mail") & " (your emailaddress)" & vbCrLf
JMail.AppendTex t Request.Form("n ame") & " (your name)" & vbCrLf
JMail.AppendTex t Request.Form("s treet") & " (your street)" & vbCrLf

etc., etc.

JMail.Execute
......
%>

Be careful to follow which statements need a = and which need arguments
without the =, see the specs.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Oct 19 '06 #4
Sorry, got ahead of myself. Forgot to add the recordset. Updated code
as follows:

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<%@LANGUAGE="VB SCRIPT" CODEPAGE="1252" %>
<!--#include file="../../Connections/connReclaim.asp " -->
<%
Dim rsT__varR
rsT__varR = "1"
If (Request.QueryS tring("hdnrma") <"") Then
rsT__varR = Request.QuerySt ring("hdnrma")
End If
%>
<%
Dim rsT
Dim rsT_numRows

Set rsT = Server.CreateOb ject("ADODB.Rec ordset")
rsT.ActiveConne ction = MM_connReclaim_ STRING
rsT.Source = "select idlot, idrma, partdesc, partnum, phmodel, dockqty
from dbo.lotinfo where idrma = '" + Replace(rsT__va rR, "'", "''") +
"'"
rsT.CursorType = 0
rsT.CursorLocat ion = 2
rsT.LockType = 1
rsT.Open()

rsT_numRows = 0
%>
<%
' Create the JMail message Object
set msg = Server.CreateOb ject( "JMail.Mess age" )

' Mail server requires sender and receiver data first
' Note that as addRecipient is method and not
' a property, we do not use an equals ( = ) sign
msg.From = "in**@repairres ource.com"
msg.AddRecipien t Request.Form("h dnemail")

' Get the form data
name = Request.Form("h dnname")
subject = "Repair Resource :: Auto-Receipt for RMA# " &
Request.Form("h dnrma")

' Enter the sender data
msg.FromName = "Repair Resource, Inc."

' Setup the correct mail sending user data
msg.MailServerU serName = "in**@repairres ource.com"
msg.MailServerP assword = "sj5xvrnn"

' Set logging to true to ease any potential debugging
' And set silent to true as we wish to handle our errors ourself
msg.Logging = true
msg.silent = true

' The subject of the message
msg.Subject = subject

' And the body
msg.body = "The contents of RMA#:" & Request.Form("h dnrma") & "have
been received into our system to be processed. Below are the results:"
$ vbCrlf & vbCrlF

AppendText

%>
<%
Dim Repeat1__numRow s
Dim Repeat1__index

Repeat1__numRow s = -1
Repeat1__index = 0
rst_numRows = rst_numRows + Repeat1__numRow s
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitl ed Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/>
<meta http-equiv="refresh" content="5;URL= reclaimapp.asp" >
<link href="../../style/style.css" rel="stylesheet " type="text/css" />
<link href="../../style/newRepairStyle. css" rel="stylesheet "
type="text/css" />
</head>

<body>
<form name="frmemail" id="frmemail" method="post" action="">
<font color="#000000" face="Verdana, Arial, Helvetica,
sans-serif"><font size="2">

<%
' Now send the message, using the indicated mailserver
if not msg.Send("mail. repairresource. com" )then
Response.write "<pre>" & msg.log & "</pre>"
else
Response.write "Your email confirmation message was sent
succesfully.... Thank You!"
end if
' And we're done! the message has been sent.
%>
</font></font>
</form>
<p>&nbsp;</p>
</body>
</html>
<%
rsT.Close()
Set rsT = Nothing
%>



Mangler wrote:
Here is the code, maybe it will explain what I need better:

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<%@LANGUAGE="VB SCRIPT" CODEPAGE="1252" %>
<%
' Create the JMail message Object
set msg = Server.CreateOb ject( "JMail.Mess age" )

' Mail server requires sender and receiver data first
' Note that as addRecipient is method and not
' a property, we do not use an equals ( = ) sign
msg.From = "in**@repairres ource.com"
msg.AddRecipien t Request.Form("h dnemail")

' Get the form data
name = Request.Form("h dnname")
subject = "Repair Resource :: Auto-Receipt for RMA# " &
Request.Form("h dnrma")

' Enter the sender data
msg.FromName = "Repair Resource, Inc."

' Setup the correct mail sending user data
msg.MailServerU serName = "in**@repairres ource.com"
msg.MailServerP assword = "********** "

' Set logging to true to ease any potential debugging
' And set silent to true as we wish to handle our errors ourself
msg.Logging = true
msg.silent = true

' The subject of the message
msg.Subject = subject

' And the body
msg.body = "The contents of RMA#:" & Request.Form("h dnrma") & "have
been received into our system to be processed. Below are the results:"
$ vbCrlf & vbCrlF

(((??????????)) ))

%>
<%
Dim Repeat1__numRow s
Dim Repeat1__index

Repeat1__numRow s = -1
Repeat1__index = 0
rst_numRows = rst_numRows + Repeat1__numRow s
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitl ed Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/>
<meta http-equiv="refresh" content="5;URL= reclaimapp.asp" >
<link href="../../style/style.css" rel="stylesheet " type="text/css" />
<link href="../../style/newRepairStyle. css" rel="stylesheet "
type="text/css" />
</head>

<body>
<form name="frmemail" id="frmemail" method="post" action="">
<font color="#000000" face="Verdana, Arial, Helvetica,
sans-serif"><font size="2">

<%
' Now send the message, using the indicated mailserver
if not msg.Send("mail. repairresource. com" )then
Response.write "<pre>" & msg.log & "</pre>"
else
Response.write "Your email confirmation message was sent
succesfully.... Thank You!"
end if
' And we're done! the message has been sent.
%>
</font></font>
</form>
<p>&nbsp;</p>
</body>
</html>


Mangler wrote:
What if I need to have a repeat region in there to show all of the
contents received not just one line. Example order:

RMA#: 1057

lot# Part Desc Qty
1 flip 50
2 lcd 200
3 back 75
ETC....

The information above is coming from a query.
Evertjan. wrote:
Mangler wrote on 19 okt 2006 in microsoft.publi c.inetserver.as p.general:
>
I am new to Jmail/ASP and either need some help or someone to tell me I
am stupid...

I got Jmail to work fine. My problem is I need to send an email based
on somthing a customer submitted. When we receive the submission in
our system an auto-receipt email will be sent. What I need to have
happen (and cant figure out) is that email to include what was received
not just a on liner saying it was received. The information is pulled
from the db with a query. Anyone got any suggestions?

>
This is realy simple.
>
The jmail email is build up from asp code statements.
>
is you want to add a line based on variables that came from a
<form method='post'in your submitter page, you can do this:
>
<% 'vbscript assumed
>
>
Set JMail = Server.CreateOb ject("JMail.SMT PMail")
.....
>
JMail.Sender = Request.Form("e mail")
JMail.AddRecipi ent Request.Form("e mail")
JMail.Subject = "Received from: " & Request.Form("n ame")
>
JMail.Body = "Hi," & vbCrLf & vbCrLf & "You just entered:" & vbCrLf
>
JMail.AppendTex t Request.Form("e mail") & " (your emailaddress)" & vbCrLf
JMail.AppendTex t Request.Form("n ame") & " (your name)" & vbCrLf
JMail.AppendTex t Request.Form("s treet") & " (your street)" & vbCrLf
>
etc., etc.
>
JMail.Execute
......
%>
>
Be careful to follow which statements need a = and which need arguments
without the =, see the specs.
>
>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Oct 19 '06 #5
Mangler wrote on 19 okt 2006 in microsoft.publi c.inetserver.as p.general:
Sorry, got ahead of myself. Forgot to add the recordset. Updated code
as follows:
[.............]
[Please do not toppost on usenet]

Sorry, I am not going to analyze or write your code for you,
especially your database work,
that was not your OQ [original question].

You asked, I seem to remember, how to send a email on submission,
which has nothing to do with a database.

Try to send your info to the webpage for starters with multiple:

response write aLineOfText & "<br>"

and when that works as expected, change that to:

JMail.AppendTex t aLineOfText & vbCrLf

Read the jmail specs, thy have examples, I remember.

==============

Do you write or understand your own code, or do you
just use someone elses?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Oct 19 '06 #6
I use dreamweaver and do the DB work. I wasnt asking you to write this
for me, sorry bout that. I have everything done but can't figure out
how to get the repeat region in the email.
Evertjan. wrote:
>
Do you write or understand your own code, or do you
just use someone elses?
Oct 19 '06 #7
Mangler wrote on 19 okt 2006 in microsoft.publi c.inetserver.as p.general:
>
Evertjan. wrote:
>>
Do you write or understand your own code, or do you
just use someone elses?
[Repeat request: Please do not toppost on usenet]
I use dreamweaver and do the DB work.
What has the database to do with your Q?

If you can get your info on screen with response.write,
you can get it in your mail with JMail.AppendTex t.

Do you agree?
if not, what is your agrument for that?
I wasnt asking you to write this
for me, sorry bout that. I have everything done but can't figure out
how to get the repeat region in the email.


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Oct 19 '06 #8
If you want to get the recordset results to display in the email, I strongly
advise you to move away from Dreamweaver generated code and learn how to
create a recordset manually and output the results yourself. Until you
learn how to do this properly, and understand how it works, you will never
have the level of control that you would ideally want.

Dreamweaver's repeat regions are intended for the output of records into
html tables. I assume your email will be in plain text because you have
used & vbCrLf in the body, in which case html plays no part in it.
Consequently, a repeat region cannot be used in this context.

--
Mike Brind

"Mangler" <dw******@direc twireless.comwr ote in message
news:11******** **************@ h48g2000cwc.goo glegroups.com.. .
Sorry, got ahead of myself. Forgot to add the recordset. Updated code
as follows:

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<%@LANGUAGE="VB SCRIPT" CODEPAGE="1252" %>
<!--#include file="../../Connections/connReclaim.asp " -->
<%
Dim rsT__varR
rsT__varR = "1"
If (Request.QueryS tring("hdnrma") <"") Then
rsT__varR = Request.QuerySt ring("hdnrma")
End If
%>
<%
Dim rsT
Dim rsT_numRows

Set rsT = Server.CreateOb ject("ADODB.Rec ordset")
rsT.ActiveConne ction = MM_connReclaim_ STRING
rsT.Source = "select idlot, idrma, partdesc, partnum, phmodel, dockqty
from dbo.lotinfo where idrma = '" + Replace(rsT__va rR, "'", "''") +
"'"
rsT.CursorType = 0
rsT.CursorLocat ion = 2
rsT.LockType = 1
rsT.Open()

rsT_numRows = 0
%>
<%
' Create the JMail message Object
set msg = Server.CreateOb ject( "JMail.Mess age" )

' Mail server requires sender and receiver data first
' Note that as addRecipient is method and not
' a property, we do not use an equals ( = ) sign
msg.From = "in**@repairres ource.com"
msg.AddRecipien t Request.Form("h dnemail")

' Get the form data
name = Request.Form("h dnname")
subject = "Repair Resource :: Auto-Receipt for RMA# " &
Request.Form("h dnrma")

' Enter the sender data
msg.FromName = "Repair Resource, Inc."

' Setup the correct mail sending user data
msg.MailServerU serName = "in**@repairres ource.com"
msg.MailServerP assword = "sj5xvrnn"

' Set logging to true to ease any potential debugging
' And set silent to true as we wish to handle our errors ourself
msg.Logging = true
msg.silent = true

' The subject of the message
msg.Subject = subject

' And the body
msg.body = "The contents of RMA#:" & Request.Form("h dnrma") & "have
been received into our system to be processed. Below are the results:"
$ vbCrlf & vbCrlF

AppendText

%>
<%
Dim Repeat1__numRow s
Dim Repeat1__index

Repeat1__numRow s = -1
Repeat1__index = 0
rst_numRows = rst_numRows + Repeat1__numRow s
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitl ed Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/>
<meta http-equiv="refresh" content="5;URL= reclaimapp.asp" >
<link href="../../style/style.css" rel="stylesheet " type="text/css" />
<link href="../../style/newRepairStyle. css" rel="stylesheet "
type="text/css" />
</head>

<body>
<form name="frmemail" id="frmemail" method="post" action="">
<font color="#000000" face="Verdana, Arial, Helvetica,
sans-serif"><font size="2">

<%
' Now send the message, using the indicated mailserver
if not msg.Send("mail. repairresource. com" )then
Response.write "<pre>" & msg.log & "</pre>"
else
Response.write "Your email confirmation message was sent
succesfully.... Thank You!"
end if
' And we're done! the message has been sent.
%>
</font></font>
</form>
<p>&nbsp;</p>
</body>
</html>
<%
rsT.Close()
Set rsT = Nothing
%>



Mangler wrote:
>Here is the code, maybe it will explain what I need better:

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<%@LANGUAGE="V BSCRIPT" CODEPAGE="1252" %>
<%
' Create the JMail message Object
set msg = Server.CreateOb ject( "JMail.Mess age" )

' Mail server requires sender and receiver data first
' Note that as addRecipient is method and not
' a property, we do not use an equals ( = ) sign
msg.From = "in**@repairres ource.com"
msg.AddRecipie nt Request.Form("h dnemail")

' Get the form data
name = Request.Form("h dnname")
subject = "Repair Resource :: Auto-Receipt for RMA# " &
Request.Form(" hdnrma")

' Enter the sender data
msg.FromName = "Repair Resource, Inc."

' Setup the correct mail sending user data
msg.MailServer UserName = "in**@repairres ource.com"
msg.MailServer Password = "********** "

' Set logging to true to ease any potential debugging
' And set silent to true as we wish to handle our errors ourself
msg.Logging = true
msg.silent = true

' The subject of the message
msg.Subject = subject

' And the body
msg.body = "The contents of RMA#:" & Request.Form("h dnrma") & "have
been received into our system to be processed. Below are the results:"
$ vbCrlf & vbCrlF

(((??????????) )))

%>
<%
Dim Repeat1__numRow s
Dim Repeat1__index

Repeat1__numRo ws = -1
Repeat1__ind ex = 0
rst_numRows = rst_numRows + Repeat1__numRow s
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitle d Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/>
<meta http-equiv="refresh" content="5;URL= reclaimapp.asp" >
<link href="../../style/style.css" rel="stylesheet " type="text/css" />
<link href="../../style/newRepairStyle. css" rel="stylesheet "
type="text/css" />
</head>

<body>
<form name="frmemail" id="frmemail" method="post" action="">
<font color="#000000" face="Verdana, Arial, Helvetica,
sans-serif"><font size="2">

<%
' Now send the message, using the indicated mailserver
if not msg.Send("mail. repairresource. com" )then
Response.write "<pre>" & msg.log & "</pre>"
else
Response.write "Your email confirmation message was sent
succesfully... .Thank You!"
end if
' And we're done! the message has been sent.
%>
</font></font>
</form>
<p>&nbsp;</p>
</body>
</html>


Mangler wrote:
What if I need to have a repeat region in there to show all of the
contents received not just one line. Example order:

RMA#: 1057

lot# Part Desc Qty
1 flip 50
2 lcd 200
3 back 75
ETC....

The information above is coming from a query.
Evertjan. wrote:
Mangler wrote on 19 okt 2006 in
microsoft.publi c.inetserver.as p.general:

I am new to Jmail/ASP and either need some help or someone to tell
me I
am stupid...

I got Jmail to work fine. My problem is I need to send an email
based
on somthing a customer submitted. When we receive the submission
in
our system an auto-receipt email will be sent. What I need to have
happen (and cant figure out) is that email to include what was
received
not just a on liner saying it was received. The information is
pulled
from the db with a query. Anyone got any suggestions?


This is realy simple.

The jmail email is build up from asp code statements.

is you want to add a line based on variables that came from a
<form method='post'in your submitter page, you can do this:

<% 'vbscript assumed
Set JMail = Server.CreateOb ject("JMail.SMT PMail")
.....

JMail.Sender = Request.Form("e mail")
JMail.AddRecipi ent Request.Form("e mail")
JMail.Subject = "Received from: " & Request.Form("n ame")

JMail.Body = "Hi," & vbCrLf & vbCrLf & "You just entered:" & vbCrLf

JMail.AppendTex t Request.Form("e mail") & " (your emailaddress)" &
vbCrLf
JMail.AppendTex t Request.Form("n ame") & " (your name)" & vbCrLf
JMail.AppendTex t Request.Form("s treet") & " (your street)" & vbCrLf

etc., etc.

JMail.Execute
......
%>

Be careful to follow which statements need a = and which need
arguments
without the =, see the specs.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Oct 19 '06 #9

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

Similar topics

0
2892
by: Lasse Edsvik | last post by:
Hello I use this code to send massmail with an attachment using JMail 4 proffessional. and the attachment seems to be attached but when i open it the first time my system32 folder opens....... next time i try to open it the file opens, but with the name "menu2.xml", i open it again and its "menu3.xml" and so on..... i have this piece of...
2
4015
by: Kingdom | last post by:
I have a SelectBoxes.asp page that is working with multiple selection dropdown boxes to extract data and total the selection prices. Tom & Bob were kind enough to give me a big help getting this page working and it's working just fine, no problems with this page. However I then would like this data e-mailed using jmail (my host insists on...
4
4378
by: Kingdom | last post by:
Having a problem with a jmail email script and cannot seem to solve this error any sugestions welcome. Error shows in browser as Microsoft VBScript runtime error '800a01f4' Variable is undefined: 'JMail'
0
2949
by: BDKiii | last post by:
Ok.. I know this has been covered before -but- here it is again... I installed Jmail to my server and tested it... and it worked fine. I then installed W#.Upload to the same server and tested it to attach a document or image file from a users PC and attach it to the email on the fly. I used the following 3 files to do this (attach1.htm,...
2
5529
by: rourou | last post by:
Hello everyone In VB.NET i can use Jmail to send a mai code Dim JMai JMail = Server.CreateObject("JMail.Message" JMail.silent = Tru JMail.Logging = Tru JMail.Charset = "gb2312
0
1847
by: johnet | last post by:
Error: jmail.SMTPMail error '8000ffff' Cannot open file L:/ems/mail/hi.html Code: <% DIM strEmail, strFirstName, strLastName, strSubject, strComments, Mailer
0
2316
by: vernon1231 | last post by:
Hi! PLEASE need help! My aim is to make a newsletter, therefor I need a picture to go a long with the mail I am creating from a mailinglist. When I am opening my mail I dont get my picture but a "picture icon" (the one you get when you place a picture on a webside without a file reference). and I also get "many many" characters/letters, so it...
4
8933
by: cgrudzinski | last post by:
Hello, I have JMail working without attachments but now want to start using this feature. When using the .addattachment though the email received contains the binary data of the attachment - see example below. Code Example: Set JMail = Server.CreateObject("JMail.SMTPMail") JMail.ServerAddress = "mailhub.registeredsite.com"...
2
4020
borisding
by: borisding | last post by:
Hi there, I'm using Jmail for sending email with some attachments. Basically, I will need to send out email with the contents in unicode characters such as Simplified Chinese, Japanese etc. I have tried out and all characters are displayed well, if ONLY for me to send it to webmail such as Yahoo!/Gmail. However, I was unable to read the...
0
7704
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7620
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...
0
8139
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...
0
7985
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...
0
6298
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...
0
3666
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...
0
3659
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2120
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1230
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.