اذهب الي المحتوي
أوفيسنا

ارسال عدة مرفقات بايميل واحد


SABER_EDP

الردود الموصى بها

    DoCmd.SendObject acForm, "ALL_PENDING", "Excel97-Excel2003Workbook(*.xls)", "sattia@.com.qa", "aahussain@.com.qa;", "", "PENDING DELIVERY RECIPTS ", "Kindly refer to the attached .xls file for the most recent list of Pending Delivery Receipts - ", False, ""

    DoCmd.SendObject acReport, "PENDING _REPORT", "PDFFormat(*.pdf)", "", "", "", "PENDING DELIVERY RECIPTS FOR ", "Kindly refer to the attached .pdf file for the most recent list of Pending Delivery Receipts - ", False, ""

كيف نرسلهم فى ايميل واحد

 

تم تعديل بواسطه SABER_EDP
رابط هذا التعليق
شارك

العملية سهلة اخي الكريم

تستخدم docmd.output   ثم تستخدم الاتمتة مع الاوت لوك بتعريف كائن اوت لوك ثم كائن المسج ثم تضيف المرفق للرسالة وحسب المسار السابق من امر docmd.output

 

بالتوفيق

رابط هذا التعليق
شارك

انا اخرج كل واحد منهم باستخدام  docmd.output    وبعدين ارفقهم باميل واحد  ولكن افضل اخراجهم اليا الى مسار معين وبعدين عن طريق الكود ارفقهم برمجيا فى الايميل 

كيف يمكن ذلك ؟ جزاكم الله خيرا

رابط هذا التعليق
شارك

في 11/26/2016 at 16:33, SABER_EDP said:

انا اخرج كل واحد منهم باستخدام  docmd.output    وبعدين ارفقهم باميل واحد  ولكن افضل اخراجهم اليا الى مسار معين وبعدين عن طريق الكود ارفقهم برمجيا فى الايميل 

كيف يمكن ذلك ؟ جزاكم الله خيرا

اخي الكريم

تمام يبدو انك فهمت المقصود : اخرجهم بال docmd.output  ثم ارفقهم بكود ارسال الايميل والمنتدى مليئ بكيفية ارسال ايميل من خلال الاكسس

ارفق مثال به التقرير للتطبيق باذن الله

بالتوفيق

رابط هذا التعليق
شارك


Dim LL As String

LL = "\\PC1689\ Common Folder\Pending\PENDING DELIVERY RECEIPTS -  DEPOT " & "" & Day(Now()) & " - " & Month(Now()) & " - " & Year(Now()) & ".pdf"


     DoCmd.OutputTo acOutputForm, "ALL_PENDING", "ExcelWorkbook(*.xlsx)", "\\PC1689\ Common Folder\Pending\PENDING DELIVERY RECEIPTS - DEPOT.xlsx", False, "", 0, acExportQualityScreen
   DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12, "tallpending", "\\PC1689\ Common Folder\Pending\PENDING DELIVERY RECEIPTS -  DEPOT.xlsx", True, "Total "


 

DoCmd.OutputTo acOutputReport, "PENDING _REPORT", "PDFFormat(*.pdf)", LL, False, "", 0, acExportQualityScreen

 

الكود الخاص  بالارسال الى الايميل ليس معى

تم تعديل بواسطه SABER_EDP
رابط هذا التعليق
شارك

الحمد لله  تم الحل

     DoCmd.OutputTo acOutputForm, "ALL_PENDING", "ExcelWorkbook(*.xlsx)", "\\PC1689\ Common Folder\Pending\PENDING DELIVERY RECEIPTS -  DEPOT.xlsx", False, "", 0, acExportQualityScreen
   DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12, "tallpending", "\\PC1689\Common Folder\Pending\PENDING DELIVERY RECEIPTS -  DEPOT.xlsx", True, "Total "


  DoCmd.OutputTo acOutputReport, "PENDING _REPORT", "PDFFormat(*.pdf)", "\\PC1689\ Common Folder\Pending\PENDING DELIVERY RECEIPTS - .pdf ", False, "", 0, acExportQualityScreen
 

        Dim mess_body As String
        Dim appOutLook As Outlook.Application
        Dim MailOutLook As Outlook.MailItem
        Set appOutLook = CreateObject("Outlook.Application")
        Set MailOutLook = appOutLook.CreateItem(olMailItem)
           
            Set appOutLook = CreateObject("Outlook.Application")
            Set MailOutLook = appOutLook.CreateItem(olMailItem)
            With MailOutLook
            .BodyFormat = olFormatRichText
            .To = "اسم الايميل المرسل"
            .Subject = "عنوان الموضوع"
            .HTMLBody = "نص الرسالة"
           
           
                .Attachments.Add ("المرفق الاول")
               
               .Attachments.Add ("المرفق الثانى")
               
                     
           
          
           
          
            .Send
            End With
          

تم تعديل بواسطه SABER_EDP
رابط هذا التعليق
شارك

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information