Fill in the email settings in the admin UI
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
For your MDrivenServer to send emails, it will need access to an SMTP service. You can sign up with Gmail and use your information to access an internet-connected SMTP server. | |||
Enter the information in the MDrivenServer interface as described in the image below: | |||
[[File:2017-10-28 09h01 09.png|frameless|1150x1150px]] | [[File:2017-10-28 09h01 09.png|frameless|1150x1150px]] | ||
Read how to make your app | Read how to make your app produce emails here: [[Emailing from an app using MDrivenServer]] | ||
==== Testing | ==== Testing Your Email Server Outside of the MDriven Server ==== | ||
Start Windows PowerShell and enter the following (pasting is | Start Windows PowerShell and enter the following (pasting is easier). The example below works for Office365. | ||
$From = "<senders address, not login>" | $From = "<senders address, not login>" | ||
$To = "<destination email address>" | $To = "<destination email address>" | ||
Line 16: | Line 16: | ||
$SMTPPort = "587" | $SMTPPort = "587" | ||
Send-MailMessage -From $From -to $To -Subject $Subject -Body $Body -SmtpServer $SMTPServer -port $SMTPPort -UseSsl -Credential (Get-Credential) | Send-MailMessage -From $From -to $To -Subject $Subject -Body $Body -SmtpServer $SMTPServer -port $SMTPPort -UseSsl -Credential (Get-Credential) | ||
PowerShell will open a Windows dialog box to enter the SMTP | PowerShell will open a Windows dialog box to enter the SMTP credentials. Enter your username and password there. | ||
If you are on | If you are on Azure-ps-prompt, the password dialog will fail - try: | ||
$username = 'user@url.se' | $username = 'user@url.se' | ||
$password = ConvertTo-SecureString 'thepwd' -AsPlainText -Force | $password = ConvertTo-SecureString 'thepwd' -AsPlainText -Force | ||
$psCred = New-Object System.Management.Automation.PSCredential -ArgumentList ($username, $password) | $psCred = New-Object System.Management.Automation.PSCredential -ArgumentList ($username, $password) | ||
Send-MailMessage -From 'user@url.se' -Credential $psCred -To 'someone@somewhere.se' -Subject 'Test1000' -Body 'Body test1' -UseSsl -Port 587 -SmtpServer 'smtp.office365.com' | Send-MailMessage -From 'user@url.se' -Credential $psCred -To 'someone@somewhere.se' -Subject 'Test1000' -Body 'Body test1' -UseSsl -Port 587 -SmtpServer 'smtp.office365.com' | ||
[[Category:MDriven Server]] | [[Category:MDriven Server]] | ||
[[Category:UI]] | |||
[[Category:UI]] |
Revision as of 06:18, 7 February 2023
For your MDrivenServer to send emails, it will need access to an SMTP service. You can sign up with Gmail and use your information to access an internet-connected SMTP server.
Enter the information in the MDrivenServer interface as described in the image below:
Read how to make your app produce emails here: Emailing from an app using MDrivenServer
Testing Your Email Server Outside of the MDriven Server
Start Windows PowerShell and enter the following (pasting is easier). The example below works for Office365.
$From = "<senders address, not login>" $To = "<destination email address>" $Subject = "Test 1" $Body = "This is what I want to say" $SMTPServer = "smtp.office365.com" $SMTPPort = "587" Send-MailMessage -From $From -to $To -Subject $Subject -Body $Body -SmtpServer $SMTPServer -port $SMTPPort -UseSsl -Credential (Get-Credential)
PowerShell will open a Windows dialog box to enter the SMTP credentials. Enter your username and password there.
If you are on Azure-ps-prompt, the password dialog will fail - try:
$username = 'user@url.se' $password = ConvertTo-SecureString 'thepwd' -AsPlainText -Force $psCred = New-Object System.Management.Automation.PSCredential -ArgumentList ($username, $password) Send-MailMessage -From 'user@url.se' -Credential $psCred -To 'someone@somewhere.se' -Subject 'Test1000' -Body 'Body test1' -UseSsl -Port 587 -SmtpServer 'smtp.office365.com'
This page was edited 96 days ago on 02/10/2024. What links here