hjælp af Visual Basic Script , kan du automatisere processen med at sende e-mails til alle de folk på din postliste. Med lidt kreativitet kan du endda trække oplysninger til at komponere e-mail fra en database. En fælles opgave , hvis du bruger scriptet til at sende dig automatiserede log rapporter , kan du ønsker at inkludere vedhæftede filer. . Instruktioner
1
Åbn en teksteditor
2
Indsæt følgende for at oprette meddelelsen : Hej
sæt m = CreateObject ( " CDO.Message " )
m.Configuration.Fields.Item ( " http://schemas.microsoft.com/cdo/configuration/sendusing " ) = 2
m.Configuration.Fields.Item ( " http://schemas.microsoft.com/cdo/configuration/smtpserver " ) =" mail.your.com "
m.Configuration.Fields.Item ( " http://schemas.microsoft.com/CDO /konfiguration /smtpauthenticate " ) = cdoBasic
m.Configuration.Fields.Item ( " http://schemas.microsoft.com/cdo/configuration/sendusername " ) =" youruserid "
m.Configuration.Fields.Item ( " http://schemas.microsoft.com/cdo/configuration/sendpassword " ) = " yourpassword "
m.Configuration.Fields.Item ( "http://schemas.microsoft.com /CDO /konfiguration /smtpserverport " ) = 25
m.Configuration.Fields.Item ( " http://schemas.microsoft.com/cdo/configuration/smtpusessl " ) = False < br >
m.Configuration.Fields.Item ( " http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout " ) = 60
m.Configuration.Fields.Update
< p> m.to = " recipient@sever.com "
m.from = " me@me.com "
m.subject = "Test "
m . textbody = " venligst se disse multiple sende flere vedhæftede filer , skal du blot gentage tilføjelsen vedhæftede kommandoen . Du skal opdatere konfigurationen felter for at afspejle de data for dine mailservere indstillinger. For eksempel, hvis du bruger Gmail, så vil din SMTP-server vil være smtp.gmail.com og dit brugernavn og password ville være brugernavn og adgangskode til din Gmail-konto .
3
Gem dit arbejde . Du kan køre scriptet ved at dobbeltklikke på det.
< br >