|
If a standard img tag won't work, then nothing will.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
<img src="Your Path"/>
|
|
|
|
|
Ensure that Yahoo Email supports HTML Email Signatures and then paste the img tag
BTW, you need to upload that IMG file somewhere out on hosting servers. Is'nt it? Did you check whether your host supports remote loading of files?
If not, you may need to check out some Image Hosting servers?
Deepak Kumar Vasudevan
Personal Web: http://vdeepakkumar.netfirms.com/
I Blog At: http://deepak.blogdrive.com/
|
|
|
|
|
I originally posted this on the C++ forum here, but didn't get any response, so I'm trying here ... BTW, I'm using Visual C++ 7 with MFC, which seems to be part of my problem:
A project I'm working on has me updating some app generated e-mail code (that used Simple MAPI) so that it can send image attachments that show up inline as part of an html message instead of simply as attachments. I used CDO for this, which worked great once I could finally figure out how it all worked (worst part is most of the MSDN samples were usually missing one key component to get it to work ... grr). I'm almost done, except for one little problem. What I want to do is open the generated e-mail up with the default e-mail program, to allow the user to change the message as they want and put in recipients. But, using the IMessage's Send function, the call will fail unless there is a recipient specified ... in other words, it will only send the message silently, without user interaction.
With simple MAPI, I can simply call SendMail with the MAPI_LOGON_UI|MAPI_DIALOG flags, and it opens up the e-mail in the e-mail client. This works great, and is what the old code used to do. Too bad I can't use this function with the IMessage message.
From what I can see from sample source and other documentation, with pretty much any other language supported by Microsoft, the Send function I'm calling has a ShowDialog parameter that allows you to pop-up the dialog like I want it to (I'm so sick of seeing VB examples like this I could just puke). Unfortunately, this function is not available with C++, it only has the one version that takes no parameters.
One line of thought I had was to save the email out as a temporary file, then send open it with a shell command .. but that won't work quite right either, the generated e-mail can be saved as a .eml file, which opens up in Outlook Express ... not the default e-mail program, and even that doesn't quite work the way I intend either.
I've been searching through MSDN and the web for over a day now, and because the functionality is there for other languages, I know there has to be a setting or field I can set to allow this ... but I can't find anything. Anyone go through something similar, or have some other place I can look?
-----
In the land of the blind, the one eyed man is king.
|
|
|
|
|
<%<br />
<br />
'Dimension variables<br />
Dim adoCon26w 'Holds the Database Connection Object<br />
Dim rsUser26w 'Holds the recordset for the record to be updated<br />
Dim strSQL26w 'Holds the SQL query for the database<br />
Dim lngRecordNo26w 'Holds the record number to be updated<br />
<br />
'Read in the record number to be updated<br />
lngRecordNo26w = Request.QueryString("d")<br />
strDate = lngRecordNo26w<br />
<br />
<br />
times = DateAdd("d",14,strDate)<br />
<br />
<br />
'Create an ADO connection odject<br />
Set adoCon26w = Server.CreateObject("ADODB.Connection")<br />
<br />
'Set an active connection to the Connection object using a DSN-less connection<br />
adoCon26w.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("admin/***********.mdb")<br />
<br />
'Create an ADO recordset object<br />
Set rsUser26w = Server.CreateObject("ADODB.Recordset")<br />
<br />
'Initialise the strSQL variable with an SQL statement to query the database<br />
strSQL26w = "SELECT * FROM tb_news Where n_date BETWEEN ("&strDate&") AND ("×&")"<br />
<br />
'Open the recordset with the SQL query <br />
rsUser26w.Open strSQL26w, adoCon26w<br />
<br />
%><br />
<br />
<br />
<% do while not rsUser26w.EOF %><br />
<% = rsUser26w("n_title") %> <% = rsUser26w("n_date") %><br /><br /><br />
<% = rsUser26w("n_desc") %><br /><br /><br />
<br />
<% <br />
rsUser26w.MoveNext <br />
Loop <br />
%><br />
<%<br />
'Reset server objects<br />
rsUser26w.Close<br />
Set rsUser26w = Nothing<br />
Set adoCon26w = Nothing<br />
%>
Heres my asp code but i can't get the records to come out my database any ideas? thx
|
|
|
|
|
Hi everyone,
I have a problem of sending email by using ASP code.
Because my pages host on a public host server, so I can't send email by simplely creating a CDO and send it. Here is the code that I used:
Dim msg
Set Msg = CreateObject("CDO.Message")
set msg.Configuration=objConfig
With Msg
.To = "to@hotmail.com"
.From = "from@yahoo.ca"
.Subject = "test"
.Body = "asdfas"
.Send
End With
set Msg=nothing
And also I know the smtp server address like: smtp.hostserver.com.
Does any know how to solve the problem? Please help me, it is really urgent!!
Thank a lot in advance!!!
Alan Shen
MCAD for .NET Version
^~^~^~^~^~^~^~^~^~^~^
Great idea is the beginging of success!
|
|
|
|
|
This is far too little information to work with, but I'll take a stab at it.
For one, you say you're using a public server - do you have a valid account on that server? If so, does the From property of your message object exactly match the account address? Most SMTP servers are set to reject any email that is from anyone who does not have a valid local account. This helps to keep spammers and other subhuman slime-molds under control.
Does your SMTP server require authentication? If so, the code you've provided doesn't include any provisions for it.
It would be very helpful if you would post the actual error messages that you're seeing - general descriptions of problems almost never lead to solutions. You might also consider posting the actual code for your solution - all of it - as these things can often be subtle, and no one can help you if you don't provide adequate information.
"...putting all your eggs in one basket along with your bowling ball and gym clothes only gets you scrambled eggs and an extra laundry day... " - Jeffry J. Brickley
|
|
|
|
|
Thanks a lot Roger!
I can't access the server directly, because I write the code for sb. The information I gave to you is what I knew.
I will put all the server and authentication information into the configuration, then give it a try.
Thanks again!
Alan Shen
MCAD for .NET Version
^~^~^~^~^~^~^~^~^~^~^
Great idea is the beginging of success!
|
|
|
|
|
Hi Alan:
I think you have'nt given the error messages that you are encountering whilst attempting to send the message.
Furthermore, try the following too:
(1) Any messages on EventLog or your application logger regarding this page that have been logged?
(2) Do you an On Error Resume Next. Do you have a On Error Resume Next somewhere on top but you are not checking the Error OBject after sending the mail.
(3) Regarding SMTP Server
(1)Is it accessible from your workstation?
(2)Is the SMTP service running?
(3)Does it support some type of authentication and if yes, are you authenticated to it?
Did this help you?
Deepak Kumar Vasudevan
Personal Web: http://vdeepakkumar.netfirms.com/
I Blog At: http://deepak.blogdrive.com/
|
|
|
|
|
I'm developing a web application where a client registers himself and after that i want to create a database by using an existing template database from the server on the same server or another but with a differnt database name for example :Template db name - prodb
then new database name will be if the user name is "ng" then the database name will be
"ng_prodb"
i'm using c# as server side script, and SQL server 2000 is the database,please sugges me how can i achieve this..
Thanking you in advance
Regards
Nitin P.
|
|
|
|
|
Gosh... this sounds like an incredibly inefficient way of doing things! Why not simply put all the user data in the one database and add a UserID field to your table(s) as appropriate, along with a separate table of these UserID's and logins etc?
However... if you really want... you can use SQLServer itself to generate a SQL script for creating the template database, and then use that script to build up a new one whenever you want it, amending the db name as needed. Remember to include all your permissions etc in your script. Then execute that script against your db connection. eg:
dbConn.Execute "CREATE DATABASE...etc"
cheers
Phil
|
|
|
|
|
of course, you will need to be logged in with database adminstrator priveleges to do this, and if you are trying to do it on a public webserver you probably won't have this. I would really suggest you find a more efficient solution to your needs.
Phil
|
|
|
|
|
Actualy the template database may be modified in the future so i wanted it to to be dynamically done. Regarding your doubt about creating new database for each user is - its a an ERP solutions so each customer needs to have differnet database according to clien't requirement, its just to setup initialized information.
|
|
|
|
|
Dears All
Thats my first question I am posting, i dont know if this is the right place to post it or not, so sorry if its not
I am actually jst using the web browser control in order to parse the html source code.
so far everything works fine, but there is something very simple irritating me
I have created the IE window and managed to make it display web pages, but my scroll bar does not work !!! although it is shown it does not do anything
m_webBrowser.Navigate(urlAddress, NULL, NULL, NULL, NULL);
m_webBrowser.EnableScrollBarCtrl(1, TRUE);
Please can any one tell me how to make the scrollbar work because its really bothering me
Thank you
Adam
|
|
|
|
|
Just a question
Does your document have enough text and BR 's to cause your scrollbars to enable themselves??
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
Yes it does.
Do i have to set the scrollbar to scroll manually or does it set itself automatically !!!
I have tried different websites but i still cant make the scrolbar work although its showing,
Any ideas are very welcome
thanx 4 the help
Adam
|
|
|
|
|
I'm confused and hope someone can enlighten me.
I have successfully programmatically set up a "Shared Folder" on one computer. I want to access that folder and retrieve files from that folder, but do it from another computer. Both computers are connected to the Internet. It was my understanding that I could reference a file on the "other" computer with something like
"\\123.21.105.6\SharedFolder\Test.txt"
and that I could access it (from my C++ program)with something like:
FILE* theFile;
theFile = fopen("\\123.21.105.6\SharedFolder\Test.txt", "r");
But that doesn't work. It never succeeds in openning the file.
I've been looking all over the internet for information on how to do it correctly but I'm only getting more and more confused.
My impression (now) is that the above approach is wrong, and that there needs to be some kind of server running on the target computer and that I have to communicate with that server in order to retrieve the desired file, or that I have to use some kind of file transfer protocol (ftp?) in order to do it.
What I really need is some straightforward explanation or (ideally) actual C++ code that says, "you've got a file on another computer's shared folder, here's how to get it..."
But the best that I've come across are things like, "here's 100,000 lines of code, with 2,586 classes, and somewhere in there is the way to access files on another computer, have fun figuring out how."
Any help/advice on this would be greatly appreciated.
Roger Garrett
|
|
|
|
|
Windows file sharing protocol is normally blocked by routers, so it can be used only between computers on the same LAN. You could setup a VPN between the machines to allow file sharing to work.
|
|
|
|
|
I am trying to figure out how to give the User the opportunity to identify an Excel file on their Client PC so that I can then open it up programatically within my ASP.NET Webforms Application.
So far everything that I have tried always shows me the directory structure on the Server instead of the Client.
Am I missing something really obvious here?
|
|
|
|
|
well... I would use a File Upload routine and simply note the filename w/o actually uplaoding the file, if I wanted to do something else with it. A good and simple implementation of File Upload can be found on the excellent http://www.metabuilders.com[^] resource.
cheers
Phil
|
|
|
|
|
I want to navigate the whole web page with the next and previous buttons. My data is scattered all over the page and so its not fixed at a particular position there by limiting me to use the Datalist, DataGrid or repeater controls. So how can I enable paging in the entire Web Form. I wish I could attach a file to show you what I mean. Please write your e-mail address so that I can attach an image of the web form i am talking about.
|
|
|
|
|
I'm using IIS 5.1 on a windows XP box and I am trying to access files in a folder on another machine in my domain. I am using visual studio 2003 and created a asp.net web aplication using visual basic. I have a simple button that calls a DIR command so see if a file exists. If I do this to a local file it returns the file name and everything is ok. If I try to find a file in \\Fileserver1\Data1\test.txt which I know exists it retuns blank (not found). I tried using anonymous access and putting in a user and password who is a domain admin to try to avoid rights issues. I've also tried basic authentication and put in a user who is a domain admin and I still cann't see the file. Is this just not possible because of the hashing of the password? My ultimate goal is to access FoxPro tables that reside on fileserver1. Any advice would be great even if it is this cann't be done.
|
|
|
|
|
|
you are corret. Asp.net uses the ASPNET user by default no matter what the anonymous user account is. This ASPNET user is autocreated by .net setup and has an autogenerated password. It is a local account. If you wish to change the password or changed the user asp.net uses you need to edit the machine.config file in the C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFIG subfolder. Look for the "
|
|
|
|
|
<script type="text/javascript">
<!--
var now = new Date();
var year = now.getYear();
document.write(year);
//-->
</script>
If I put this code following ©, should it not write '2005'? In IE it does, but it writes '105' in Firefox, NS (except 8beta), and Opera.
Thanks!
|
|
|
|