1
2
3
Software error:
SMTP recipient() command failed:
5.1.1 <userX@myfirma.com>... User unknown
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 CGI; use CGI::Carp qw(fatalsToBrowser); use MIME::Lite; my $cgi = new CGI; print $cgi->header( -type=>'text/html'); #E-Mail versenden: my $msg = MIME::Lite->new( From => "user1\@myfirma.com", To => "user1\@myfirma.com, user2\@myfirma.com, userX\@myfirma.com", Subject => "test", Type => "multipart/related" ); $msg->attach( Type => "text/html", Data => "Content", ); $msg->send("smtp", "mail.myfirma.de") or die ("Fehler beim senden $!");
2021-02-15T10:57:58 GustlJa, sicherlich, aber wird sind hier nicht die RTFM-Fraktion ;)Ein genauerer Blick in die Doku hätte mir auch geholfen...
https://metacpan.org/pod/MIME::Lite