USUÁRIO:      SENHA:        SALVAR LOGIN ?    Adicione o VBWEB na sua lista de favoritos   Fale conosco 

 

  Fórum

  Visual Basic
Voltar
Autor Assunto:  VbSendMail
Michel Morgado
SAO PAULO
SP - BRASIL
Postada em 16/06/2007 12:29 hs            
Aew pessoal,
 
Alguém sabe como usar está referencia ? Não estou conseguindo.
 
 Valeuu
     
ArtSoft
SAO PAULO
SP - BRASIL
ENUNCIADA !
Postada em 18/06/2007 21:37 hs         
Amigo coloquei um projeto exemplo de como se utiliza este componente na sessão trocas de arquivos, qquer duvida estamos ai !!!

Alexandre Costa
ArtSoftSystems

Skype:artsoftsystems
MSN:alexandre.artsoft@hotmail.com
artsoftsystems@uol.com.br

   
Michel Morgado
SAO PAULO
SP - BRASIL
Postada em 19/06/2007 09:00 hs            
Art .. blz ??
 
Cara baixei o projeto só não entendi direito. Eu tenho um fonte aqui de VbsendMail só que ele não está enviando.
 
você pode me ajudar ?
 
Segue abaixo:
Private Sub EnviarEmail()
 
' *****************************************************************************
' This is where all of the Components Properties are set / Methods called
' *****************************************************************************
Screen.MousePointer = vbHourglass
With poSendMail
    ' **************************************************************************
    ' Optional properties for sending email, but these should be set Min
    ' if you are going to use them
    ' **************************************************************************
    .SMTPHostValidation = VALIDATE_NONE         ' Optional, default = VALIDATE_HOST_DNS
    .EmailAddressValidation = VALIDATE_SYNTAX   ' Optional, default = VALIDATE_SYNTAX
    .Delimiter = ";"                            ' Optional, default = ";" (semicolon)
    ' **************************************************************************
    ' Basic properties for sending email
    ' **************************************************************************
    '.SMTPHost = "mailserver.hoepers.com" ' Required the fist time, optional thereafter
    .SMTPHost = "192.168.0.252"
    .From = Trim(rsEnviarEmail!des_email_unida) ' Required the fist time, optional thereafter
   
    If Trim(rsEnviarEmail!nom_exibi_email & " ") = "" Then
        .FromDisplayName = Trim(rsEnviarEmail!des_email_unida)
    Else
        .FromDisplayName = Trim(rsEnviarEmail!nom_exibi_email)
    End If                             ' Optional, saved after Min use
   
    .Recipient = dbcdestinatario.BoundText     ' Required, separate multiple entries with delimiter character
    .RecipientDisplayName = dbcdestinatario.Text 'Optional, separate multiple entries with delimiter character
   
    'If dbcCC.BoundText = "" Then
        '.CcRecipient = txtCc                        ' Optional, separate multiple entries with delimiter character
        '.CcDisplayName = txtCcName
    'Else
        '.CcRecipient = dbcCC.BoundColumn                        ' Optional, separate multiple entries with delimiter character
        '.CcDisplayName = dbcCC.Text         ' Optional, separate multiple entries with delimiter character
    'End If
   
    '.BccRecipient = txtBcc                      ' Optional, separate multiple entries with delimiter character
    '.ReplyToAddress = txtFrom.Text              ' Optional, used when different than 'From' address
   
    .Subject = Trim(rsEnviarEmail!cod_unid) & " - SACC - " & _
                       Controledecheques.StatusBar1.Panels(2).Text    ' Optional
   
    .Message = "*******************************************************" & _
               vbCrLf & _
               "Atenção!!! Não responda esta mensagem!!!" & _
               vbCrLf & _
               "*******************************************************" & _
               vbCrLf & vbCrLf & _
               "O usuário " & Trim(Controledecheques.StatusBar1.Panels(2).Text) & _
               " da filial " & Trim(rsEnviarEmail!cod_unid) & _
               " lhe enviou está Solicitação de cheque devolvido por e-mail!!!" & _
               vbCrLf & vbCrLf & _
               "Produto: " & frmpesq.dbccredor.Text & _
               vbCrLf & _
               "Numero do cheque: " & Val(txtcodigo.Text) & _
               vbCrLf & _
               "Cpf: " & Trim(txtcpfcliente.Text) & _
               vbCrLf & _
               "Vencimento: " & Trim(txtvencimentochq.Text) & _
               vbCrLf & _
               "Valor: " & Format(txtvalorchq.Text, "#,##0.00")
   
   
    '.Attachment = Trim(txtAttach.Text)          ' Optional, separate multiple entries with delimiter character
    ' **************************************************************************
    ' Additional Optional properties, use as required by your application / environment
    ' **************************************************************************
    '.AsHTML = bHtml                            ' Optional, default = FALSE, send mail as html or plain text
    '.ContentBase = ""                          ' Optional, default = Null String, reference base for embedded links
    .EncodeType = MyEncodeType                 ' Optional, default = MIME_ENCODE
    .Priority = HIGH_PRIORITY                   ' Optional, default = PRIORITY_NORMAL
    '.Receipt = bReceipt                        ' Optional, default = FALSE
    .UseAuthentication = True             ' Optional, default = FALSE
    '.UsePopAuthentication = bPopLogin          ' Optional, default = FALSE
    .UserName = rsEnviarEmail!nom_user_email    ' Optional, default = Null String
    .Password = rsEnviarEmail!des_senha_email_unida  ' Optional, default = Null String, value is NOT saved
    '.POP3Host = "172.16.4.5"
    .MaxRecipients = 100                        ' Optional, default = 100, recipient count before error is raised
       
    ' **************************************************************************
    ' Advanced Properties, change only if you have a good reason to do so.
    ' **************************************************************************
     '.ConnectTimeout = 10                      ' Optional, default = 10
     '.ConnectRetry = 5                         ' Optional, default = 5
     '.MessageTimeout = 60                      ' Optional, default = 60
     '.PersistentSettings = True                ' Optional, default = TRUE
     '.SMTPPort = 25                            ' Optional, default = 25
   
    ' **************************************************************************
    ' OK, all of the properties are set, send the email...
    ' **************************************************************************
    '.Connect                                  ' Optional, use when sending bulk mail
    .Send                                       ' Required
    '.Disconnect                               ' Optional, use when sending bulk mail
    'txtServer.Text = .SMTPHost                  ' Optional, re-populate the Host in case
                                                ' MX look up was used to find a host    End With
    LimpaValoresGravados
   
End With
   
Screen.MousePointer = vbDefault
End Sub
     
ArtSoft
SAO PAULO
SP - BRASIL
Postada em 19/06/2007 21:04 hs         
amigão estou sem a DLL caso seja possivel me envie e testo aqui para vc !!!

Abraços,

Alexandre Costa
ArtSoftSystems

Skype:artsoftsystems
MSN:alexandre.artsoft@hotmail.com
artsoftsystems@uol.com.br

     
Michel Morgado
SAO PAULO
SP - BRASIL
Postada em 20/06/2007 09:28 hs            
Art .. Depois de testar .. testar e testar  consegui mandar os e-mail ... o projeto que você colocou la ajudou bastante ...
 
Valeuuu ..

Qualquer coisa estamos ai ..
 
Brigadão
     
ArtSoft
SAO PAULO
SP - BRASIL
Postada em 20/06/2007 13:07 hs         
Blz brother, qdo precisar pode contar !!!

abraços,
 

Alexandre Costa
ArtSoftSystems

Skype:artsoftsystems
MSN:alexandre.artsoft@hotmail.com
artsoftsystems@uol.com.br

     
Página(s): 1/2      PRÓXIMA »


Seu Nome:

Seu eMail:

ALTERAR PARA MODO HTML
Mensagem:

[:)] = 
[:P] = 
[:(] = 
[;)] = 

HTML DESLIGADO

     
 VOLTAR

  



CyberWEB Network Ltda.    © Copyright 2000-2025   -   Todos os direitos reservados.
Powered by HostingZone - A melhor hospedagem para seu site
Topo da página