Skip to main content

AccessTr.neT


Vba İle Mail Gönderimi

Vba İle Mail Gönderimi

Çözüldü #1
Merhaba Arkadaşlar,
Uzun süredir CDO ile Vba üzerinden gmail kullanarak mail gönderebiliyorduk. Google bey amca daha az güvenli uygulamaların erişimini kapattığı için artık mail gönderimi yapamıyorum. Çözüm için araştırdım fakat somut bir çözüm bulamadım. Yardımcı olabilir misiniz acaba??  Fur



Function SendMail()
    On Error Resume Next
    Dim iMsg, iConf, Flds, schema, rapor
    Set iMsg = CreateObject("CDO.Message")
    Set iConf = CreateObject("CDO.Configuration")
    Set Flds = iConf.Fields
    schema = "http://schemas.microsoft.com/cdo/configuration/"
    Flds.Item(schema & "sendusing") = 2
    Flds.Item(schema & "smtpserver") = xxxx
    Flds.Item(schema & "smtpserverport") = xxxx
    Flds.Item(schema & "smtpauthenticate") = xxxx
    Flds.Item(schema & "sendusername") = "xxxxxx"
    Flds.Item(schema & "sendpassword") = "xxxxxxxx"
    Flds.Item(schema & "smtpusessl") = xxxx
    Flds.Update

    With iMsg
        .To = xxxx
        .From = xxxx
        .Subject = xxxx
        .HTMLBody = xxxx
        .Sender = "System"
        '.Organization = xxxx
        '.ReplyTo = xxxx

        Set .Configuration = iConf
        .Send

    End With

    Set iMsg = Nothing
    Set iConf = Nothing
    Set Flds = Nothing
End Function
Cevapla

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da

Bu Konudaki Yorumlar
Vba İle Mail Gönderimi - Yazar: sipuasfaf - 30/06/2022, 16:08
Re: Vba İle Mail Gönderimi - Yazar: atoykan - 30/06/2022, 18:26
Task