Google 網路論壇不再支援新的 Usenet 貼文或訂閱項目,但過往內容仍可供查看。

Problem with string from own program

瀏覽次數:33 次
跳到第一則未讀訊息

Stefan Göppert

未讀,
2006年10月18日 下午5:07:522006/10/18
收件者:
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

未讀,
2006年10月21日 上午10:37:302006/10/21
收件者:
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

未讀,
2006年10月21日 下午4:27:042006/10/21
收件者:
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

未讀,
2006年10月21日 下午4:47:392006/10/21
收件者:
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

未讀,
2006年10月21日 下午5:16:382006/10/21
收件者:
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

未讀,
2006年10月22日 凌晨3:04:172006/10/22
收件者:
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

未讀,
2006年10月22日 凌晨4:34:322006/10/22
收件者:
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

訊息已遭刪除

Stefan Göppert

未讀,
2006年10月23日 中午12:26:002006/10/23
收件者:
Hi,
das Problem waren in der Tat die Kommas. Vielen Dank und viele Grüße....


gNeandr schrieb:

0 則新訊息