Advertisement
Guest User

Untitled

a guest
Aug 15th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.58 KB | None | 0 0
  1. #!/usr/bin/perl
  2.     use MIME::Lite;
  3.     my $user = "admin\@mars-concept.com";
  4.     my $pass = "********";
  5.     ### Create a new single-part message, to send a GIF file:
  6.     my $msg = MIME::Lite->new(
  7.         From     => 'admin@mars-concept.com',
  8.         To       => 'admin@mars-concept.com',
  9.         Cc       => 'some@other.com, some@more.com',
  10.         Subject  => 'Helloooooo, nurse!',
  11.         Type     => 'image/gif',
  12.         Encoding => 'base64',
  13.         #Path     => 'hellonurse.gif'
  14.     );
  15.      MIME::Lite->send('smtp','mars-concept.com',
  16.        AuthUser=>$user, AuthPass=>$pass);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement