Browse Source

add flag to count as fortbildung

main
Christoph Marzell 3 weeks ago
parent
commit
e9d4e2ba34
  1. 27
      test_mail.rb

27
test_mail.rb

@ -1,27 +0,0 @@
require 'mail'
Mail.defaults do
delivery_method :smtp, {
address: "smtp.ionos.de",
port: 587,
domain: "marzell.net",
:user_name => 'praktikum@marzell.net',
:password => 'CSSABXGRhSzUFK9',
authentication: "plain",
enable_starttls_auto: true
}
end
mail = Mail.new do
from 'praktikum@marzell.net'
to 'christoph@marzell.net'
subject 'Testmail von Ruby SMTP'
body 'Hallo! Dies ist ein SMTP-Test direkt aus Ruby.'
end
begin
mail.deliver!
puts "✅ Mail wurde erfolgreich gesendet!"
rescue => e
puts "❌ Fehler beim Senden: #{e.message}"
end
Loading…
Cancel
Save