[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

ATTACH URL for file actaully on web not on local HDD

Posted on 2002-05-20
5
Medium Priority
?
293 Views
Last Modified: 2012-05-04
Hi, I am using the following code

     dim xs
     xs = """" & "http://www.myURL.com/prodimg/" & rstProduct.fields.getValue("Image") & """"    
     Set myMail = CreateObject("CDONTS.NewMail")
     myMail.AttachURL xs , rstProduct.fields.getValue("Image")
     myMail.bodyFormat = 0
     myMail.mailFormat = 0
     myMail.From = "here@there.com"
     myMail.To = "craig@anyway.com"
     myMail.Subject = "TESTING"
     myMail.Body = HTML
     myMail.Send
     Set myMail = Nothing

I have the following code in the HTML build up

HTML = HTML & "<td width=304><img border=1 src=" & """" & rstProduct.fields.getValue("Image") & """" & " width=300 height=300></td>"

I am trying to get the image to be embeded into the mail so that it can viewed by the recipient without them having to be online, I keep getting a page cannot be displayed error from the server.... any ideas...

BTW what do I have to do to my local machine running PWS to be able to test this code, or does it need to run on an NT server for the CDONTS function to work, its a real pain having to upload the files to my ISP to test it.

Regards

Craig
0
Comment
Question by:publicityhouse
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 5

Accepted Solution

by:
russellshome earned 400 total points
ID: 7021102
The recipient must be online in order to collect the email so your requirement "viewed by the recipient without them having to be online" seems nonsensical.

If the recipient has collected the email (online) and the image is specified using a fully qualified URL, the image will be cached so that recipient can view it offline anyway. You do not need to embed it.
0
 

Author Comment

by:publicityhouse
ID: 7021110
OK, so it may view again without going online, im gonna try the caching thing anyway :)
0
 
LVL 15

Expert Comment

by:gladxml
ID: 8836515
No comment has been added lately and it seems that this question have been abandoned. So it's time to clean up this TA.

I will leave a recommendation in the Cleanup topic area that this question or invite a Moderator to close this question if there's no reply from you after seven days.

In the absence of responses, I will recommend the following:

To accept the comment and points awarded to russellshome

** PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER **


Just trying to help for the cleanup...
gladxml
0
 
LVL 5

Expert Comment

by:russellshome
ID: 8859379
Good recommendation c|:-)
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question