Linux FAQ / Howtos How do I send html email from Perl?




+ Reply to Thread
Results 1 to 3 of 3

Thread: Linux FAQ / Howtos How do I send html email from Perl?

  1. #1
    Meer is offline Senior Member
    Join Date
    Sep 2010
    Posts
    179
    Feedback Score
    0

    Linux FAQ / Howtos How do I send html email from Perl?



    Q. How Can I send html email from cgi perl program under UNIX / Linux and Apache web sever?
    A. Sending HTML email is an easy task with MIME::Lite CPAN module. It is a low-calorie MIME generator.
    It can be use to send html emails, graphics file email attachments as a single-part or multi-part message. Here is simple perl script that sends html email.
    Install Perl MIME::Lite

    If you do not have MIME::Lite module, install using following command (login as a root user):
    Code:
    # cpan -i  MIME::Lite
    Perl script code

    Script to send html email from perl:
    Code:
    #!/usr/bin/perl -w use strict; use MIME::Lite;  # SendTo email id my $email = 'user@somewhere.com';  # create a new MIME Lite based email my $msg = MIME::Lite->new ( Subject => "HTML email test", From    => 'YOU@somewhere.com', To      => $email, Type    => 'text/html', Data    => '<H1>Hello</H1><br>This is a test email. Please visit our site <a href="http://cyberciti.biz/">online</a><hr>' );  $msg->send();

  2. #2
    kRiztAn19 is offline Junior Member
    Join Date
    Apr 2011
    Posts
    1
    Feedback Score
    0
    Awsome work. I will try it now

  3. #3
    migel00 is offline Junior Member
    Join Date
    May 2011
    Posts
    2
    Feedback Score
    0
    Cheers dude

+ Reply to Thread

Visitors found this page by searching for:

perl send html email

send a msg to mail using perl on linux

linux send html email

perl MIME::Lite send html

sending html email using perl script

Sending html email with Perl script

how to perl mime html

linux apache email mime lite

send html mail script linux

html email send cgi perl

perl send email quick

html email from perl

perl linux email

send html perl

modify perl script send html emails

Can I send an HTML emil from a linux server

perl email command

send html email from perl and linux mail command

MIME::Lite mail sending settings in linux

send html mail Email::Send perl

perl send html mail

perl email::send html

html mail perl email::send

perl email::send html mail

perl email::send html email

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts