1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#!/usr/bin/perl use strict; use warnings; use 5.010; use utf8; use MIME::Lite; my $msg = MIME::Lite->new( From => 'myauthenticatedaccount@vivaldi.net', To => 'spam@gwendragon.de', Subject => 'Doctooooooor Who?!!!', Data => "Daaaaaleks!!!!" ); $msg->send( 'smtp', 'smtp.vivaldi.net', Timeout => 60, AuthUser => 'myauthenticated1234account@vivaldi.net', AuthPass => "th1sS5ap4sswordwith!eryl000ng", Debug=>1 );
perldoc MIME::LiteWAIT!
MIME::Lite is not recommended by its current maintainer. There are a number of alternatives, like Email::MIME or MIME::Entity and Email::Sender, which you should probably use instead. MIME::Lite continues to accrue weird bug reports, and it is not receiving a large amount of refactoring due to the availability of better alternatives. Please consider using something else.
Quoteich bin aber unter Windows, bei mir ist der Perlpfad #!"C:\Strawberry\perl\bin\perl.exe"#!/usr/bin/perl
Quoteuse strict;
use warnings;
use 5.010;
use utf8;
use MIME::Lite;
my $msg = MIME::Lite->new(
From => 'xxx@icloud.com',
To => 'xxxd@oxxx',
Subject => 'Doctooooooor Who?!!!',
Data => "Daaaaaleks!!!!"
);
$msg->send(
'smtp',
'smtps.udag.de',
Timeout => 60,
AuthUser => 'xxx',
AuthPass => "xxx",
Debug=>1
);
2020-06-23T14:53:17 DerBroncoWie das mit der Eingabeaufforderung geht, weiss ich leider nicht...
Quote535 5.7.0. Login failes. Only SSL login enabled - please check your client config.
1 2 3 4 5 6 7 8 9 10
$msg->send( 'smtp', 'smtps.udag.de', Timeout => 60, AuthUser => 'xxx', AuthPass => "xxx", Debug=>1, SSL=>1, Port=>465 );
QuoteNet::SMTP::_SSL>>> Net::SMTP::_SSL
Net::SMTP::_SSL>>> IO::Socket::SSL(2.067)
Net::SMTP::_SSL>>> IO::Socket::IP(0.39)
Net::SMTP::_SSL>>> IO::Socket(1.42)
Net::SMTP::_SSL>>> IO::Handle(1.42)
Net::SMTP::_SSL>>> Exporter(5.74)
Net::SMTP::_SSL>>> Net::SMTP(3.11)
Net::SMTP::_SSL>>> Net::Cmd(3.11)
Net::SMTP::_SSL=GLOB(0x34442f8)<<< 220 smtps.udag.de ESMTP ready
Net::SMTP::_SSL=GLOB(0x34442f8)>>> EHLO localhost.localdomain
Net::SMTP::_SSL=GLOB(0x34442f8)<<< 250-smtps.udag.de
Net::SMTP::_SSL=GLOB(0x34442f8)<<< 250-SIZE 51200000
Net::SMTP::_SSL=GLOB(0x34442f8)<<< 250-ETRN
Net::SMTP::_SSL=GLOB(0x34442f8)<<< 250-ENHANCEDSTATUSCODES
Net::SMTP::_SSL=GLOB(0x34442f8)<<< 250-8BITMIME
Net::SMTP::_SSL=GLOB(0x34442f8)<<< 250 AUTH PLAIN LOGIN
Net::SMTP::_SSL=GLOB(0x34442f8)>>> AUTH PLAIN dGhvbWFzcGFycm90dGEtZGUtMDAwMQB0aG9tYXNwYXJyb3R0YS1kZS0wMDAxAEthcm1hOTIx
Net::SMTP::_SSL=GLOB(0x34442f8)<<< 235 2.0.0 OK
Net::SMTP::_SSL=GLOB(0x34442f8)>>> MAIL FROM:<xxx@xxx.de>
Net::SMTP::_SSL=GLOB(0x34442f8)<<< 250 2.1.0 Ok
Net::SMTP::_SSL=GLOB(0x34442f8)>>> RCPT TO:<xxx@xxx.at>
Net::SMTP::_SSL=GLOB(0x34442f8)<<< 250 2.1.5 Ok
Net::SMTP::_SSL=GLOB(0x34442f8)>>> DATA
Net::SMTP::_SSL=GLOB(0x34442f8)<<< 354 End data with <CR><LF>.<CR><LF>
Net::SMTP::_SSL=GLOB(0x34442f8)>>> .
Net::CMD (Net::SMTP) DATAEND command failed.
Last server message was:This probably represents a problem with newline encoding at c:/xampp/htdocs/test3.pl line 26.