Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #11878 > unrolled thread

Emailing from a singlelineedit

Started byJeff Rollo <jrollo64@gmail.com>
First post2018-09-06 06:03 -0700
Last post2018-09-12 06:39 -0700
Articles 10 — 4 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  Emailing from a singlelineedit Jeff Rollo <jrollo64@gmail.com> - 2018-09-06 06:03 -0700
    Re: Emailing from a singlelineedit JohnMartens <martens@tennishulp.info> - 2018-09-06 15:18 +0200
      Re: Emailing from a singlelineedit Jeff Rollo <jrollo64@gmail.com> - 2018-09-06 06:33 -0700
        Re: Emailing from a singlelineedit JohnMartens <martens@tennishulp.info> - 2018-09-06 17:16 +0200
          Re: Emailing from a singlelineedit Jeff Rollo <jrollo64@gmail.com> - 2018-09-11 21:54 -0700
            Re: Emailing from a singlelineedit JohnMartens <martens@tennishulp.info> - 2018-09-12 07:15 +0200
            Re: Emailing from a singlelineedit Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2018-09-12 11:42 +0200
              Re: Emailing from a singlelineedit Jeff Rollo <jrollo64@gmail.com> - 2018-09-12 04:59 -0700
                Re: Emailing from a singlelineedit Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2018-09-12 14:53 +0200
                Re: Emailing from a singlelineedit dlzc <dlzc1@cox.net> - 2018-09-12 06:39 -0700

#11878 — Emailing from a singlelineedit

FromJeff Rollo <jrollo64@gmail.com>
Date2018-09-06 06:03 -0700
SubjectEmailing from a singlelineedit
Message-ID<1081baad-ba1f-4374-92d8-177cdc5b0837@googlegroups.com>
Hi, I have a field in a database for a clients email address.I just want to click on it and have the users default email client open, with the client email address in the to field and a fixed email address as the from (hard coded I mean)

[toc] | [next] | [standalone]


#11880

FromJohnMartens <martens@tennishulp.info>
Date2018-09-06 15:18 +0200
Message-ID<pmr9ed$qch$1@dont-email.me>
In reply to#11878
Does this help ?
John


cShell += 'mailto:'+cRecipientMailAdres

cShell += '?Subject='+cSubject

cShell += CHR(38)+'Body='+cNoteText

BEGIN SEQUENCE
	IF ShellExecute(NULL, String2Psz("open"), String2Psz(cShell), NULL_PSZ, 
NULL_PSZ, SW_SHOWNORMAL) == NULL_PTR
		// Sending failed
	ELSE
		// Sending worked
	ENDIF
RECOVER
	// Sending failed
END SEQUENCE



Op 6-9-2018 om 15:03 schreef Jeff Rollo:
> Hi, I have a field in a database for a clients email address.I just want to click on it and have the users default email client open, with the client email address in the to field and a fixed email address as the from (hard coded I mean)
> 

[toc] | [prev] | [next] | [standalone]


#11882

FromJeff Rollo <jrollo64@gmail.com>
Date2018-09-06 06:33 -0700
Message-ID<cd7cd5e7-2f3f-477f-b924-cf0370e77786@googlegroups.com>
In reply to#11880
LOL I'm sorry John, I'm just bombarded atm. Catching up on 20 lost years is taking its toll.... Gimmee Clipper any day!

Should that code be in a Method, or in the fieldspec?

[toc] | [prev] | [next] | [standalone]


#11885

FromJohnMartens <martens@tennishulp.info>
Date2018-09-06 17:16 +0200
Message-ID<pmrgch$4bv$1@dont-email.me>
In reply to#11882
Put it in the code of the Mail push button.

If you only have the mailadres you can leave away most of the code

John

Op 6-9-2018 om 15:33 schreef Jeff Rollo:
> LOL I'm sorry John, I'm just bombarded atm. Catching up on 20 lost years is taking its toll.... Gimmee Clipper any day!
> 
> Should that code be in a Method, or in the fieldspec?
> 

[toc] | [prev] | [next] | [standalone]


#11919

FromJeff Rollo <jrollo64@gmail.com>
Date2018-09-11 21:54 -0700
Message-ID<9ae4ad50-c59d-4832-b779-9a281dcf8609@googlegroups.com>
In reply to#11885
Thanks John, but I don't have an email button. What I really want is an OnClick event which has a mailto:// hyperlink attached... Or at least that effect. 

Just like clicking on an ail link on a website.

[toc] | [prev] | [next] | [standalone]


#11920

FromJohnMartens <martens@tennishulp.info>
Date2018-09-12 07:15 +0200
Message-ID<pna7d7$eh9$1@dont-email.me>
In reply to#11919
On a website you also will have to choose wether it is a link of it is 
an edit field
Why not make a small MailButton next to it ?


Op 12-9-2018 om 06:54 schreef Jeff Rollo:
> Thanks John, but I don't have an email button. What I really want is an OnClick event which has a mailto:// hyperlink attached... Or at least that effect.
> 
> Just like clicking on an ail link on a website.
> 

[toc] | [prev] | [next] | [standalone]


#11923

FromKarl Faller <mail_withoutthat_@_drei-f_andthat_.de>
Date2018-09-12 11:42 +0200
Message-ID<danhpd5dnl3iveaegi49ncelrn3njqdslb@4ax.com>
In reply to#11919
On Tue, 11 Sep 2018 21:54:03 -0700 (PDT), Jeff Rollo wrote:

>Thanks John, but I don't have an email button. What I really want is an OnClick event which has a mailto:// hyperlink attached... Or at least that effect. 
>
>Just like clicking on an ail link on a website.
Jeff,
if the only interaction with the sle is "send mail", i'm with John,
make it a button, show the addres as button text.
If not, that's how i did:
Class sleMail inherit SLE 
in Init add a contextmenu which calls a method, in the meth use John's
code
In X# it's not more than:
System.Diagnostics.Process.Start(cMailerName, cSendParam + " " +
cAddres)
Regards

Karl

[toc] | [prev] | [next] | [standalone]


#11925

FromJeff Rollo <jrollo64@gmail.com>
Date2018-09-12 04:59 -0700
Message-ID<467cae87-24ad-490d-8983-b2a802eb571d@googlegroups.com>
In reply to#11923
Ok. Thanks very much all. Sorry for "flooding" the forum...

[toc] | [prev] | [next] | [standalone]


#11926

FromKarl Faller <mail_withoutthat_@_drei-f_andthat_.de>
Date2018-09-12 14:53 +0200
Message-ID<c03ipd58vggpvhe5vhv63dacvqa5cbf214@4ax.com>
In reply to#11925
On Wed, 12 Sep 2018 04:59:20 -0700 (PDT), Jeff Rollo wrote:

>Ok. Thanks very much all. Sorry for "flooding" the forum...
A forum exists for folks finding (or providing) help ;-)




Regards

Karl

[toc] | [prev] | [next] | [standalone]


#11928

Fromdlzc <dlzc1@cox.net>
Date2018-09-12 06:39 -0700
Message-ID<2b860d8a-e4f2-4f38-83f0-172a19e655e0@googlegroups.com>
In reply to#11925
On Wednesday, September 12, 2018 at 4:59:21 AM UTC-7, Jeff Rollo wrote:
> Ok. Thanks very much all. Sorry for "flooding" the forum...

There was no intent to "dis" you.  I was surprised that he had not seen the uptick in activity, most with your name at the top.

YOU are doing good, your activity helps keep the newsgroup alive, and responses help other solve similar problems.

David A. Smith

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web