publicityhouse
asked on
ATTACH URL for file actaully on web not on local HDD
Hi, I am using the following code
dim xs
xs = """" & "http://www.myURL.com/prodimg/" & rstProduct.fields.getValue ("Image") & """"
Set myMail = CreateObject("CDONTS.NewMa il")
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
dim xs
xs = """" & "http://www.myURL.com/prodimg/" & rstProduct.fields.getValue
Set myMail = CreateObject("CDONTS.NewMa
myMail.AttachURL xs , rstProduct.fields.getValue
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
Good recommendation c|:-)
ASKER