NAME
PHP::Functions::Mail - Transplant of mail function of PHP
SYNOPSIS
#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>');
DESCRIPTION
This module offers perl the function equal with the mail function and the mb_send_mail function mounted with PHP.
EXPORT
- mail ( TO, SUBJECT, MESSAGE [, HEADERS [, OPTIONS]] )
-
send of mail. use
- mb_send_mail ( TO, SUBJECT, MESSAGE [, HEADERS [, OPTIONS]] )
-
send of mail for Japanese. Jcode is used.
SEE ALSO
http://www.php.net/manual/en/function.mail.php http://www.php.net/manual/en/function.mb-send-mail.php Net::SMTP
AUTHOR
Kazuhiro, Osawa <ko@yappo.ne.jp>
COPYRIGHT AND LICENSE
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:
- Around line 184:
You forgot a '=back' before '=head1'