Results 1 to 9 of 9

Thread: Want to send a email

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Posts
    13

    Smile Want to send a email

    1. How to send email. Suppose my email address is [email protected] and I want to send a email by using this address. How I can do it?

    2. How to auto compleate a combo box. I use VB 6.0

  2. #2

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Posts
    13

    Smile Want to send a email

    1. How to send email. Suppose my email address is [email protected] and I want to send a email by using this address. How I can do it?

    2. How to auto compleate a combo box. I use VB 6.0

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Posts
    13

    Smile Want to send a email

    1. How to send email. Suppose my email address is [email protected] and I want to send a email by using this address. How I can do it?

    2. How to auto compleate a combo box. I use VB 6.0

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709
    You want to send the email using? Outlook, CDO, SMTP?

    Here is a function I found and modified for autocomplete for a
    combo box. Just pass the combo box and the keyascii in the
    keypress event of the combo.
    VB Code:
    1. 'USE
    2. Private Sub cboProject_KeyPress(KeyAscii As Integer)
    3. '<RR 08/08/03 - VB/OUTLOOK GURU>
    4.     KeyAscii = AutoFind(cboProject, KeyAscii, False)
    5.    
    6. End Sub
    7.  
    8. 'FUNCTION
    9. Public Function AutoFind(ByRef cboCtl As ComboBox, ByVal KeyAscii As Integer, Optional ByVal LimitToList As Boolean = False)
    10. '<RR 08/08/03 - VB/OUTLOOK GURU>
    11.     On Error GoTo No_Bugs
    12.    
    13.     Dim lCB As Long
    14.     Dim sFindString As String
    15.    
    16.     If KeyAscii = 8 Then
    17.         If cboCtl.SelStart <= 1 Then
    18.             cboCtl = ""
    19.             AutoFind = 0
    20.             Exit Function
    21.         End If
    22.         If cboCtl.SelLength = 0 Then
    23.             sFindString = UCase(Left(cboCtl, Len(cboCtl) - 1))
    24.         Else
    25.             sFindString = Left$(cboCtl.Text, cboCtl.SelStart - 1)
    26.         End If
    27.     ElseIf KeyAscii < 32 Or KeyAscii > 127 Then
    28.         Exit Function
    29.     Else
    30.         If cboCtl.SelLength = 0 Then
    31.             sFindString = UCase(cboCtl.Text & Chr$(KeyAscii))
    32.         Else
    33.             sFindString = Left$(cboCtl.Text, cboCtl.SelStart) & Chr$(KeyAscii)
    34.         End If
    35.     End If
    36.     lCB = SendMessageStr(cboCtl.hwnd, CB_FINDSTRING, -1, ByVal sFindString)
    37.  
    38.     If lCB <> (-1) Then
    39.         cboCtl.ListIndex = lCB
    40.         cboCtl.SelStart = Len(sFindString)
    41.         cboCtl.SelLength = Len(cboCtl.Text) - cboCtl.SelStart
    42.         AutoFind = 0
    43.     Else
    44.         If LimitToList = True Then
    45.             AutoFind = 0
    46.         Else
    47.             AutoFind = KeyAscii
    48.         End If
    49.     End If
    50.     Exit Function
    51.    
    52. No_Bugs:
    53.  
    54.     MsgBox Err.Number & " - " & Err.Description, vbOKOnly + vbExclamation, App.ProductName
    55.    
    56. End Function
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    1. open Outlook or Outlook express and type in your email address in the from field...then hit send...

    2. Do a search on google.

    I can't believe people actually ask such stupid questions.
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

  6. #6
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    There is no point posting the same question in all the forums...


    Has someone helped you? Then you can Rate their helpful post.

  7. #7
    New Member
    Join Date
    Sep 2003
    Location
    House
    Posts
    1

    Angry E-mail

    Maybe if you answer the guy he will be out of your hair ?
    RLFX Designs

  8. #8
    Addicted Member
    Join Date
    Aug 2003
    Location
    Singapore
    Posts
    245

    Lightbulb May i comment

    May Be This Will Ease His Mind?
    VB Code:
    1. Public Declare Function ShellExecute Lib "shell32.dll" Alias _
    2.     "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, _
    3.     ByVal lpFile As String, ByVal lpParameters As String, _
    4.     ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
    5.  
    6. Private Sub cmdSend_Click()
    7.     ShellExecute hwnd, _
    8.         "open", _
    9.         "mailto:[email protected]" & _
    10.         "[email protected]" & _
    11.         "&[email protected]" & _
    12.         "&subject=Yummy Tummy For U'r Tummy" & _
    13.         "&body=" & Replace("Delight & Desert", vbCrLf, _
    14.             "%0D%0A"), _
    15.         vbNullString, vbNullString, _
    16.         SW_SHOW
    17. End Sub
    I may have interpret your post wrongly
    Correct me if I made a mistake...
    Hope This Helps.. .....Enjoy Coding.....//


    zak2zak

  9. #9

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width