473,327 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

CDO Mail and using asp code in htmlBody

I have a form that inserts into a database and then generates an email to me with a link. I need that link to be a url parameter back to the record based on record ID. The url will be something like http://www.website.com/web_request_edit.asp?ID=101. Currently the line of code I have been struggling with is:
oMail.HTMLBody = "http://ocfs.state.nyenet/web_request_edit.asp?ID=&web_requests.fields.item( 'id').value&"

Can someone give me the correct syntax?
May 4 '12 #1
6 2525
jhardman
3,406 Expert 2GB
Expand|Select|Wrap|Line Numbers
  1. oMail.HTMLBody = "http://ocfs.state.nyenet/web_request_edit.asp?ID=" & request("id")
Jared
May 4 '12 #2
That didn't work. That only gave me:
http://ocfs.state.nyenet/web_request_edit.asp?ID.

I need http://ocfs.state.nyenet/web_request_edit.asp?ID=102. Any ideas?

Thanks
May 7 '12 #3
jhardman
3,406 Expert 2GB
if that didn't work then you don't have a field "id" in your request object. Where does the id number come from?

Jared
May 7 '12 #4
It's an autonumber field in my sql table <%=(web_requests.Fields.Item("ID").Value)%>
May 7 '12 #5
jhardman
3,406 Expert 2GB
Expand|Select|Wrap|Line Numbers
  1. oMail.HTMLBody = "http://ocfs.state.nyenet/web_request_edit.asp?ID=" & web_requests.Fields.Item("ID").Value
does this work?

Jared
May 7 '12 #6
Yes!...that did the trick at last I have my functionality!...thank you Jared.
May 8 '12 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Hari | last post by:
Hi all! I am trying to send mail using outlook in my web application. i am using Outlook Express. Actually i am saving it in DRAFTS folder instead of sending it. My system are in network. I hard...
2
by: Paul Turley | last post by:
Does anyone have some sample code for sending an HTML formatted message using CDONTS? Thanks RE: Sending HTML formatted mail using CDONTS -- Paul Turley, MCSD, MCAD, MCT, MSF...
1
by: Nick Gilbert | last post by:
Hi, I'm writing a Windows Forms application in .NET and I need to send an e-mail from it. As it's NOT asp.net, I don't have access to an SMTP server so I will have to send the e-mail using...
2
by: Senthilkumar | last post by:
Hi, I would like to send mail using Outlook or Outlook Express my .net program which is written using vb.net . When ever a new record of particular type is added, i would like to send an...
2
by: Abhi | last post by:
i need to create a user in web mail using dotnet coad by using webmailserver api ex: xxx is my webmail then i want to create to a user in that webmail xxx ex: yyy@xxx.com how i should do in...
6
by: AbraAbraCadabra | last post by:
Here is the code I have been using to send mail... Set objCDO = Server.CreateObject("CDO.Message") With objCDO .To = strTo .From = "markus@domain.com" .Subject = "This is the...
1
by: jamilabkh | last post by:
Hi all, I need to know how to authenticate a user before sending a mail using a C# application. The source code i use is this: private void sendMailButton_Click(object sender, EventArgs e)...
0
debasisdas
by: debasisdas | last post by:
The follwing sample code uses predefined package UTL_SMTP to send mail. This package was first available in the version 8.1.7 . create or replace procedure sendmail(sender varchar2,recipient...
4
KeredDrahcir
by: KeredDrahcir | last post by:
I'm trying to send an E-mail using PHPMailer and although everything look okay, it's not coming through. Can anyone help? I'm posting my information from a form. require_once...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.