Outlook Mail gönderme & Excel Outlook sending e-mail vba
Автор: Mustafa Köker
Загружено: 2023-11-08
Просмотров: 21
Описание:
Bu VBA kodu, bir UserForm kullanarak Outlook aracılığıyla e-posta göndermeye yönelik bir işlevi gerçekleştirir. İşte bu kodun Türkçe ve İngilizce açıklama metni:
Türkçe Açıklama:
• CmdGonder_Click altındaki bu bölüm, kullanıcı butona tıkladığında çalışır. İlk olarak gerekli alanları doldurup doldurmadığını kontrol eder. Eğer gerekli alanlardan herhangi biri eksikse, bir uyarı mesajı gösterir ve işlemi durdurur.
• Ardından, e-posta göndermek için Outlook uygulamasını başlatır. Eğer Outlook uygulaması bulunamazsa, kullanıcıya bir hata mesajı gösterir ve işlemi durdurur.
• E-posta gövdesini HTML biçiminde oluşturur. Bu gövde, kullanıcının belirlediği metni içerir ve ek olarak belirli bir stilde "Sayın: Mustafa KÖKER" yazısını ve çalışma kitabının adını ekler.
• Eğer ek dosya eklemesi yapılacaksa, bu ek dosyaların boyutunu kontrol eder. Her bir ek dosya için boyut kontrolü yapar ve eğer boyut 20 MB'dan küçükse, e-posta öğesine ekler. Aksi takdirde, bir uyarı mesajı gösterir.
• Son olarak, e-postanın alıcısını, konusunu, gövdesini ve eklerini ayarlar ve e-postayı görüntülemek için açar. İstendiğinde bu e-postayı otomatik olarak göndermek için uygun satırları etkinleştirebilirsiniz.
İngilizce Açıklama:
• This VBA code performs the function of sending an email through Outlook using a UserForm. Here is the English explanation of this code:
• In the section under CmdGonder_Click, this code runs when the user clicks the button. First, it checks if the required fields are filled. If any of the required fields is missing, it displays a warning message and stops the process.
• Next, it launches the Outlook application to send an email. If the Outlook application is not found, it displays an error message to the user and stops the process.
• It creates the email body in HTML format. This body contains the text provided by the user and additionally adds a specific style for the "Dear: Mustafa KÖKER" text and the name of the workbook.
• If there are attachments to be added, it checks the size of these attachments. It checks the size for each attachment and if the size is less than 20 MB, it adds it to the email item. Otherwise, it displays a warning message.
• Finally, it sets the recipient, subject, body, and attachments of the email and opens it for viewing. If desired, you can enable the appropriate lines to automatically send this email.
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: