Seth
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?

BeginnerWork in progress1 hour1,004
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

Perl
BeagleBoard.org Debian
Mozilla IoT HTML

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

Seth

Seth

32 projects • 12 followers
Stay there and someone will find you...

Comments