Author |
Topic: Sending email from LBB (Read 557 times) |
|
Dermot
New Member
member is offline
Posts: 1
|
|
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
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline
Posts: 1348
|
|
Re: Sending email from LBB
« Reply #1 on: Nov 24th, 2016, 09:10am » |
|
on Nov 24th, 2016, 08:02am, Dermot wrote: 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.
|
|
Logged
|
|
|
|
Mystic
Junior Member
member is offline
Gender:
Posts: 53
|
|
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 » |
Logged
|
- Rick
|
|
|
|