Results 1 to 9 of 9

Thread: E-mail me info.

  1. #1
    billfaceuk
    Guest

    E-mail me info.

    I know this has been asked before but i'm pretty sure an answer wasn't gained. So heres what I want:
    I want the user to type in some info press ok and then the info the user just entered will be e-mailed to me.

    Simple as that

  2. #2
    Lively Member floppes's Avatar
    Join Date
    May 2001
    Location
    Darmstadt, Germany
    Posts
    99
    Visit http://www.vbforums.com/showthread.p...threadid=76836.

    There I have posted code to send e-mails using SMTP. You just have to use this code and hide all the controls.

  3. #3
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    VB Code:
    1. Private Sub Command1_Click()
    2.     Dim Outlook As New Outlook.Application
    3.     Dim mail As MailItem
    4.  
    5.     Set mail = Outlook.CreateItem(0)
    6.    
    7.     With mail
    8.         .To = "[email protected]"
    9.         .Subject = "This Is the Subject"
    10.         .Body = "This Is the body of email"
    11.         .Send
    12.     End With
    13. End Sub
    -= a peet post =-

  4. #4
    Addicted Member Icheb's Avatar
    Join Date
    Jul 2001
    Location
    The Netherlands
    Posts
    232
    Originally posted by peet
    VB Code:
    1. Private Sub Command1_Click()
    2.     Dim Outlook As New Outlook.Application
    3.     Dim mail As MailItem
    4.  
    5.     Set mail = Outlook.CreateItem(0)
    6.    
    7.     With mail
    8.         .To = "[email protected]"
    9.         .Subject = "This Is the Subject"
    10.         .Body = "This Is the body of email"
    11.         .Send
    12.     End With
    13. End Sub
    Is it possible to whipe the message from the 'Send mail' too ?
    Or is that too hard to do ?
    The main VB routine in Windows XP (The don't admit it, they wrote it in VB)

    [vbcode]
    Public Sub Windows_Load()
    a = 1
    b = 2
    if not a + b = 2 then
    goto crash
    end if

    goto crash

    End Sub
    [/vbcode]

  5. #5
    Frenzied Member Mega_Man's Avatar
    Join Date
    Mar 2001
    Location
    North of England, South-East of Iceland
    Posts
    1,067
    Can the same procedure be used with the old MSMail program.

    Mega.
    "If at first you don't succeed, then skydiving is not for you"

  6. #6
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    Originally posted by Mega_Man
    Can the same procedure be used with the old MSMail program.

    Mega.
    couple of things:

    1. Outlook has to be installed if u want to use this tecnique.
    2. will work for outlook 98 and outlook 2000 (for other versions i don't know.
    -= a peet post =-

  7. #7
    Frenzied Member Mega_Man's Avatar
    Join Date
    Mar 2001
    Location
    North of England, South-East of Iceland
    Posts
    1,067
    What about Outlook express

    Mega
    "If at first you don't succeed, then skydiving is not for you"

  8. #8
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    Originally posted by Icheb


    Is it possible to whipe the message from the 'Send mail' too ?
    Or is that too hard to do ?
    you want the message to be sent without the user knowing it?
    then I think u should use the sample code provided by floppes.

    The message is not sent automatically from outlook if the user havent set the "send at once" property. if he hasn't, it will stay put in the outbox untill the user presses send/receive.

    it is probl. possible to delete the message from the sent items folder. I don't know how though.. sorry.
    -= a peet post =-

  9. #9
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    Originally posted by Mega_Man
    What about Outlook express

    Mega
    sorry don't know, maybe its possible using MAPI.
    Have u searched this forum for it?
    -= a peet post =-

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