Ver Mensaje Individual
  #13 (permalink)  
Antiguo 08/08/2008, 04:17
Insomnia
 
Fecha de Ingreso: noviembre-2005
Mensajes: 751
Antigüedad: 19 años, 5 meses
Puntos: 13
Respuesta: Enviar datos de formulario VB6 por Outlook

Hola

Buscando un poco en la red he encontrado el siguiente código.

Código:
    Dim objOL As Outlook.Application
    Dim msg As Outlook.MailItem
        
    Set objOL = New Outlook.Application
    Set msg = objOL.CreateItem(olMailItem)
    
    With msg
        .Subject = "Título del email"
        .Body = text1.text & vbcr & text2.text
        .Send
    End With

    Set objOL = Nothing
Recuerda que tienes que agregar la referencia "Microsoft Outlook 11.0 Object Library" desde Proyecto / Referencias (en este caso al ser una referencia no aparecerá ningún nuevo control, se hace todo desde código)

Suerte.