LB Booster
General >> General Board >> Sending email from LBB
http://lbb.conforums.com/index.cgi?board=general&action=display&num=1479978170

Sending email from LBB
Post by Dermot 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
Re: Sending email from LBB
Post by Richard Russell 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.

Re: Sending email from LBB
Post by Pablo 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
Re: Sending email from LBB
Post by Mystic 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!