mirror of
https://gitlab.com/harald.mueller/aktuelle.kurse.git
synced 2024-11-27 12:11:57 +01:00
Merge branch 'master' of https://gitlab.com/harald.mueller/aktuelle.kurse
This commit is contained in:
commit
430e7c3c5b
@ -1,4 +1,3 @@
|
||||
|
||||
### FTP
|
||||
|
||||
- [https://www.howtoforge.com/tutorial/how-to-use-ftp-on-the-linux-shell/](https://www.howtoforge.com/tutorial/how-to-use-ftp-on-the-linux-shell/)
|
||||
@ -7,13 +6,38 @@
|
||||
<br>
|
||||
![../tools-technics/ftpanweisungen.jpg](../tools-technics/ftpanweisungen.jpg)
|
||||
|
||||
|
||||
**cmd-Beispiel**
|
||||
<br>
|
||||
![../tools-technics/cmd-ftp-start.bat.jpg](../tools-technics/cmd-ftp-start.bat.jpg)
|
||||
![../tools-technics/cmdcommands.ftp.jpg](../tools-technics/cmdcommands.ftp.jpg)
|
||||
|
||||
|
||||
|
||||
### E-Mail
|
||||
|
||||
- [https://www.linuxfordevices.com/tutorials/linux/mail-command-in-linux](https://www.linuxfordevices.com/tutorials/linux/mail-command-in-linux)
|
||||
- [https://www.geeksforgeeks.org/send-mails-using-a-bash-script](https://www.geeksforgeeks.org/send-mails-using-a-bash-script)
|
||||
|
||||
|
||||
**Mailing mit Python** (Dank an Hr. Noel L. Hug, AP21a)
|
||||
|
||||
import win32com.client as win32
|
||||
<br>
|
||||
![../tools-technics/mailing-mit-python.jpg](../tools-technics/mailing-mit-python.jpg)
|
||||
|
||||
|
||||
**Mailing mit PowerShell**
|
||||
|
||||
[../tools-technics/mailing-mit-powershell](../tools-technics/mailing-mit-powershell)
|
||||
<br>
|
||||
![../tools-technics/mailing-mit-powershell.jpg](../tools-technics/mailing-mit-powershell.jpg)
|
||||
|
||||
|
||||
|
||||
**Mailing mit PHP** (nur auf Webserver!)
|
||||
|
||||
Diese Art funktioniert nur auf einem Webserver, auf dem ein Mailserver installiert ist, was bei allen teuren und billigen Internetprovidern normal ist. Wenn es auf dem lokalen Rechner funltionieren soll, muss zuerst ein Mailserver lokal installiert werden.
|
||||
|
||||
<br>
|
||||
![../tools-technics/mailing-mit-phpwebserver.jpg](../tools-technics/mailing-mit-phpwebserver.jpg)
|
||||
|
@ -20,3 +20,30 @@
|
||||
|
||||
### E-Mail
|
||||
|
||||
- [https://www.linuxfordevices.com/tutorials/linux/mail-command-in-linux](https://www.linuxfordevices.com/tutorials/linux/mail-command-in-linux)
|
||||
- [https://www.geeksforgeeks.org/send-mails-using-a-bash-script](https://www.geeksforgeeks.org/send-mails-using-a-bash-script)
|
||||
|
||||
|
||||
**Mailing mit Python** (Dank an Hr. Noel L. Hug, AP21a)
|
||||
|
||||
import win32com.client as win32
|
||||
<br>
|
||||
![./mailing-mit-python.jpg](mailing-mit-python.jpg)
|
||||
|
||||
|
||||
|
||||
**Mailing mit PowerShell**
|
||||
|
||||
[./mailing-mit-powershell](./mailing-mit-powershell)
|
||||
<br>
|
||||
![./mailing-mit-powershell.jpg](./mailing-mit-powershell.jpg)
|
||||
|
||||
|
||||
|
||||
**Mailing mit PHP** (nur auf Webserver!)
|
||||
|
||||
Diese Art funktioniert nur auf einem Webserver, auf dem ein Mailserver installiert ist, was bei allen teuren und billigen Internetprovidern normal ist. Wenn es auf dem lokalen Rechner funltionieren soll, muss zuerst ein Mailserver lokal installiert werden.
|
||||
|
||||
<br>
|
||||
![./mailing-mit-phpwebserver.jpg](./mailing-mit-phpwebserver.jpg)
|
||||
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 74 KiB |
BIN
m122/tools-technics/mailing-mit-phpwebserver.jpg
Normal file
BIN
m122/tools-technics/mailing-mit-phpwebserver.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 192 KiB |
BIN
m122/tools-technics/mailing-mit-powershell.jpg
Normal file
BIN
m122/tools-technics/mailing-mit-powershell.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 182 KiB |
BIN
m122/tools-technics/mailing-mit-powershell/MailPW.txt
Normal file
BIN
m122/tools-technics/mailing-mit-powershell/MailPW.txt
Normal file
Binary file not shown.
BIN
m122/tools-technics/mailing-mit-powershell/data.pdf
Normal file
BIN
m122/tools-technics/mailing-mit-powershell/data.pdf
Normal file
Binary file not shown.
BIN
m122/tools-technics/mailing-mit-powershell/powershell-mails.zip
Normal file
BIN
m122/tools-technics/mailing-mit-powershell/powershell-mails.zip
Normal file
Binary file not shown.
@ -0,0 +1,35 @@
|
||||
|
||||
# Method to write an email with the logfile as attachement
|
||||
#--------------------------------------------------------------------------------------------------
|
||||
function sendmail() {
|
||||
$toMail = "harald.mueller@bluewin.ch"
|
||||
$attachment = "C:\Users\Harald\OneDrive\Technik\mails\data.pdf"
|
||||
|
||||
$SMTPServer = "smtp.gmail.com"
|
||||
$SMTPPort = "587"
|
||||
$Username = "invoice.autointerleasing@gmail.com"
|
||||
|
||||
# password of the mail account
|
||||
$Password = "invoice77autointerleasing" | ConvertTo-SecureString -AsPlainText -Force
|
||||
|
||||
$subject = "Powi mail"
|
||||
$body = "Logfile has been modified. Please review attached document $entry."
|
||||
|
||||
$message = New-Object System.Net.Mail.MailMessage
|
||||
$message.subject = $subject
|
||||
$message.body = $body
|
||||
$message.to.add($toMail)
|
||||
$message.from = $username
|
||||
$message.attachments.add($attachment)
|
||||
|
||||
$smtp = New-Object System.Net.Mail.SmtpClient($SMTPServer, $SMTPPort);
|
||||
$smtp.EnableSSL = $true
|
||||
$smtp.Credentials = New-Object System.Net.NetworkCredential($Username, $Password);
|
||||
$smtp.send($message)
|
||||
}
|
||||
## (Get-Credential).password | ConvertFrom-SecureString > mailpasswort.txt
|
||||
## $pw = Get-Content .\mailpasswort.txt | ConvertTo-SecureString
|
||||
## $cred = New-Object System.Management.Automation.PSCredential "MailUser", $pw
|
||||
## Send-MailMessage -Credential $cred -to "harald.mueller@bluewin.ch" -from "PowerShell <ps@fabrikam.de>" -Subject "Test" -body "Test für Send-MailMessage"
|
||||
|
||||
sendmail
|
@ -0,0 +1,83 @@
|
||||
## (Get-Credential).password | ConvertFrom-SecureString > mailpasswort.txt
|
||||
## $pw = Get-Content .\mailpasswort.txt | ConvertTo-SecureString
|
||||
## $cred = New-Object System.Management.Automation.PSCredential "MailUser", $pw
|
||||
## Send-MailMessage -Credential $cred -to "harald.mueller@bluewin.ch" -from "PowerShell <ps@fabrikam.de>" -Subject "Test" -body "Test für Send-MailMessage"
|
||||
|
||||
$body =
|
||||
"IHRE RECHNUNG VON AUTO-INTERLEASING AG
|
||||
VOTRE FACTURE D'AUTO-INTERLEASING SA
|
||||
|
||||
Sehr geehrte Damen und Herren
|
||||
Madame, Monsieur,
|
||||
|
||||
Mit dieser Mail erhalten Sie die aktuelle Rechnung von Auto-Interleasing als PDF. Die Papierrechnung erhalten Sie wie gewohnt mit der Post.
|
||||
Par ce présent courrier, nous vous transmettons la facture d'Auto-Interleasing en version PDF. La facture papier vous parviendra comme d'habitude par courrier postal.
|
||||
|
||||
Wir bitten Sie, den offenen Betrag unter Einhaltung der Zahlungsfrist an die auf dem beigefügten Einzahlungsschein vermerkten Kontonummer zu überweisen.
|
||||
Nous vous prions de verser le montant dû conformément au délai de paiement mentionné sur le bulletin de versement joint.
|
||||
|
||||
Einzahlung für:
|
||||
Versement pour:
|
||||
|
||||
Auto-Interleasing AG
|
||||
St. Jakob-Strasse 72
|
||||
4132 Muttenz
|
||||
|
||||
IBAN: CH21 0023 3233 1012 5122 0
|
||||
|
||||
|
||||
Freundliche Grüsse,
|
||||
Avec nos cordiales salutations,
|
||||
|
||||
Auto-Interleasing AG
|
||||
St. Jakob-Strasse 72
|
||||
4132 Muttenz
|
||||
+41 61 319 32 32
|
||||
info@auto-interleasing.ch
|
||||
www.auto-interleasing.ch
|
||||
|
||||
|
||||
Für die elektronische Rechnung sind Sie mit obiger E-Mail-Adresse bei uns registriert.
|
||||
Pour l'envoi des factures par voie électronique, vous êtes inscrits avec l'adresse e-mail mentionnée ci-dessus
|
||||
|
||||
Allfällige Änderungen Ihrer E-Mail-Adresse teilen Sie bitte unverzüglich Ihrem Kundenbetreuer mit.
|
||||
Pour toute modification de votre adresse e-mail, nous vous prions de contacter votre gestionnaire.
|
||||
|
||||
Bitte beachten Sie, dass Antworten auf diese E-Mail-Adresse leider nicht beantwortet werden können.
|
||||
Im Falle von Rückfragen oder Unklarheiten wenden Sie sich bitte an Ihren zuständigen Kundenbetreuer.
|
||||
|
||||
Vielen Dank!
|
||||
|
||||
Veuillez prendre note qu'aucune correspondance ne peut être échangée par le biais de cette adresse e-mail.
|
||||
Pour toutes questions ou informations, nous vous prions de contacter votre gestionnaire. Merci beaucoup !
|
||||
"
|
||||
$SMTPHost = "smtp.gmail.com"
|
||||
$SMTPPort = "587"
|
||||
$Username = "invoice.autointerleasing@gmail.com"
|
||||
$Password = "invoice77autointerleasing" | ConvertTo-SecureString -AsPlainText -Force
|
||||
|
||||
$subjectFixtext = "RECHNUNG/FACTURE"
|
||||
|
||||
$smtp = New-Object System.Net.Mail.SmtpClient($SMTPHost, $SMTPPort);
|
||||
$smtp.EnableSSL = $true
|
||||
$smtp.Credentials = New-Object System.Net.NetworkCredential($Username, $Password);
|
||||
|
||||
$message = New-Object System.Net.Mail.MailMessage
|
||||
$message.from = $username
|
||||
$message.body = $body
|
||||
|
||||
# Method to write an email with the logfile as attachement
|
||||
function sendmail ([String] $toMail, [String] $attachment, [String] $RgNr) {
|
||||
# $toMail = "harald.mueller@bluewin.ch"
|
||||
# $attachment = "C:\Users\Harald\OneDrive\Technik\mails\data.pdf"
|
||||
|
||||
$message.to.add("$toMail")
|
||||
$message.attachments.add("$attachment")
|
||||
$message.subject = $subjectFixtext + " Nr. " + $RgNr
|
||||
|
||||
echo $toMail
|
||||
echo $attachment
|
||||
# $smtp.send($message)
|
||||
}
|
||||
|
||||
sendmail ("harald.mueller@bluewin.ch", "C:\Users\Harald\OneDrive\Technik\mails\data.pdf", "1")
|
BIN
m122/tools-technics/mailing-mit-python.jpg
Normal file
BIN
m122/tools-technics/mailing-mit-python.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 172 KiB |
@ -25,7 +25,7 @@ Zeitbedarf: für 1.) - 5.) ca. 45 min (wenn alles gut geht), sonst vielleicht 90
|
||||
----
|
||||
|
||||
6.) Holen Sie sich ein HTML5-Template
|
||||
- https://freehtml5.co
|
||||
- https://freehtml5.co, https://gettemplates.co ($17)
|
||||
- https://html5up.net
|
||||
- https://webflow.com/free-website-templates
|
||||
- https://nicepage.com/html5-template
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
[**M326_Tag2_task_defining_requirementsUseCases.pdf**](./M326_Tag2_task_defining_requirementsUseCases.pdf)
|
||||
|
||||
[https://echeung.me/crcmaker](https://echeung.me/crcmaker)
|
||||
|
||||
- [2:49 min, E, YouTube: Using CRC-Cards](https://www.youtube.com/watch?v=Bxgn6qJ-bYY)
|
||||
- [8:59 min, E, YouTube: Class Responsibility Collaboration](https://www.youtube.com/watch?v=mbpeonZUhpU)
|
||||
|
Loading…
Reference in New Issue
Block a user