PDA

View Full Version : outlook send email help


jackdaniels
03-24-2008, 10:23 AM
i tried to do it with input but i had problem with getting data from input objects... can some one help please ???

button on click:
sender = Input.GetText("Input1");
cc = Input.GetText("Input2");
bcc = Input.GetText("Input3");
subject = Input.GetText("Input4");
body = Input.GetText("Input5");

[B]File.OpenEmail("sender?CC=cc&BCC=bcc&Subject=subject&Body=body", SW_SHOWNORMAL);B]

yosik
03-25-2008, 01:11 AM
Your problem is that you have variables but you are using them as strings (putting them inside quotes).
Instead of:

File.OpenEmail("sender?CC=cc&BCC=bcc&Subject=subject&Body=body", SW_SHOWNORMAL);

You should write:

File.OpenEmail(sender.."?"..cc.."&"..bcc.."&"..subject.."&"..body, SW_SHOWNORMAL);

Yossi

jackdaniels
03-25-2008, 01:53 AM
only the reciever works, it doesnt paste the others(cc,bcc,subject,body)!!!

reciever = Input.GetText("Input1");
cc = Input.GetText("Input2");
bcc = Input.GetText("Input3");
subject = Input.GetText("Input4");
body = Input.GetText("Input5");

File.OpenEmail(reciever.."?"..cc.."&"..bcc.."&"..subject.."&"..body, SW_SHOWNORMAL);

yosik
03-25-2008, 02:37 AM
Sorry. The code should be:

File.OpenEmail(sender.."?CC="..cc.."&BCC="..bcc.."&Subject="..subject.."&Body="..body, SW_SHOWNORMAL);

All in one line without space.

Yossi

jackdaniels
03-25-2008, 02:51 AM
thanks alot yosik perfect work