Showing posts with label perl. Show all posts
Showing posts with label perl. Show all posts
OTRS Cannot find current script 'httpd' at FindBin.pm
i have installed recent OTRS 3.1 and appears message in error_log Cannot find current script 'httpd' at /usr/share/perl5/FindBin.pm
I have found that exists patched FindBin.pm Version 1.51
Enjoy!
HOWTO: send mail using perl on windows without sendmail
Q: How to send mail using perl on windows without sendmail?
A: You need Mail::Sender module and available SMTP Server
e.g.
Simple single part message
A: You need Mail::Sender module and available SMTP Server
e.g.
Simple single part message
$sender = new Mail::Sender { smtp => 'mail.yourISP.com', from => 'somebody@somewhere.com', on_errors => undef, } or die "Can't create the Mail::Sender object\n"; $sender->Open({ to => 'mama@home.org, papa@work.com', cc => 'somebody@somewhere.com', subject => 'Sorry, I\'ll come later.' }) or die "Can't open the message: $sender->{'error_msg'}\n"; $sender->SendLineEnc("I'm sorry, but thanks to the lusers, I'll come at 10pm at best."); $sender->SendLineEnc("\nHi, Jenda"); $sender->Close() or die "Failed to send the message: $sender->{'error_msg'}\n";
read more here
yet another good option is Email::Sender module
usage:
yet another good option is Email::Sender module
usage:
my $message = Email::MIME->create( ... ); # produce an Email::Abstract compatible message object, # e.g. produced by Email::Simple, Email::MIME, Email::Stuff use Email::Sender::Simple qw(sendmail); use Email::Sender::Transport::SMTP qw(); use Try::Tiny; try { sendmail( $message, { from => $SMTP_ENVELOPE_FROM_ADDRESS, transport => Email::Sender::Transport::SMTP->new({ host => $SMTP_HOSTNAME, port => $SMTP_PORT, }) } ); } catch { warn "sending failed: $_"; };
Subscribe to:
Posts (Atom)
Asterisk AST_SORCERY function
AST_SORCERY gets a field from a sorcery object. Sorcery is always created for PJSIP aors, endpoints and identifies in asterisk. It allows y...
-
OUT - OF - DATE Obsolete. Please check new post ! If you have issue with Function List plugin for Notepad++ 5.1 or later, please ch...
-
If your worry about data left on dedicated/hosted root server and want to remove secure all files and bits, you can clean complete disk sli...
-
OUT - OF - DATE Obsolete. Please check new post ! If you have issue with Function List plugin for Notepad++ 5.1.2, please check firs...