navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

JMail Question

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> JMail Question
Page: [1]
 
Long Island Lune

 

Posts: 2340
Joined: 6/8/2002
From: New York
Status: offline

 
JMail Question - 7/21/2002 12:50:04   
I am trying to use the:

GetMessageBodyFromURL (bstrURL, [bstrAuth])

function to load a webpage in when someone checks the email I sent them. I can get the page up and displayed, but I also need to send a variable with the URL. The second parameter " bstrAuth" might be the answer. I did a google search on Jmail. I was able to find examples on every function in Jmail but this one. The one I need.

The URL page has a database query and the query requires a integer number. I need to be able to bring up my URL and have an integer value sent too so the query can grab it, search the database and display the results.

Does anybody know how to send a URL type message body with a variable??? BIG PROBLEM. The kind you lose sleep over!!!
Thanks to all,
LLL
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: JMail Question - 7/21/2002 17:20:56   
It all depends on the code you use to send the email.

All you will do, is use the jmail code to write the body with asp filling in the id of the record (assuming the record ID exists)

oMail.Body = " This text url = http://www.site.com/recordID=" & YourRecordID

Now the link is clickable in the email.
Doing that, will lead the person to the web page and the record " recordID" will be retuned.

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to Long Island Lune)
Long Island Lune

 

Posts: 2340
Joined: 6/8/2002
From: New York
Status: offline

 
RE: JMail Question - 7/21/2002 18:46:34   
Spooky Moderator,

Thanks for your input. I am using ASP code. Your code is great but it defeats the purpose. If I just use the URL address (without variables) in GetMessageBodyFromURL () the user has my page load into their email view when they click on my email. But if I use yours, then the user has to click on the link to bring them to my page.

In other words, as a link, when you click on it, a window pops up and my page is loaded. But with GetMessageBodyFromURL (), the email itself IS my page. The page is embedded inside the email box.

Did you ever notice when you get spam, sometimes when you click the email title in your in-box, the page is inside the email itself? This is what I mean. I talked to the person that I am doing the work for, and they insist that the page be inside the email itself, and not a clickable link that takes you to a page in another window. If I had your email address I would send you an email generated from the site. And when you clicked on the title in your in-box, you would see the page partially displayed. Partially??? Yes, the database would return an error becasue it is missing it' s Record Id. That' s what I need to pass.

Any other ideas would be greatly appreciated.
Thanks for your help.
LLL

(in reply to Long Island Lune)
Long Island Lune

 

Posts: 2340
Joined: 6/8/2002
From: New York
Status: offline

 
RE: JMail Question - 7/21/2002 19:04:00   
Spooky Moderator,

I have searched over 35 pages of google, and this is the ONLY definition I can find in this world:


GetMessageBodyFromURL( bstrURL, [bstrAuth] ) (v3.0)
---------------------------------------------------------------------------------------
Clears the body of the message and replaces it with the contents of the URL. The contenttype is automaticly set to match the contentype of the URL. The second argument (login and password) is optional
---------------------------------------------------------------------------------------
JMail.GetMessageBodyFromURL( " http://duplo.org/" , " login:password" )


It seems to be the forbidden subject that nobody talks about. This is why I figured that maybe I could slip the RecordId inside the second paramenter (bstrAuth).

Iye Yie Yie...
What a nightmare..
LLL.


(in reply to Long Island Lune)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: JMail Question - 7/22/2002 6:02:37   
You are talking about an HTML bodied email?
Its not a jmail function I am familiar with, but surely you would just amend the first URL?

JMail.GetMessageBodyFromURL( " http://duplo.org/page.asp?ID=" & DbaseID, " login:password"  ) 


_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to Long Island Lune)
Long Island Lune

 

Posts: 2340
Joined: 6/8/2002
From: New York
Status: offline

 
RE: JMail Question - 7/22/2002 16:35:10   
Spooky,

Yeah, I' m talking about an HTML bodied email. It seems that nobody knows anything about this. Not even the author of JMail seems to know too much. The manual they created in .pdf form does not offer anymore than what I put in my last posting to you. No examples, no nothing. And my crazy goole search only yielded me simple examples that had nothing to do with this function. But I get HTML emails like this everyday in my in-box. So somebody knows how to use it. They are just not saying.

Thanks for your code segment but I ready tried something like that. No luck. But you did give me another idea close to what you sent me. And I am going to try it. If you want to know HOW I finally solve this problem (if I solve it), RESPOND to this email and check the " Notify me via e-mail when someone replies" checkbox. If I solve the problem I will post it here for you to see.
Again, thanks for all your help.
LLL

(in reply to Long Island Lune)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: JMail Question - 7/23/2002 4:58:44   
JMail.GetMessageBodyFromURL( " http://duplo.org/page.asp?ID=" & DbaseID, " " )

When you say no luck, what is actually occuring?

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to Long Island Lune)
Long Island Lune

 

Posts: 2340
Joined: 6/8/2002
From: New York
Status: offline

 
RE: JMail Question - 7/23/2002 13:36:19   
Spooky,

Basically, this is what is appearing:

" Page cannot be displayed"

Here is the exact line I am sending:

JMail.GetMessageBodyFromURL(" http://www.quote2quote.com/E5F8A1S4.asp?SID=" & SID, " " )

And I got the page display message above.

And I tried this:

JMail.GetMessageBodyFromURL(" http://www.quote2quote.com/E5F8A1S4.asp?SID=" & SID)

And IT WORKED!!! I guess we cannot use the " " at the end.

YOU THE MAN!!!
Thanks.
LLL




(in reply to Long Island Lune)
Long Island Lune

 

Posts: 2340
Joined: 6/8/2002
From: New York
Status: offline

 
RE: JMail Question - 7/24/2002 21:58:22   
Spooky,

Are you still out there??? I have one more problem. I need to send TWO variables instead of one now. I tried this:

JMail.GetMessageBodyFromURL
" http://www.quote2quote.com/E5F8A1S4.asp?SID=" & SID & " &Client=" &Client)

And it did not work. Do you have any idea how to chain (send) two variables together???

Thanks.
LLL

(in reply to Long Island Lune)
Long Island Lune

 

Posts: 2340
Joined: 6/8/2002
From: New York
Status: offline

 
RE: JMail Question - 7/26/2002 0:59:19   
NEVER MIND!!!!! I solved the problem.
LLL

(in reply to Long Island Lune)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: JMail Question - 7/26/2002 2:34:06   
:)

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to Long Island Lune)
Long Island Lune

 

Posts: 2340
Joined: 6/8/2002
From: New York
Status: offline

 
RE: JMail Question - 7/26/2002 11:29:47   
:) Happy days are here again!!!

(in reply to Long Island Lune)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> JMail Question
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts