Beagle Board - beagleboard.org
Mala Dies
Published

BeagleBone Black Wireless and Perl with Emails...

Have you ever wanted to set up an HTML email via Perl on the BBB w/ some gmail and to whomever you would like to send an email in mind?

EasyWork in progress1 hour32
BeagleBone Black Wireless and Perl with Emails...

Things used in this project

Hardware components

BeagleBone Black Wireless
BeagleBoard.org BeagleBone Black Wireless
×1

Software apps and online services

Mozilla IoT HTML
BeagleBoard.org Debian
Perl

Story

Read more

Schematics

BBBW

Use it!

Code

This is some src to make your email ideas become reality!

Perl
You type this info. w/ the lesson ideas into your favorite text editor and run the script w/ perl <yourFile.pl>.
#!/usr/bin/perl
use MIME::Lite;

$to = 'Friend's Email';
$from = 'YourEmail';
$subject = 'Test Email';
$message = '<h1>Hello and do you have any chocolates?</h1>';

$msg = MIME::Lite->new(
                 From     => $from,
                 To       => $to,
                 Cc       => $cc,
                 Subject  => $subject,
                 Data     => $message
                 );

$msg->attr("content-type" => "text/html");
$msg->send('smtp', "smtp.cox.net", AuthUser=>"email", AuthPass=>"PasswordToEmail");
print "Email Sent Successfully\n";

Credits

Mala Dies

Mala Dies

1 project • 1 follower
Stay there and someone will find you...

Comments

Add projectSign up / Login