SMTP OCX - Adding Items to "Sent Items"

When sending e-mail using the SMTP OCX : http://www.nowecor.de/users/stephan/Navision/smtpocx.htm is it possible to set a property or call a method so the sent e-mail are stored automatically in the “Sent Items” folder of Outlook (As the MAPI OCX does - Codeunit 397)

Was wondering about this too. Anyway, shouldn’t it be possible to add yourself as a bcc-receiver on the outbound mail from the smpt-ocx. This way you would receive a copy of the mail in your outlook inbox. Not the perfect way, but perhaps a way anyhow.

Hi Perhaps this could be a work-around (really a WORKAROUND!) I assume you use the other ocx because of the restrictions within the MAPI ocx. - Create a textfile - Create your email and put each line into the textfile - Send your email (by other ocx) - Create a new email by MAPI - Fill the subject with YourSubject - Fill ‘Sent’- data in the mailbody: Sent by the other ocx Date: YourDate To: YourTo etc. - attach the textfile and all other attachments - send this email by MAPI to your own (internal) address - delete the email in the Inbox Now you should have an email in your Outlook ‘Sent’ box. As I said: a ‘really’ workaround [8D]. bye André

I was to keep a copy of the mail sent on a customer implementation and what i did was setting a new field on the user setup so for each user you know what e-mail address are you having to send the copy to and used the BCC (that includes as recipient but does not show the included recipient on the e-mail to the other recipients). That way when sending the e-mail the final recipient is not seeing that you’ve sent yourself a copy and you keep a copy of the actually sent message. Regards,

BTW… you can always set a rule later on outlook for indicating that the messages coming from your own account should be put in the sent messages folder… Regards,

Alfonso : I was not able to see a AddBCCRecipients method in the SMPT OCX. Could you explain me how did you manage to set the BCC via the OCX ?

I didn’t remember i used the CC instead of the BCC… [:D] here is what i used… humm… SMTPMail.SetUserID(remusersetup.“User E-mail Id”); SMTPMail.AddLine(messageTxt[1]); SMTPMail.AddLine(messageTxt[2]); SMTPMail.AddLine(messageTxt[3]); SMTPMail.AddAttachment(teststr); SMTPMail.SetToAdress(vEAddress); SMTPMail.AddCCRecipients(remusersetup.“User E-mail Id”); SMTPMail.Send; Regards,

quote:


Originally posted by Tarek Demiati
When sending e-mail using the SMTP OCX : Seite nicht gefunden - Nowecor AG is it possible to set a property or call a method so the sent e-mail are stored automatically in the “Sent Items” folder of Outlook (As the MAPI OCX does - Codeunit 397)


By the definition of what this SMTP ocx is doing, it would not store anything in Outlook. It is communicating directly to the SMTP server, not using Outlook for this. However, if you were to make a few mods to the existing Mail codeunit and change a couple of settings in Outlook/Outlook Express, you could get it to function almost identically to the OCX as far as reducing the amount of user intervention to create a message and send it out. I’ve got a setup in a database that works very slick.