O7: Looking for an Omnis Classic (7381) External to send emails via SMTP & Office 365

Vik Shah OmnisList at Keys2Solutions.com.au
Sat Jul 30 22:30:23 UTC 2022


Thanks Rudolf for sharing this. Will look at this in detail.

Regards,

Vik Shah
Keys2Solutions
AU: +61 411 493 495


> On 31 Jul 2022, at 00:51, Rudolf Bargholz <rudolf at bargholz.ch> wrote:
> 
> Hi Vik,
> 
> There are numerous examples for mailsend-go on the github site. The parameters needed really depend on your server, and this requires a bit of experimentation.
> 
> Here a test method I have to create the string for sending a mail that needs TLS:
> 
> Begin text block
> Text: "[lMailSendPath]" -v -log "[lLogPath]" -to "[lTo]" -from "[SmtpFromMail]" -starttls -port [SmtpPort] -auth -smtp [SmtpServer] -sub "Test Feedback 3" -user [SmtpUsername] -pass "[SmtpPassword]"
> End text block
> Get text block #S4
> 
> Here a simple test for an unauthenticated SMTP:
> 
> mailsend-go.exe -sub "Test"  -smtp 111.111.11.11 -port 25 -from "xxx.noreply at xxx.ch" -to  "rudolf at xxx.ch" body -msg "hello, world!\nThis is a message"
> 
> As I mentioned in my mail: you need to get this all up and running outside of Omnis7, and then implementing this with dynamic values from within Omnis is relatively simple.
> 
> .\mailsend-go.exe -help
> 
> This will return a help text in the terminal with a description of the parameters.
> 
> PS C:\olt\tools\mailsend\mailsend-go\x64> .\mailsend-go.exe -help
> Version: @($) mailsend-go v1.0.9
> 
> mailsend-go [options]
>  Where the options are:
>  -debug                 - Print debug messages
>  -sub subject           - Subject
>  -t to,to..*            - email address/es of the recipient/s. Required
>  -list file             - file with list of email addresses.
>                           Syntax is: Name, email_address
>  -fname name            - name of sender
>  -f address*            - email address of the sender. Required
>  -cc cc,cc..            - carbon copy addresses
>  -bcc bcc,bcc..         - blind carbon copy addresses
>  -rt rt                 - reply to address
>  -smtp host/IP*         - hostname/IP address of the SMTP server. Required
>  -port port             - port of SMTP server. Default is 587
>  -domain domain         - domain name for SMTP HELO. Default is localhost
>  -info                  - Print info about SMTP server
>  -ssl                   - SMTP over SSL. Default is StartTLS
>  -verifyCert            - Verify Certificate in connection. Default is No
>  -ex                    - show examples
>  -help                  - show this help
>  -q                     - quiet
>  -log filePath          - write log messages to this file
>  -cs charset            - Character set for text/HTML. Default is utf-8
>  -V                     - show version and exit
>  auth                   - Auth Command
>   -user username*       - username for ESMTP authentication. Required
>   -pass password*       - password for EMSPTP authentication. Required
>  body                   - body command for attachment for mail body
>   -msg msg              - message to show as body
>   -file path            - or path of a text/HTML file
>   -mime-type type       - MIME type of the body content. Default is detected
>  attach                 - attach command. Repeat for multiple attachments
>   -file path*           - path of the attachment. Required
>   -name name            - name of the attachment. Default is filename
>   -mime-type type       - MIME-Type of the attachment. Default is detected
>   -inline               - Set Content-Disposition to "inline".
>                           Default is "attachment"
>  header                 - Header Command. Repeat for multiple headers
>   -name header          - Header name
>   -value value          - Header value
> 
> The options with * are required.
> 
> Environment variables:
>   SMTP_USER_PASS for auth password (-pass)
> 
> Hope this helps a little.
> 
> Regards
> 
> Rudolf Bargholz
> 
> -----Ursprüngliche Nachricht-----
> Von: omnisdev-en <omnisdev-en-bounces at lists.omnis-dev.com> Im Auftrag von Vik Shah
> Gesendet: Samstag, 30. Juli 2022 14:41
> An: OmnisDev List - English <omnisdev-en at lists.omnis-dev.com>
> Cc: Vik Shah <Vik at Keys2Solutions.com.au>
> Betreff: Re: O7: Looking for an Omnis Classic (7381) External to send emails via SMTP & Office 365
> 
> Thanks for the suggestion Alain, Jim & Rudolf. 
> 
> So mailsend-go & sendSMTP seem to be both external applications, would you be able to share some code/PoC lib or anything please? Happy to talk offline on this.
> 
> As for hMailServer, that’s an interesting way to do this, I’ll reach out to you privately Jim. This way at least there is NO change to the code. 
> 
> My ultimate goal is to
> 1. Affect as little change as possible.
> 2. Avoid using command-line application if possible. 
> 
> If an external of sorts exists, that’d be the ideal solution as it keeps everything neat and tidy, but I guess it might be wishful thinking unless Mr. Kelly has an external for it?!? (Wishful thinking again!)
> 
> Kind regards,
> 
> Vik Shah
> Keys2Solutions
> AU: +61 411 493 495
> 
>> On 30 Jul 2022, at 22:26, Rudolf Bargholz <rudolf at bargholz.ch> wrote:
>> 
>> Hi Vik,
>> 
>> We use mailsend-as an external tool to send mail:
>> 
>> https://github.com/muquit/mailsend-go
>> 
>> You can test everything outside of Omnis, and then implement the result using batch files, called from Omnis7, and an externally created file for the mail body or one or more attachment files.
>> 
>> Regards
>> 
>> Rudolf Bargholz
>> 
>> -----Ursprüngliche Nachricht-----
>> Von: omnisdev-en <omnisdev-en-bounces at lists.omnis-dev.com> Im Auftrag 
>> von Vik Shah
>> Gesendet: Samstag, 30. Juli 2022 12:04
>> An: OmnisDev List - English <omnisdev-en at lists.omnis-dev.com>
>> Betreff: O7: Looking for an Omnis Classic (7381) External to send 
>> emails via SMTP & Office 365
>> 
>> Hi fellow $listers,
>> 
>> I am searching for a definitive guide to make an Omnis7v381 app send emails through/using Office 365. 
>> 
>> Since I haven’t used Office 365 to send emails before I felt its best to ask all the learned folks here before I dive into this googling and fumbling around.
>> 
>> If someone has a solution and would love to share your code, this would be extremely helpful too.
>> 
>> Thanks in advance for any help. =)
>> 
>> PS: Is there an external that’d do this for Omnis7v381?
>> 
>> PPS: any before anyone comments, its an old technology, yes! I hear 
>> you, and I’ve already conveyed this to the user. This is a legacy 
>> product and I already got the spiel, it’ll be replaced soon!!! 😅
>> 
>> Kind regards,
>> 
>> Vik Shah
>> Keys2Solutions
>> AU: +61 411 493 495
>> _____________________________________________________________
>> Manage your list subscriptions at https://lists.omnis-dev.com Start a 
>> new message -> mailto:omnisdev-en at lists.omnis-dev.com
>> _____________________________________________________________
>> Manage your list subscriptions at https://lists.omnis-dev.com Start a 
>> new message -> mailto:omnisdev-en at lists.omnis-dev.com
> 
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 



More information about the omnisdev-en mailing list