PHP::Functions::Mail - Transplant of mail function of PHP
#simple mail send use PHP::Functions::Mail qw(mail); mail('ToAddress@example.com', 'subject', 'body of message', 'From: FromAddress@example.com'); #When you enhance the header and Option specification #Host specifiles the smtp server (default 'localhost') use PHP::Functions::Mail qw(mail); mail('ToAddress@example.com', 'subject', 'body of message', join("\n", 'From: from user <FromAddress@example.com>', 'Cc: CcAddress@example.com, cc user <CcAddress2@example.com>'), {Host => 'smtp.example.com'} ); #for Japanese use PHP::Functions::Mail qw(mb_send_mail); mb_send_mail('Japanese Strings <ToAddress@example.com>', 'subject of Japanese Strings', 'body of Japanese message', 'From: Japanese Strings <FromAddress@example.com>');
This module offers perl the function equal with the mail function and the mb_send_mail function mounted with PHP.
send of mail. use
send of mail for Japanese. Jcode is used.
http://www.php.net/manual/en/function.mail.php http://www.php.net/manual/en/function.mb-send-mail.php Net::SMTP
Kazuhiro, Osawa <ko@yappo.ne.jp>
Copyright (C) 2005 by Kazuhiro Osawa
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either at your option, any later version of Perl 5 you may have available.
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install PHP::Functions::Mail, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PHP::Functions::Mail
CPAN shell
perl -MCPAN -e shell install PHP::Functions::Mail
For more information on module installation, please visit the detailed CPAN module installation guide.