Hello Experts,
Another question
I send mails from vfp9 sp1.
my code is :
IF thisformset.frmbest.cb_urgent.value = 1
m.urgent = "JA/OUI/YES"
ELSE
m.urgent = "NORMAAL/NORMAL/NORMAL"
ENDIF
subject = "ONZE REF/NOTRE REF/OUR REF " + STR(thisformset.frmbest.tb_bestelnr.value,10,0) + " Code: " +;
ALLTRIM(THISFORMSET.frmbest.tb_bskode.VALUE) + " URGENT " + m.urgent
body = "Geachte Heer/ Mevrouw Cher(e) Monsieur/Madame Dear Sirs"+ CHR(13) + ;
"Gelieve bijgaande bestelling te noteren en ons zo vlug mogelijk de leveringsdatum te laten weten"+CHR(13)+;
"Gelieve ook asap te laten weten als er partnumbers veranderd zijn in deze bestelling"+CHR(13)+ CHR(13);
"Veullez noter notre commande ci-incluse. Veullez nous informer au plus vite la date de livraison"+CHR(13)+;
"Veullez aussi nous informer aussi au plus vite si il y a des partnumber qui ont changé"+CHR(13)+CHR(13)+;
"Please note our order included and let us know the delivery date as soon as possible"+CHR(13);
"Please let us also know if there are any number changes"+CHR(13)+CHR(13)+;
m.username
o=CREATEOBJECT("outlook.application")
oitem = o.createitem(0)
oitem.subject = subject
oitem.TO = ALLTRIM(thisformset.frmbest.tb_aan.value)
oitem.cc = ALLTRIM(thisformset.frmbest.tb_cc.Value)
oitem.bcc = ALLTRIM(thisformset.frmbest.tb_bcc.Value)
oitem.body = body
oitem.Attachments.ADD("&bijlage")
*
oitem.DISPLAY
o=.NULL.
this works fine if outlook is already started.
if outlook isn't started this thing doesn't work.
is there any way of knowing if outlook is started and when it isn't started how can i start outlook automaticaly
Whet also doesn't work I see now the field BCC is not updated.
wfg,
Filip Merlier
Another question
I send mails from vfp9 sp1.
my code is :
IF thisformset.frmbest.cb_urgent.value = 1
m.urgent = "JA/OUI/YES"
ELSE
m.urgent = "NORMAAL/NORMAL/NORMAL"
ENDIF
subject = "ONZE REF/NOTRE REF/OUR REF " + STR(thisformset.frmbest.tb_bestelnr.value,10,0) + " Code: " +;
ALLTRIM(THISFORMSET.frmbest.tb_bskode.VALUE) + " URGENT " + m.urgent
body = "Geachte Heer/ Mevrouw Cher(e) Monsieur/Madame Dear Sirs"+ CHR(13) + ;
"Gelieve bijgaande bestelling te noteren en ons zo vlug mogelijk de leveringsdatum te laten weten"+CHR(13)+;
"Gelieve ook asap te laten weten als er partnumbers veranderd zijn in deze bestelling"+CHR(13)+ CHR(13);
"Veullez noter notre commande ci-incluse. Veullez nous informer au plus vite la date de livraison"+CHR(13)+;
"Veullez aussi nous informer aussi au plus vite si il y a des partnumber qui ont changé"+CHR(13)+CHR(13)+;
"Please note our order included and let us know the delivery date as soon as possible"+CHR(13);
"Please let us also know if there are any number changes"+CHR(13)+CHR(13)+;
m.username
o=CREATEOBJECT("outlook.application")
oitem = o.createitem(0)
oitem.subject = subject
oitem.TO = ALLTRIM(thisformset.frmbest.tb_aan.value)
oitem.cc = ALLTRIM(thisformset.frmbest.tb_cc.Value)
oitem.bcc = ALLTRIM(thisformset.frmbest.tb_bcc.Value)
oitem.body = body
oitem.Attachments.ADD("&bijlage")
*
oitem.DISPLAY
o=.NULL.
this works fine if outlook is already started.
if outlook isn't started this thing doesn't work.
is there any way of knowing if outlook is started and when it isn't started how can i start outlook automaticaly
Whet also doesn't work I see now the field BCC is not updated.
wfg,
Filip Merlier