Skip to main content

send mail from microsoft outlook problem

6 replies [Last post]
sokol
Offline
Joined: 2006-05-05
Points: 0

I have quiet strange problem.
I create instance of Message and open default mailer using Desktop.mail(message).

Everything seems ok, but when I try to send mail immediate response is:

Your message did not reach some or all of the intended recipients.

Subject: Subject
Sent: 14/12/2004 01:32

The following recipient(s) could not be reached:

'email address here' on 14/12/2004 01:32
None of your e-mail accounts could send to this recipient.

No need to say that email address is correct. What is even more interesting, if I delete defined email address and retype manually same email address everything works fine.

After some investigation I found following. If I double click recipient address in generated mail (I am using outlook), email type is set to recipient address. If I click button Internet Type, email type is changed to "SMTP" and after that everything works fine.

I am using Microsoft Outlook 2003 on Windows XP Home Edition, SP 2.

Any ideas how to solve this problem. Did you ever got this problem?

Thanks,
Jan.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
armin_chen
Offline
Joined: 2004-09-29
Points: 0

Hi sokol,

Desktop.mail(message) just launch the default mailer and set the property specified by the argument message. After the default mailer is launched successfully, there is nothing to do with JDIC code.

I have try to send a mail by using Desktop.mail(message) with specified recipients and attachments, everything works fine.

So, i think, it should not be a problem caused by JDIC.

Regards.
Armin

sokol
Offline
Joined: 2006-05-05
Points: 0

I thought the same but example works fine when using mailto protocol. If the problem is up to mail client, I think problem would be experienced with mailto protocol too. These are only my opinions.

If you go carefully through posts on this forum you will notice similar problem reported by one more guy.

Thanks,
Jan.

dbramble
Offline
Joined: 2005-10-21
Points: 0

Hi folks,

I'm seeing a similar problem using MS Outlook 2003 and JDIC version 0.9. I have the following code where the message contains a single "to" address

[b]Desktop.mail(msg);[/b]

The mailer opens and everything looks fine until you try to send the message at which point I get the following:

[b]Your message did not reach some or all of the intended recipients.

Subject: Test
Sent: 5/10/2005 5:28 PM

The following recipient(s) could not be reached:

'aValidEmailAddress' on 5/10/2005 5:28 PM
None of your e-mail accounts could send to this recipient.[/b]

Any support would be appreciated.

thayden
Offline
Joined: 2004-07-07
Points: 0

Hey,

I have the exact problem with Outlook 2003 and JDIC v.9. I looked at the Windows JNI implementation, and it is exactly the way I would have written it and looks correct. But when the Outlook send dialog is displayed the email address type says "Internet" instead of "SMTP"

I don't know MAPI / Outlook's API calls good enough to know if there is some Microsoft hack ore workaround to fix this problem.

Anyone else have any thoughts?

rollout
Offline
Joined: 2005-10-04
Points: 0

The problem is, that the address type for all addresses in the mail aren't set. The type should be set to SMTP. Instead it is set to the address itself.

You can see that if you rightclick on a address in the new created mail and click to property.

It seem's that this is only a problem for Microsoft Outlook. Outlook Express works fine.

Workarround: If you use Microsoft Outlook or Outlook Express, just preced each mail address with SMTP: when you fill the org.jdesktop.jdic.desktop.message object with the adresse
e.g. "SMTP:John@home.com"
It doesn't look very pretty in the adress fields of the mail, but it works.

I'll report this bug and hope, they can fix the lpszAddress settings in WinAPIWrapper.cpp

For mapi setting definitions have a look at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mapi/ht...

nits_sri
Offline
Joined: 2008-10-23
Points: 0

Hi rollout,

Has this issue been fixed? Or do we still have to append smtp: before the actual email address?

Thanks!