How to send email from within a program

Discussion forum about all things older ANSI Team Developer versions.
narkosis
Malaysia
Posts: 2
Joined: 22 Nov 2017, 06:33
Location: Ipoh, Malaysia

How to send email from within a program

Post by narkosis » 22 Nov 2017, 06:39

Hi all,

How is it best to send an email with an attached text file from within a program. The requirement is that the end-user requires all transactions (limit to 5 per day only) be sent to the owner as each one is committed. Each row is basically just 8-10 fields of alphanumeric data.

The only lib I found that remotely looked like email-related was "qckmail.apl" but couldn't figure out the single dialog box dlgMailAttachments that came with it.

Any ideas please?

Thanks

Roger

EwaldP
Austria
Posts: 114
Joined: 07 Mar 2017, 08:00
Location: Austria

How to send email from within a program

Post by EwaldP » 22 Nov 2017, 07:27

Hi,

- which version of TD do you use?
- why do you need the dlgMailAttachments-Dialog? I don't understand your problem.

We use SalMail for sending update information or occured error descriptions to our support team. For offers, orders, invoices, etc we use Outlook via ActiveX. In an older version program version we had implemented a 3rd party tool for SMTP and POP3 mailing.

Regards
Ewald P. Palmetshofer
EDV-Hausleitner GmbH
4020 Linz
www.edv-hausleitner.at

Igor Ivanovic
Site Admin
Site Admin
Croatia
Posts: 771
Joined: 05 Mar 2017, 12:37
Location: Zagreb, Croatia

How to send email from within a program

Post by Igor Ivanovic » 22 Nov 2017, 15:44

Roger,

As you posted here I asume you have and older TD version (<=4.2).
You can use the mailixx.dll and functions inside it, but be aware that in order to send mail with it you have to have MSOffice Outlook installed, as it is using MAPI (Microsoft mail) to send and/or receive mails.
The cgmail.apl has a class cQOEmail which you can use.
The SMTP/POP mail ability was added in later TD versions...

HTH,
Igor Ivanovic
Image

Gueni
Austria
Posts: 5
Joined: 22 Aug 2017, 14:22
Location: Klagenfurt am Wörthersee, Austria

How to send email from within a program

Post by Gueni » 24 Aug 2018, 09:53

EwaldP wrote:
22 Nov 2017, 07:27
Hi,

- which version of TD do you use?
- why do you need the dlgMailAttachments-Dialog? I don't understand your problem.

We use SalMail for sending update information or occured error descriptions to our support team. For offers, orders, invoices, etc we use Outlook via ActiveX. In an older version program version we had implemented a 3rd party tool for SMTP and POP3 mailing.

Regards
could you provide an example of your e-mail scenario? Thanks.

FRBhote
India
Posts: 1230
Joined: 09 Mar 2017, 05:32
Location: Hyderabad, India

How to send email from within a program

Post by FRBhote » 24 Aug 2018, 10:35

See Class cEmail
You do not have the required permissions to view the files attached to this post.

EwaldP
Austria
Posts: 114
Joined: 07 Mar 2017, 08:00
Location: Austria

How to send email from within a program

Post by EwaldP » 27 Aug 2018, 06:39

@Gueni

Do you want send or receive mail?
Which TD version do you use?

If you want to use SalMail please refer to the documentation in TD (SalMail Class). Also you will find an example at the TD samples (60s demo). Examples of outlook integration you will find in this forum or the sample library from Dave Rabelink. http://samples.tdcommunity.net/

Regards
Ewald
Ewald P. Palmetshofer
EDV-Hausleitner GmbH
4020 Linz
www.edv-hausleitner.at

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 0 guests