?
Solved

ATTACH URL for file actaully on web not on local HDD

Posted on 2002-05-20
5
Medium Priority
?
290 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
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…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

765 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