Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

PHP::Functions::Mail
Transplant of mail function of PHP

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 the Net::SMTP manpage


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.

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy