Cdonts Embedded Image

My readers that are lotus note user receive the mails I send using cdonts with image displayed as attachement in place of inline.

I read http://www-1.ibm.com/support/docvie...uid=swg27002572
that say "for displaying image inline in lotus you must set correct
mime header as content disposition : inline"

however I can't achieve it with cdonts : my mime header is stuck to
"content disposition : attachemnt" and I can't see how to change it.

I read somewhere that using attachurl instead of attachfile will fix
it but my test did not achieve this way.Any of you experienced sending inline image to lotus note users with cdonts ?

View Replies


ADVERTISEMENT

Send Html With Embedded Image Email In Asp

I want to send email in html format with containing more images added dynamically using cdo.message method. can you pls explain any body one how to do this. i alredy done this, but it send only one picture with that email. here i posted my code also. pls any one tell me what is the problem in this code.

theSchema="http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig = server.CreateObject("CDO.Configuration")
cdoConfig.Fields.Item(theSchema & "sendusing")= 2
cdoConfig.Fields.Item(theSchema & "smtpserver")= "smtp server"
cdoConfig.Fields.Update

Set mail = Server.CreateObject("CDO.Message")

html = "<html>"
html = html & "<head>"
html = html & "<meta http-equiv=""Content-Type"""
html = html & "content=""text/html; charset=iso-8859-1"">"
html = html & "</head>"
html = html & "<body>"
html = html & "<p><font face=""Arial"" ><b>Name: " & name & "</b></font></p>"
html = html & "<p><font face=""Arial""><b>Company Name: " & cname & "</b></font></p>"
html = html & "<p><font face=""Arial""><b>Country: " & ctry & "</b></font></p>"
html = html & "<p><font face=""Arial""><b>E-mail: " & email & "</b></font></p>"
html = html & "<p><font face=""Arial""><b>Details: " & remarks & "</b></font></p>"
html = html & "<p>&nbsp;</p>"

for i = 0 to ubound(iid)
html = html & "<img border=""0"" src=""" & "http://www.abcd.com/img/" & fnme(i) & """></td>"
next

html = html & "</body>"
html = html & "</html>"

mail.From= emailFrom
mail.Configuration=cdoConfig
mail.To = emailTo
mail.Subject = emailSubject
mail.HTMLBody = html
mail.Send
set mail = nothing
set cdoConfig = nothing

View Replies View Related

CDONTS Attachment To External Image

<%
Set theMail = server.CreateObject("CDONTS.NewMail")
theMail.From = "user -at- domain -dot- com"
theMail.To = "user -at- domain -dot- com"
theMail.Subject = "Requested Form"
theMail.AttachFile
("http://www.microsoft.com/library/toolbar/3.0/images/banners/ms_masthead_ltr.gif")
theMail.Body = "My email body"
theMail.Send
Set theMail = nothing
%>

That doesn't work :) Is that even possible?

View Replies View Related

Embed Image Within HTML Email (CDO Or CDONTS)

Usually, when I send HTML emails, I just SRC the image to my web server, but now I would like to consider embedding images for those instances when potential customers may view the email when offline.

Can this be done with CDO or is another component required?

View Replies View Related

Name Of Arabic Font Which Can Be Embedded

my problem is that i want to convert my web pages into Arabic. and for
this I have already install Arabic font in my pc but the problem is that
once i select that specific Arabic font the text is still written in
English . Can u please suggest me some embedded Arabic fonts which are
when selected will write Arabic rather than English.

View Replies View Related

Embedded Code Within JavaScript

I have a checkbox in a form and i want it to create a session if clicked. If it is not checked the session is deleted. I have tried the code below but it always creates the session even if the check box isnt clicked.

<input type="checkbox" id="txtValidate" onClick="<%session("checked")= "true"%>" />

View Replies View Related

Logon Field Embedded In Web Page

I have a logon field including user name and password, which is stored to an access DB. Many websites have a logon and password field integrated into the page. I want the field to always be there.

When successfully logged on, the user will have access to other pages that I designate.

I have a complete web page and I want to stick the code from the working logon field, etc in the page w/o redesigning it around the existing logon.asp page.

I am asking if this is something I can do with the skills that I currently possess? Remember, I'm a novice .asp programmer, but an experienced web designed. We're working on the "dynamic" in web page design.

View Replies View Related

JavaScript Where It Runs When Embedded In Asp Page

I want to know when we embed javascript or vbscript in asp pages where the script runs whether on client's browser or web server? also is there any possibilities like in asp.net we have "runat" wherein we can specify sever or client option available when we are programing in asp.

View Replies View Related

Embedded Flash Movie Controls

I have embedded a flash movie (.swf) in my web page - but I don't know how to put the "play,pause,stop,volume" controls to the video.I need the movie to share with my colleagues at work using our local web server.

View Replies View Related

Exporting To Word Using ASP - Need Linked Images To Be Embedded

I have an application in ASP that exports to Word using the Response.ContentType method.

The application references another ASP page through the img tag that uses a Response.BinaryWrite (of an img content type) for its output.

In other words:

App A.ASP contains the code: [...] <%Response.ContentType =
"application/vnd-msword"%> [...] <img src="B.ASP">

Then B.ASP contains the code: [...] <%Response.ContentType = "image/png"%>
[...] <%Response.BinaryWrite BinaryObject%> [...]

When Word opens and the document is saved, it references the images as links. I need to have these images be embedded as the file will need to be emailed outside of the network.

I can go in and manually break the links and save them as embedded files, but this process needs to be automated as users will not know how to do this.

Is there a way to force these images to be embedded instead of referenced as links when the Word doc is intially created?

View Replies View Related

Searching Access Databases And Their Embedded Documents.

I've had a look and found a few items on searching a database but I need something a bit more complicated.

I want to store documents in a database, I also want to have a web page view and pdf download of the documents available (easy enough if I just embed the URL of the locations). The problem is I want to also be able to provide a search page that allows the user to search the documents and the database (for authors, date etc) using the same page.

So the question is what's the best way to start with the database and pdf docs and end up with a web view and search engine for it. The database is Access btw.

View Replies View Related

ASP, CDO For Windows 2000 & Embedded / In-line Images Showing As Attachments

I have been using the CDONTS.Newmail object for a number of years to send
nicely formatted HTML Emails with inline images.

I am now trying to switch over to using CDO and I cannot reproduce this
functionality. I am using the AddAttachment method instead of the old
AttachURL method but the attached images just show as separately attached
files rather than in line in the HTML.

According to MSDN:

"If you populate the HTMLBody property before calling the AddAttachment
method, any inline images are displayed as part of the message."

Well, I am doing that but it is not working. The images show up as if I had
attached them using the old AttachFile method.

Code follows....

View Replies View Related

Display An Image From Access, Stored As Location Name Not Actual Image.

I have a client who has had a ASP site with an Access database for several years. It stores information for the used cars on his lot. I have stored text in the database that points to the location of the image for each record. Each record will have a thumb image that is supposed to display in a list of vehicles available then the user can select an item from this list and a new page displays with the information and the regular size image. So far everything has worked fine exept for the display of the images which are stored in a separate directory called veh-photos. All I get are image place holders. I am using Dreamweaver 2004 and and Access 2000 for the database.

Following is the code to list vehicles: ....

View Replies View Related

Open Image In 'Kodak Image Edit Control' With Web Browser

1.I want to show a image file of type '.tif' in the browser window; for that I'm writting as ASP code page.

2.This '.tif' type image can be shown better with 'Kodak Image Control'.

3.To have this 'Kodak Image Control' on my code page I just add it's ..ocx to tool box and then drag it from 'Toolbox' to the page.

4.Now after dropping this control to the code it's type is getting changed to 'object' instead of type 'ImgEdit'(and I think this is the
reason I don't get correct result).

5.On one button's 'Onclick' event I'm calling a javascript function with which I'm setting a 'Path'and'Display' property of a control.

6.And want to show a image at location -- '..MFTDRCMF919685173-62.tif' which get shown in new browser window but could not get shown in that particular control. That means the path is correct, then what is the problem?

For better understanding of problem I'm pasting a following code which I've tried up till now......
..................................................
<%@ Language=VBScript %>
<% OPTION EXPLICIT %>

<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">

<SCRIPT LANGUAGE=javascript>
<!--
function showpic()
{
var path;
path = document.frmtif.path.value;
alert(path);
document.frmtif.ImgEdit1.Image =path;
document.frmtif.ImgEdit1.Display;
window.parent.self.open(path);
}

//-->
</script>

</HEAD>
<BODY bgColor=#ffe4e1>
<form name="frmtif">
The Image
<P>
<OBJECT id=ImgEdit1 style="WIDTH: 409px; HEIGHT: 218px" type="ImgEdit"
align=left
border=1 classid=clsid:6D940280-9F11-11CE-83FD-02608C3EC08A
name=imgtif></OBJECT>

<input type="hidden" name="path"
value="..MFTDRCMF919685173-62.tif">
<input type="button" name="show" value="Show" onclick="showpic();">
</P>

</form>
</BODY>
</HTML>

..................................................

View Replies View Related

Displaying Alternate Image When Image Source Not Found

I am creating a dynamic ASP VBScript page, which gets data from an Access database.

In the database, there is a field which holds a URL to an image. I can get the image to display fine, but where there is no file that matches the URL (i.e. a missing image) I want to display an alternative, default image (e.g. one that says "Awaiting Image"). The field is never blank, but the image file may not exist for all records in the database.

I think what I am trying to get to is the following:

If file exists (using URL from database to get location of image file) then
display image using the url from the database as the image source
else
display default image - hardcoded in program
endif

I have had a go and come up with the attached but I get an error with my if statement...

View Replies View Related

Image From Image Folder Into Byte Array?

I can convert an image that is retrieved from a FileUpload object into a byte array and insert it into the database..

When the user signs-up i wish tosimply insert into the Picture (DB Type = Image) field to an image i already have saved in my images folder?

Anyone know of a way to do this? Tutorials, articles or advise??!

View Replies View Related

Show Image From SQL Image Field?

Here is my code. I'm using 2 pages.

(Page 1) blob.asp

<%
set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_blob_STRING
Recordset1.Source = "SELECT AboutPic FROM Elizabeth.GF_AboutUs"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 3
Recordset1.Open()
Recordset1_numRows = 0
%>
<%
Response.contentType = "image/jpg" 'Recordset1.Fields("AboutPic") <---Tried
both methods
size = Recordset1.Fields("AboutPic").ActualSize
blob = Recordset1.Fields("AboutPic").GetChunk(size)
Response.binarywrite(blob)
%>

(Page 2 Show the Image)

<%
Dim urlString
urlString = "?" & Request.QueryString
%>

<% Another rs to show other information as text from the same table %>

<body>
<img src="blob.asp<%=urlString%>" width="194" height="256">
</body>

View Replies View Related

Upload New Image Get Path Of Old Image

I'm working on a project where I'm suppose to upload a image to a server. The uploading works fine but when I want to change the image I uploaded to another image I can't get the filepath of the old image to show in my "filefiled"....is it possible to set a "value" where I can retrieve a filepath in a form if the input type is "file"?

View Replies View Related

<%=request.querystring("image")%> Image Won't Display

This worked fine for enlarging my images until i put it onto a secure server, anyone know how i can fix it ??? just comes up with the standard box with a red cross in it .. and the url when i click image properties says: http://url/images/<%=request.querystring( which is only part of the code)

View Replies View Related

Merge An Image Into Another Image

I'm looking for a simple way to merge an image into another image.What i have is a screenshot uploader, and i want to make it so that when they upload the SS, the script will automatically merge a small copyright type image onto the bottom right of the picture.

View Replies View Related

Cdonts

I am not having any trouble getting cdonts to work, but damn is it slow. I have the importance set to 2, but sometimes it can take a whole day or more to get the email. Anyone, know how I can make this faster, or another freeware program to send mail faster.

View Replies View Related

CDONTS

I am trying to use CDONTS to send an email and have the code below.

Set Mailer = Server.CreateObject("CDONTS.NewMail")
Mailer.From = "scottfrancisfrancis@hotmail.com"
Mailer.To = "scott.francis@eleco.com"
Mailer.Subject = "Segment Order Confirmation"
Mailer.BodyFormat = 2
BT = "Add order details here"
Mailer.Body = BT
Mailer.Send
set Mailer=nothing

I have declared the Mailer variable earlier in the code, the page runs through without any problems and redirects as it should but no mail gets sent. Can anyone see what I am doing wrong?

View Replies View Related

CDONTs To CDO

We jsut transfured our webhosts to another company, and the new servers are Win 2k3, well our others were Win 2k. I did not know that 2k3 did not support CDONTs.
I use the CDONTs for all the mail forms on our site. Is there any good turorial that have that are about CDOs? ALl i can find are CDONTs and CDOs with CDONT objects so that has been no help.

View Replies View Related

CDONTS

want to use CDONTS to sent my email. and i read this exellent thread:
How to use CDONTS
I have all kinds of forms with different names and values on different pages. How can i include all the fields of a submited form if they change name from form to form (or better yet, from page to page)?
I think that i would have to count the items and then include them in the form. but i don't know if that would work and how to do it.

View Replies View Related

CDONTS

Does anyone know of a FREE ASP hosting website that has CDONTS enabled?I want the page to be able to send e-mails.

View Replies View Related

CDONTS

According to the ASP 3.0 Programmer's Reference published by Wrox Press (copyright 2000), CDONTs has several limitations. One is that it offers no built-in user authentication and security features.
Is there any easy way to use CDONTS and have security at the same time? If you have an e-commerce web site and send an email to the vendor with a customer's credit card number and expiration date, could that information be intercepted? Is it possible to prevent that using whatever a web host has available

View Replies View Related

CDO Not CDONTS

I have a script that I've used elsewhere and it always
works fine. It uses CDO not CDONTS. IIS settings seem to
be the same as on other servers that have websites
running the same script.
When the form is submitted it runs until it gets to the
send line. Error says access denied. The script's access
is set the same as the rest of the site.
Getting very frustrating as I am out of my depth here.
Where do I start to correct this?

View Replies View Related

CDONTS

I would like to know if any one here know any sample examples or scripts that I can modify to work with a group mailing program. I would like to implement a form that uses CDONTS to grab the input and automatically emails to the given email.

i'm unable to extract user's full name as the 'From' section needs to be in the following format - "full name <email@dot.com>"

i was gonna use string concatenation but it dont like the symbol "<"
any help?

View Replies View Related

CDONTS

I have an urgent problem with ASP CDONTS right now.

This is my code:

Set Mail=Server.CreateObject("CDONTS.NewMail")
Mail.To="someone@somewhere.com"
Mail.Bcc="someoneelse@somewhere.com"
Mail.From="abc@abc.com"
Mail.Subject=Request.Form("subject")
Mail.Body=Request.Form("body")
Mail.Send
Set Mail=nothing

The mail is sent to someone@somewhere.com, but not the bcc address which is someoneelse@somewhere.com. Is my code wrong?

View Replies View Related

CDONTS

I have numerous forms processed using ASP and once they are added or amended I need to e-mail various locations to advise them that the form has been changed depending on the location in the form. This is not the problem a case statement does the biz and the SQL and databases are running like clockwork
The issue is that we have an exchange server but most of the e-mail adresses are internal only, so they have display names and aliases but as I can see no domain!!!! As I can see CDONTS only works with a domain. I have had a good search on the forum but I cant see a solution.
Is there another object that would work.If not is something out there that would the job, be it a VB Script or something else

View Replies View Related

CDONTS

I need to set up an online form that uses CDONTS to send information to different email addresses based on the user's selection in a drop-down box.There are five choices and each one needs to go to a different email address.I realize I there has to be an indexed array of emails, but I don't know where to start.

View Replies View Related

CDONTS

used the following script but it won't send the email.

<%
Dim TBdy
Dim MyCDO
Set MyCDO = Server.CreateObject("CDONTS.NewMail")
MyCDO.From = "person@something.org"
MyCDO.To = "allstar@aol.com"
MyCDO.Subject = "collegebound info"
TBdy = Request.Form("cb_name")
MyCDO.Body = TBdy
MyCDO.Send
Set MyCDO = nothing

%>

I received an error 0x800A0046 Permission Denided

I am using Win2000 Sever with exchange2000 and ISA2000.

View Replies View Related

CDONTS

I am using CDONTS for users to send mail from a form. The first question is, when a user recieves the mail, [QUAR] is at the beginning of the subject line. Any ideas what that is? Second question, if one does not put a valid value for the FROM property, the e-mail won't send.

But I do not want users to be able to reply to this type of e-mail. What can I do? When I do a search for [QUAR] nothing comes up and I can't seem to find anything for the FROM property either.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved