LB Booster
« Sending email from LBB »

Welcome Guest. Please Login or Register.
Oct 17th, 2017, 03:54am


Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
LB Umbrella forum
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Sending email from LBB  (Read 389 times)
Dermot
New Member
Image


member is offline

Avatar




PM


Posts: 1
xx Sending email from LBB
« Thread started on: Nov 24th, 2016, 08:02am »

I would like to send invoices directly from my LBB program without having to do so from my Gmail. The invoices I create as PDF's using Bullzip. Other threads on this subject under LB suggest using SendEmail.exe but this does not seem to download any more.
Are there other ways?
If so please supply an example
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1273
xx Re: Sending email from LBB
« Reply #1 on: Nov 24th, 2016, 09:10am »

on Nov 24th, 2016, 08:02am, Dermot wrote:
Are there other ways?

It's easy enough if you have access to a SMTP server that doesn't require encryption. Commonly, if you are on a wired (or fiber) internet connection your ISP will provide such a server, because the fact that you are using a 'physical' connection eliminates the need for encryption.

In that case it's possible to send an email by communicating with the SMTP server directly; I can probably hunt out some LB code to do that if you are interested.

But if the only email servers you have access to all require encryption then it may be easier to use a separate tool.

Richard.
User IP Logged

Pablo
New Member
Image


member is offline

Avatar




PM


Posts: 3
xx Re: Sending email from LBB
« Reply #2 on: Dec 9th, 2016, 9:04pm »

Hello,

I found this:

http://caspian.dotconf.net/menu/Software/SendEmail/sendEmail-v156.zip

http://alycesrestaurant.com/sendemailexe.htm

Hope this helps,

-Pablo
User IP Logged

Mystic
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 49
xx Re: Sending email from LBB
« Reply #3 on: Dec 23rd, 2016, 4:32pm »

Not sure if this is exactly what you need, but I found this while researching this for a program I run at work.

My work network is extremely secure, so I'm stuck not being able to download and install ANY third party programs, but I can roll my own.

I have a program that monitors my network sites, but up until now could only notify me while I was in my office since it didn't have a sendmail type ability.

Looking if there was a batch file type answer I could use, I ran across using Powershell.

For version 2 of Powershell I created a Powershell script (which I named "message.ps1") from my program that has the following code in it.

Code:
$PSEmailServer = "your.smtp.server.here"
Send-MailMessage -From "you@yourmail.net" -To "Wherever@theirMail.com" -Subject "Something Amazing" -Body "The words of wisdom you want to send" 


From within my LBB code I used this to run the script.

Code:
RUN "Powershell.exe -executionpolicy remotesigned -File c:\directoryName\message.ps1"
 


Obviously this is a very simple demonstration, but it works great for my needs!

I'm not sure if you can add authentication, or attachments, since this was all I really needed I didn't dig deeper, but it might be an option for someone looking to do this in their programs.

Enjoy!
« Last Edit: Dec 23rd, 2016, 4:37pm by Mystic » User IP Logged

- Rick
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Donate $6.99 for 50,000 Ad-Free Pageviews!


This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls