Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with string from own program

33 views
Skip to first unread message

Stefan Göppert

unread,
Oct 18, 2006, 5:07:52 PM10/18/06
to
hi,
I'm using a windows Api-Function(delphi) to call the standardmailprogram:
Shellexecute(Handle,nil ,PChar(s) ,PChar('mailto:' + first + '?bcc=' +
all),nil , SW_ShowNormal);
Thunderbird inserts a wrong char(") in the BCC-Field:
test"@test.de;mus...@muster.de. It is only
in the first BCC-Adress before the @-char. Did anyone know why this happens?
Best regards...

stefan göppert

gNeandr

unread,
Oct 21, 2006, 10:37:30 AM10/21/06
to
Am 18.10.2006 23:07 schrieb »Stefan Göppert«
Hello Stefan,
it seems TB parsing only wants to see on '?'char. What is your string
'first' look like?

Have the following call from Outlook:
Call ShellExecute(0&, "Open", _
"mailto:" + contactStr + "?cc=" + CC + "?bcc=" + BCC + _
"&Subject=" + Betreff + "&Body=" + Mitteilung, "", "", 1)
with :
CC = "ers...@web.de,zwei...@gmx.de"
BCC = "erst...@web.de,zwei...@gmx.de"
Betreff = "test for Stefan"

...this produces
1. cc: ers...@web.de
2. cc: zweiteCC"@gmx.de?bcc=erst...@web.de
3. cc: zwei...@gmx.de

but with
Call ShellExecute(0&, "Open", _
"mailto:" + contactStr + "?cc=" + CC + "&bcc=" + BCC + _
"&Subject=" + Betreff + "&Body=" + Mitteilung, "", "", 1)

.... note now it's "&bcc=" and not "?bcc="

here all goes right, also the addressing now is BCC and not cc!

Check & try those '&' and '?' characters with your call.
Hope it helps
Guenter

Stefan Göppert

unread,
Oct 21, 2006, 4:27:04 PM10/21/06
to
Hallo, ich nehme an, das du auch deutsch sprichst. Ist dann etwas
einfacher ;-). Also ich habe den
String jetzt wie folgt abgeändert:
Shellexecute(Handle,'Open', PChar('mailto:' + first + '?cc=&bcc=' + all
+ '&Subject=&Body='),nil ,nil , SW_ShowNormal);
das Problem bleibt:
In der ersten Adresse des BCC-feldes sieht die Mailadresse so aus:
test"@test.de
Ich benutze Thunderbird 1.5.7
Herzlichen Dank schonmal...

Stefan Göppert


gNeandr schrieb:

gNeandr

unread,
Oct 21, 2006, 4:47:39 PM10/21/06
to
Stefan,

deinen String versteh ich nicht so ganz.
Du schreibst: + '?cc=&bcc=' + all +

Ist denn da keine CC Angabe .. dann würde ich den Teil mal weglassen.
Und wie lautet der 'first' String??
Guenter

Am 21.10.2006 22:27 schrieb »Stefan Göppert«

Stefan Göppert

unread,
Oct 21, 2006, 5:16:38 PM10/21/06
to
Hallo,
nein eine cc Angabe ist nicht vorhanden. "first" ist einfach eine
E-Mailadresse (die erst, die ich aus einer liste rausnehme).
"all" sind alle weiteren Adressen durch ; getrennt. Wenn ich das cc
weglasse, wird alles in die erste Zeile (An:) eingetragen.
Viele Grüße...


gNeandr schrieb:

gNeandr

unread,
Oct 22, 2006, 3:04:17 AM10/22/06
to
Stefan,

sieh dir nochmal deinen & meinen Adr-String an, in meinem werden die
adrsies durch Komma getrennt! Vielleicht ist das das Problem?

Günter

Am 21.10.2006 23:16 schrieb »Stefan Göppert«

gNeandr

unread,
Oct 22, 2006, 4:34:32 AM10/22/06
to
Am 18.10.2006 23:07 schrieb »Stefan Göppert«

Hello Stefan,

as also discussed I assume your string isn't correct!
I tested it with Outlook and found: if the wrong character is inserted
you getting a wrong output in TB.
If I'm using fe. the semicolon between names ... see what happens:
following:

mailto:fir...@abc.xy,seco...@cde.uvw?cc=ers...@web.de,zwei...@gmx.de&bcc=erst...@web.de;zwei...@gmx.de&Subject=email
addressing from Outlook&Body=testmail ... here goes the body

produces:
for To: fir...@abc.xy
seco...@cde.uvw
for CC: ers...@web.de
zwei...@gmx.de
for BCC: ersteBCC"@web.de;zwei...@gmx.de
for Subject: email addressing from Outlook
for body: testmail ... here goes the body

... here the semicolon "produces" a wrong BCC!

With the following string everything is OK!

mailto:fir...@abc.xy,seco...@cde.uvw?cc=ers...@web.de,zwei...@gmx.de&bcc=erst...@web.de,zwei...@gmx.de&Subject=email
addressing from Outlook&Body=testmail ... here goes the body

Notice: ONLY the semicolon changed to a comma !!!

Just try it with a WHOLE string construct!

Viel Glück
Günter

Message has been deleted

Stefan Göppert

unread,
Oct 23, 2006, 12:26:00 PM10/23/06
to
Hi,
das Problem waren in der Tat die Kommas. Vielen Dank und viele Grüße....


gNeandr schrieb:

0 new messages