tailieunhanh - sams teach Yourself windows Script Host in 21 Days phần 10
Sau đó trong chương, bạn có thể tìm thấy chi tiết hơn về các đối tượng Command, và bạn có thể xem các ví dụ của của nó đối tượng ADO là dễ dàng để sử dụng từ WSH, và bạn có thể khai thác chúng cho mục đích khác nhau. | aSimpoPDF -Merge and Split Unregistered Version - http Attachments are not allowed on this list vbcrlf _ The message was not distributed. sendNotice No Attachments sSubject sBody sModerator bMessageOK false end if The .Size property is the total size of the message including all attachments if bMessageOK and lListMax then sBody The message you sent to this list was too big. vbcrlf _ The limit is CStr lListMax characters. vbcrlf _ The message was not distributed. sendNotice Message Size Exceeded sSubject sBody oSender. Address sModerator bMessageOK false end if If the list is restricted to members only you query the Subscribers table for the sender s address. If it is not found .EOF is set the sender is not a member of the list and the message is not forwarded if bMessageOK and bMembersOnly then sSQL SELECT Address from Subscribers WHERE ListID CStr lListID _ AND Address sSender AND Subscribed sSQL if then sBody You must be a subscriber to send to this list. vbcrlf _ To join send a message to the list with Subject SUBSCRIBE vbcrlf _ The message was not distributed. sendNotice Not Member sSubject sBody sModerator bMessageOK false end if end if Now you can finally send the message Open a recordset containing all members of the list Now we can send the message if bMessageOK then Forwarding sSQL SELECT Name Address from Subscribers WHERE ListID CStr lListID _ Simpo PDFAMergeDandiSplit Unregistered Version - http sSQL while not You have seen the process of creating messages before but there are two points that should be mentioned where you have cheated. For a real mailing list you usually want to set the Sender to the person who contributed the message and set a separate SMTP Reply-To field to the address of the mailing list. Readers can then see the contributor s name but when they
đang nạp các trang xem trước