|
Sending[^] email using MAPI components.
There are only 10 types of people in this world — those who understand binary, and those who don't. |
|
|
|
|
|
USE MAPI controls
Public Function send_mail(sendto As String, subject As String, _
text As String) As Boolean
'Add The MAPI Components and
'add a MAPI Session and MAPI mail control to your form
On Error GoTo ErrHandler
With MAPSession1
.DownLoadMail = False
.LogonUI = True
.SignOn
.NewSession = True
MAPIMessages1.SessionID = .SessionID
End With
With MAPIMessages1
.Compose
.RecipAddress = sendto
.AddressResolveUI = True
.ResolveName
.MsgSubject = subject
.MsgNoteText = text
.AttachmentPathName = "C:\email.rtf"
.Send False
End With
sendmail = True
Exit Function
ErrHandler:
MsgBox err.Description
End Function
Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
hi,
this code is not working....
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
Mail To : foreverkans@gmail.com
|
|
|
|
|
what is the problem
Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
nothing showing...
but not yet receive any mails..
tats problem...
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
Mail To : foreverkans@gmail.com
|
|
|
|
|
google cdonts.dll
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|
|
m2kannan wrote: i know send mail option in vb.nat as well as c#.net.
Good, then you can use that instead of VB6 - write a simple console application with your C# or VB.NET to send the email, and call that console-application from VB6.
m2kannan wrote: If anything possiblle to send mail in vb6.0.
Mail is sent using an SMTP-server. There are various examples on the 'net on sending mail using a Google-account
m2kannan wrote: Plz give solution for me.
Use a CDO.Configuration and a CDO.Message .
I are Troll
|
|
|
|
|
Okay, I have added a menustrip to a program, and when you rune the program and use the menu strip, the "onmousedown", "onmouseover" or what not, of the items have different colors than I want them too, how would I change the colors for when you scroll over a menu item, and for once you click the menu item...
Right now it's like this.... [File][Edit] ... Background Color = Black, Foreground Color = Red.
When you scroll over one, the Background Color = "LightBlueish", Foreground Color = "Reddish", with a 1px "Blueish" border.
When you click on one, the Background Color = White, Foreground Color = "Reddish".
After you have clicked on one, then scroll over the other options, the Background Colors = "LightBlueish", Foreground Colors = "Reddish", with 1px "Blueish" borders.
What I'm getting at is how to get it for when you scroll over them or click them the Background Color = "Red", Foreground Color = "Black". Thanks.
|
|
|
|
|
|
Well, that didn't really work. Hopefully this can help, I need to know where this should go...
public class MyRenderer : ToolStripProfessionalRenderer
{
protected override void OnRenderMenuItemBackground(ToolStripItemRenderEventArgs e)
{
if (!e.Item.Selected)
{
base.OnRenderMenuItemBackground(e);
e.Item.BackColor = Color.Black;
}
else
{
Rectangle rc = new Rectangle(Point.Empty, e.Item.Size);
e.Graphics.FillRectangle(Brushes.Red, rc);
e.Graphics.DrawRectangle(Pens.Black, 1, 0, rc.Width - 2, rc.Height - 1);
e.Item.BackColor = Color.Red;
}
}
protected override void OnRenderItemText(ToolStripItemTextRenderEventArgs e)
{
base.OnRenderItemText(e);
if (!e.Item.Selected)
{
e.Item.ForeColor = Color.Red;
}
else
{
e.Item.ForeColor = Color.Black;
}
}
}
public class MenuStripAllowsCustomHighlight : MenuStrip
{
public MenuStripAllowsCustomHighlight()
{
this.Renderer = new MyRenderer();
}
}
Where should that go, I believe it will be what I need to complete what I want. Here is what I already have... Well, I will post the "Edit" menu...
Public Class Form1
Private Sub CutToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CutToolStripMenuItem.Click
TextBox1.Cut()
End Sub
Private Sub CopyToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CopyToolStripMenuItem.Click
TextBox1.Copy()
End Sub
Private Sub PasteToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PasteToolStripMenuItem.Click
TextBox1.Paste()
End Sub
Private Sub SelectAllToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SelectAllToolStripMenuItem.Click
TextBox1.SelectAll()
End Sub
End Class
Thanks.
|
|
|
|
|
|
If you actually read the entire thread I posted, you will find your answer. You will not change the "hover" or highlight color by changing either the Forecolor or the Backcolor properties. Forecolor typically affects font color of a control and backcolor will change the fill color when not hightlighted. BTW, voting 1 for a post that was a legitimate effort to help is very rude.
|
|
|
|
|
Well sorry, I also stated that I couldn't figure out how to use your suggestion to my advangtage, so that is why I did what I did... Sorry, I didn't realize you would take offense for such a small thing... But thanks.
|
|
|
|
|
want to sell my softwares online what steps should i take, will standard edition licence work plzz help
|
|
|
|
|
Boost2010 wrote: want to sell my softwares online what steps should i take
Contact your local Chamber of Commerce, build a nice site that's fast and interesting, write some good software, research various online payment-methods, and check out the competition.
Boost2010 wrote: will standard edition licence work plzz help
For what application? If you're referring to your own application, then yes, a standard edition license would be fine. My second guess would be that you're referring to the license of SQL Server, or another 3d-party product.
In the case of SQL Server, yes, you need a license. Unless you're using SQL Express, which is free.
For any other third party library/application/control you'd need to check the license. You can paste the productname in a post here if you're unsure
I are Troll
|
|
|
|
|
Hello To All,
My Application Accessing Registry and Write. So Antivirus is treat it Like a Spyware. So please Give me the solution for using it.
Thanks
Anubhava Dimri
If you can think then I Can.
|
|
|
|
|
Not much you can do with code. Disable your antivirus.
If you are writing code for a client, make sure they are made aware about this.
There are only 10 types of people in this world — those who understand binary, and those who don't. |
|
|
|
|
|
Thanks for relying Abhinav,
My application working fine but in the Client Machine where Antivirus is installed my application shows like a virus and Application will be block working or delete.
If you can think then I Can.
|
|
|
|
|
It's up to the antivirus software, but it may depend on where in the Registry you're writing to. So, where are you writing data in the Regsitry?
|
|
|
|
|
I am writing data in the LocalMachine of Registry.
If you can think then I Can.
|
|
|
|
|
That's why you're getting flagged. User code should not be writing anything to HKEY_LOCAL_MACHINE.
Pick a different place to put your data, such as a file.
|
|
|
|
|
Hello To All,
Actually i have not any idea for Sucuring my code from deesembler. And How to Use Security Tools (sn.exe,Makecert.exe,Certmgr.exe,Caspol.exe,PEverify.exe etc).
Your help is needed.
Thanks & Regards
If you can think then I Can.
|
|
|
|
|
Those tools do not stop anyone from disassembling your code. Google for ".NET obfuscator" instead.
|
|
|
|
|
eg_Anubhava wrote: Actually i have not any idea for Sucuring my code from deesembler.
First, ask yourself how many computers there would be that are running an illegal version of Windows. How about Office? Now, with the knowledge that even Microsoft doesn't have a definite answer, how much money do you want to spend on prevention?
eg_Anubhava wrote: And How to Use Security Tools (sn.exe,Makecert.exe,Certmgr.exe,Caspol.exe,PEverify.exe etc).
The explanation on how to use them can be found quickly with Google. Knowing when[^] to use them is somewhat trickier.
I are Troll
|
|
|
|
|
Eddy Vluggen wrote: how much money do you want to spend on prevention?
7%
|
|
|
|