Skip to main content

AccessTr.neT


Toplu mail gönderme

Toplu mail gönderme

#2
selam
alttaki kod ile gerekli alanları doldurduğunuzda istediğiniz sayıda mail yollanabilir
test ettim çalışıyor

referansları eklemeyi unutmayın ve ilgili alanlarda hata olmadı taktirde çalışır

saygılarımla

Kod:
'referans
'microsoft cdo for windows 2000 library ekle
Public Sub gonder()
 Dim iMsg, iConf, Flds, schema
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") = "smtp.gmail.com"
Flds.Item(schema & "smtpserverport") = 465
Flds.Item(schema & "smtpauthenticate") = 1
Flds.Item(schema & "sendusername") = "[email protected]"
Flds.Item(schema & "sendpassword") = "******."
Flds.Item(schema & "smtpusessl") = 1
Flds.Update
With iMsg
.To = "[email protected];[email protected]" 'bu alandan aralarda noktalı virgül ile sınırsız gönderim
.From = "[email protected]"
.Subject = "konu başlığı"
.HTMLBody = "mesaj içerik"
.Sender = "ben"
.Organization = "aaaaaaaaaaa"
.ReplyTo = "yanlışkişiyegitti ise geri gelecek adres"
'.AddAttachment Application.CurrentProject.Path & "C:\rapor.pdf" ' rapor dosyası"
Set .Configuration = iConf
.Send
MsgBox ("Mail gönderildi")
End With
Set iMsg = Nothing
Set iConf = Nothing
Set Flds = Nothing
End Sub

aydın3838, 20-12-2009 tarihinden beri AccessTr.neT üyesidir.
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
Toplu mail gönderme - Yazar: kadirdursun - 28/01/2015, 13:09
Cvp: Toplu mail gönderme - Yazar: aydın3838 - 28/01/2015, 14:10
Cvp: Toplu mail gönderme - Yazar: kadirdursun - 28/01/2015, 16:55
Cvp: Toplu mail gönderme - Yazar: aydın3838 - 29/01/2015, 10:24
Cvp: Toplu mail gönderme - Yazar: kadirdursun - 29/01/2015, 10:43
Cvp: Toplu mail gönderme - Yazar: kadirdursun - 30/01/2015, 09:12
Cvp: Toplu mail gönderme - Yazar: aydın3838 - 31/01/2015, 18:53
Cvp: Toplu mail gönderme - Yazar: kadirdursun - 01/02/2015, 13:10
Cvp: Toplu mail gönderme - Yazar: aydın3838 - 02/02/2015, 17:34
Cvp: Toplu mail gönderme - Yazar: kadirdursun - 03/02/2015, 09:16
Cvp: Toplu mail gönderme - Yazar: kadirdursun - 05/02/2015, 12:56
Cvp: Toplu mail gönderme - Yazar: ozanakkaya - 05/02/2015, 13:47
Cvp: Toplu mail gönderme - Yazar: kadirdursun - 05/02/2015, 13:57
Cvp: Toplu mail gönderme - Yazar: ozanakkaya - 05/02/2015, 15:14
Cvp: Toplu mail gönderme - Yazar: kadirdursun - 06/02/2015, 09:13
Cvp: Toplu mail gönderme - Yazar: atoz112 - 28/02/2015, 12:12
Cvp: Toplu mail gönderme - Yazar: kadirdursun - 02/03/2015, 09:17
Cvp: Toplu mail gönderme - Yazar: atoz112 - 02/03/2015, 17:53
Cvp: Toplu mail gönderme - Yazar: kadirdursun - 03/03/2015, 09:08
Cvp: Toplu mail gönderme - Yazar: atoz112 - 03/03/2015, 13:47
Cvp: Toplu mail gönderme - Yazar: kadirdursun - 16/03/2015, 17:20
Cvp: Toplu mail gönderme - Yazar: ozanakkaya - 18/03/2015, 07:02
Cvp: Toplu mail gönderme - Yazar: atoz112 - 18/03/2015, 12:48
Cvp: Toplu mail gönderme - Yazar: kadirdursun - 19/03/2015, 09:04