|
Hi,
I need to send email from C#.NET windows form i am able to send the mail successfully.
But there is a problem that i need small image in signature so how can i send image in email signature...........
|
|
|
|
|
The best way, is to assume it's HTML mail and include a link to the image somewhere on the web. If it's not HTML mail, you can't do it.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
You will have to send the mail as HTML, you can also embed the image as a linked resource if required.
MailMessage mm = new MailMessage();<br />
<br />
<br />
AlternateView av = AlternateView.CreateAlternateViewFromString(body, Encoding.Unicode, "text/html");<br />
<br />
imageStream = new MemoryStream(resourceImageBytes, false);<br />
LinkedResource imageResource = new LinkedResource(imageStream);<br />
imageResource.ContentId = "signature";<br />
imageResource.ContentType = new ContentType("image/jpeg");<br />
<br />
av.LinkedResources.Add(imageResource);<br />
<br />
mm.AlternateViews.Add(av);
|
|
|
|
|
I have search Google but not found such type of designing tool for creating softwares. Just like VS.net diagram tool but with extra functionalities.
Please provide only name or link.
|
|
|
|
|
You want something that does more than VS.NET but is free ? More in what way ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Like ProxyDesigner or MetaMill?
But the latter is shareware, I guess.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Have you looked at SharpDevelop? It's free.
|
|
|
|
|
I have 3 textboxes on my webform (Sender's email,name, age).
When they hit submit, an email must be sent to an email address eg. me@gmail.com with the subject and the body should be the information from the 3 textboxes.
How can I do this?
|
|
|
|
|
1 - try using the ASP.NET forum for ASP.NET questions
2 - try using google first, the web abounds with examples on how to perform this trivial task
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Have a look at
System.Net.Mail namespace.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi.
I want to convert a word typed in english to its corresponding word in tamil.
This has to be done in C#.net.
Pls suggest me how to do this.
|
|
|
|
|
Create a database by typing in an Enlgish to Tamil dictionary, and then make a database call.
Sorry, that's it, it's a programming language, there's no translation services built in.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Perhaps there is one free editor which I have also shared it here, which should help you out:
http://aspspider.net/deepak/editor.html [^]
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
i make a complete form with text boxes comboboxes and labels in a windows application with visual studio 2005 using c sharp after two days when i open the project there is no controls on the form but references are working fine in the code file even the code exists in the designer class of form in initialize component function what is the problem?
|
|
|
|
|
Hi.
The form controls are not refreshed sometimes when the form is opened.
Just try closing the form and opening it once again.
|
|
|
|
|
Hello,
Maybe this article[^] from Muammar will help you!
All the best,
Martin
|
|
|
|
|
Hai i have to set range of angles to text box what it exactly mean is when i type value of angle in textbox it should allow values from 0 to 360 if the vlaue is nore than that i need to message so plz help me i this
RamyaNaidu
|
|
|
|
|
1. Please avoid ALLCAPS.
2. Is it really that difficult to parse the string and check the value?
3. A TextBox here is a round peg in a square hole. What you need is a NumericUpDown .
Cheers,
Vikram.
"If a trend is truly global, then that trend ought to be visible across ANY subset of that data" - fat_boy
|
|
|
|
|
how do I convert from object to control (the same as CType in VB)
private void button_click(object sender, EventArgs e)<br />
{<br />
MessageBox.Show(sender.Text);<br />
}
I think I should convert the sender to a button.
in VB i don't have to it, it converts it automatically...
Shimi
|
|
|
|
|
What about like that?
(Button)sender.Text
|
|
|
|
|
Michael Sync wrote: (Button)sender.Text
True. But I would say a line of check by having a call to .GetType() to prevent falling prey to System.InvalidCastException .
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Yeah.. You are right. Thanks.
|
|
|
|
|
ummm....
Button button;
if(sender is Button)
{
button = (Button)sender;
}
...granted, "Button" is actually System.Windows.Controls.Button or System.Web.UI.WebControls.Button.....or whatever button is contained in the namespace that you are using.
"I need build Skynet. Plz send code"
|
|
|
|
|
VB does this because it's rubbish. C# doesn't do this because it's strongly typed, one of the ways that it's NOT rubbish.
The correct way to do this is to use the 'as' keyword to see if the object is indeed a control, but if you're sure it is, just cast it
MessageBox.Show(((Control)sender).Text);
that's what CType does.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I don't think we should insult to VB developer..
|
|
|
|