|
Hi i want to write code to send email with embedded image.
i have used system.web.mail reference, and i have converted the image to base64 encoded data. Now anyone please tell me how to embed this to the email? Anyone know the code? Do i need to specify headers like "MIME Version" etc...?
please advice.
Thanks in advance.
Ali
|
|
|
|
|
Don't you have the image as a file? Then you can simply create a MailAttachment object from the file and add to the mail.
---
b { font-weight: normal; }
|
|
|
|
|
No, It's a news letter. I have to show the image in email body. I cannot use image source as URL. It's for news letter sending.
|
|
|
|
|
An attachment doesn't use an URL.
---
b { font-weight: normal; }
|
|
|
|
|
Hi Guffa,
Can i use an attachment to be shown in the mail body like what we see in newsletters? if so, please tell me how...
thank you
ali
|
|
|
|
|
Using the mime repositry.
http://www.ietf.org/rfc/rfc1521.txt[^]
I haven't used it, but I know your going to need a custom smtp option, as smtp class doesn't generate multi/part content.
Gav
|
|
|
|
|
I want to create an editor like notepad.And if I would enter some number then some fields will appear like
[A]2 [B]0 [C]02 [D]E7 [E]03
[Data]
[P] [Q] 00 [R] 1000 [S] 0 [T] 0
In this format [A] [B] ..etc will appear as soon as i will enter some number in the first line.some fields will be editable
and when I would enter some value in the editable field ,depending upon the value datafield will appear.and some more conditions lilke
this.Overally the editor will be an intelliscence editor
|
|
|
|
|
Hello
Since you are relatively new to Code Project, I would like to clear up few things for you. It's totally inappropriate to ask the forum gurus to write the program for you. The main educational idea of the forum is only to assist in difficult parts of the code. Areas where you've tried and faild, just to give a push in the right direction.
In our case your question should be more clear and specific -revise Chris's message at the top of the first page of the forum-. Either you want to get the idea of something -eg. Which event should I handle?, Should I parse the text char by char or word by word?, etc..-, or you hung up on a difficult step, which you need assistance with. In the latter case you might want to post your code, for us to analyze and figure out the problem with it.
This way you will get help on the forum. On the other hand posting questions like:
sarojkumarjena wrote: How to create a intelliscence editor
The only answer you will get is: Hire a contract programmer.
Regards
|
|
|
|
|
How to join more then one Avi files in c# into to one avi file. the format which must play the output video of inputs.
-- modified at 4:29 Monday 24th July, 2006
|
|
|
|
|
|
i am looking for code samples in plotting real-time 2d graphs in vc#.net.please help me!
|
|
|
|
|
|
hi all
i want to know is there any way to manage my application in different user's computer setting?
my application is win app., but in different resolution i have to set its usercontrols location and size .which method let me have some information about computer setting that is running on it?
salmani
|
|
|
|
|
In most cases you can get away with setting the anchors. If you have specific layout requirements there is an event that fires when the form has been resized - it will also fire initially allowing you to do the layout before the form is displayed.
The screen resolution should be ignored as you can't determine the size of the form from the screen size.
|
|
|
|
|
Use:
Screen.PrimaryScreen.Bounds. ....
See at that "Bounds". You get lot of infos there...
|
|
|
|
|
hi friends,
In my application, i need to send mail through outlook from C#(Visual Studio). Please tell me how to create button in the (new mai page) toolbar of outlook and when user clicks that mail should send to the recepient. Please Help.
Thanks & Regards,
Prya
|
|
|
|
|
|
Dear all, iam at the end stage of my project. i am having lot of dll's like common dlls, shared dlls and group specific dlls. while building my solution i referenced all dlls with copy Locat=true; what happened is when depolyed my project using the setup i created separate folders for dlls types. but my Main GUI which refers these dlls takes localy copy of all to its bin folder. so i re referenced the dlls with copy local=false. but this gave me a error "Dll not found on the path = "path i refernced during runtime" in the depolyed machine.
Basically how you people create a setup environment like this. i have one more idea, like can i add the all paths(target directroy paths of (common,shared,group)) in Environment variable-Path. so that the CLR serachs the Environment paths and detect automatically. Please suggest me Thanks and Regards,
Srini
|
|
|
|
|
Hello
engsrini wrote: i am having lot of dll's like common dlls, shared dlls and group specific dlls
Well, the following quote is from MSDN
MSDN: At run time, components must be in one of two locations: in the output path of the project or the Global Assembly Cache (GAC).
MSDN: There are several ways to deploy an assembly into the global assembly cache:
Use an installer designed to work with the global assembly cache. This is the preferred option for installing assemblies into the global assembly cache
Revise MSDN for more details about the Global Assembly Cache.
Regards
|
|
|
|
|
Thanks for your reply,
First of all, GAC is used to share our assemblies. mainly if there is a need to share, version management then we have to go for GAC. also it requires Strong name. in my case it doesn't requires all these stuffs. I want to have the separate folders like Common,Shared and Group where the GUI will refer the dll. At the worst case i can go for GAC. any other options..
I saw one more thing. in the app.config file there is one tag called <probing> where we can specify the folders in which the CLR has to look out for assembly paths. anybody having idea on this.
Thanks and Regards,
Srini
|
|
|
|
|
Hello
engsrini wrote: in the app.config file there is one tag called where we can specify the folders in which the CLR has to look out for assembly
This is at design time, before compiling your applications. It doesn't work after compiling the application.
The only way that will achieve exactly what you want -that I know of, of course-, would be Reflection.
Using reflection means that you load your assembly in the code at runtime, create dynamic instances of your classes and use them just like if they were referenced to prior to compiling-well, almost like that;)-.
It'll be a very painful programming experience if you make every call to your dll's classes or methods through reflection. Trust me you won't forget it
Search MSDN for more details about Reflection.
Regards
|
|
|
|
|
hi every one
well its strange that I'm having a bit trouble updating the database after updating the dataset here. I'm using SQL server 2000.
sqlUpdateCommand1.Parameters["@BankID"].Value = bID = Convert.ToDecimal(textBoxBankID.Text);
sqlUpdateCommand1.Parameters["@BankName"].Value = textBoxBankName.Text;
sqlUpdateCommand1.Parameters["@Original_BankID"].Value =Convert.ToDecimal(orig_bankID);
sqlUpdateCommand1.Parameters["@Original_BankName"].Value = orig_bankName;
DataRow dr = accounts1.Bank.Rows[this.BindingContext[accounts1,"Bank"].Position];
dr["BankName"] = textBoxBankName.Text;
int n = sqlDataAdapter1.Update(accounts1,"Bank");
MessageBox.Show(n.ToString());
accounts1.AcceptChanges();
---------------------------
what happens is that it shows the update in that particular column untill its not closed. as soon as I close it and reopen it, it shwos the same ol previous value. I've dont the delete and insert part but this ones not working rt.
I'll be very thankful for ur help...
|
|
|
|
|
have you specified update command for ur dataadapter properly.
rahul
|
|
|
|
|
offcourse I made the dataadapter through the wizard
the code is
this.sqlUpdateCommand1.CommandText = "UPDATE Bank SET BankID = @BankID, BankName = @BankName WHERE (BankID = @Original_" + "BankID) AND (BankName = @Original_BankName); SELECT BankID, BankName FROM Bank W" +"HERE (BankID = @BankID)";
I used the two string variables orig_bankID and orig_bankName for keeping track of the previous(original) values of the record. These have the right values too. Where am I going wrong? I just can't understand.
Rocky
|
|
|
|
|
Windows application, Use the log4net, ConsoleAppender and RollingFileAppender to write the log information to Console and file for all classes. Now, there is a problem, how can display the log in the Windows form real time?
If there is a method to display the Console message just like we use the MS VS2005 debugging programs?
thanks!
|
|
|
|