Page 1 of 2

problems with email

PostPosted: Sat May 10, 2008 5:59 pm
by MOISES
Hi,

I want to open the pre-defined mail program, create a new message and attach a file.

I tried DEFINE MAIL but I does not work fine. In some cases, you have to call it twice, and in some computers it does not work at all!!.

Any ideas?. Thank you, Best regards,

PostPosted: Mon May 12, 2008 6:05 pm
by James Bott
DEFINE MAIL works with MAPI. If the computer isn't configured with a default MAPI mail client, then DEFINE MAIL won't work.

Regards,
James

PostPosted: Mon May 12, 2008 7:58 pm
by MOISES
Thank you, James!!

It must be an alternative!!. It is a basic feature that Fivewin must have.

PostPosted: Mon May 12, 2008 8:05 pm
by James Bott
There is an alternative. You can use SMTP instead. This will send mail directly to a SMTP server. There are some negatives. Users will not get to edit the mail before it goes out and they will not get a copy saved in their Sent folder in their mail client software.

See FWH\samples\testsmtp.prg

Regards,
James

PostPosted: Tue May 13, 2008 10:43 am
by MOISES
Thank you James, it i want to send the email with the email client, so as to avoid the difficulties you have pointed out.

Why does DEFINE MAIL not work fine with Outlook express?.

Best regads

PostPosted: Tue May 13, 2008 11:41 am
by James Bott
DEFINE MAIL does work with Outlook Express.

However, recently I installed the new Outlook Express replacement, Windows Live Mail (desktop) and it reconfigured Windows to make itself the default MAPI client. Then I went back to using Outlook Express and set it to the default MAPI client, but all mail sent to it using another program (such as FW's DEFINE MAIL), still gets sent to Windows Live Mail. I have not been able to find a solution for this. So, DEFINE MAIL still works in this case but it is being sent to the wrong MAPI client--but this is a Windows configuration issue, not a FW issue.

What is the problem you are having with Outlook Express? Are you getting error messages? Perhaps it is a Windows configuration problem. What version of Windows? I am using XP Pro SP2.

Regards,
James

PostPosted: Tue May 13, 2008 12:13 pm
by James Bott
Here is a link on how to fix various MAPI configuration problems.

http://www.ctimls.com/Support/KB/Error% ... _error.htm

Regards,
James

PostPosted: Wed May 14, 2008 5:34 pm
by MOISES
Hi James,

Thank you for your help!!.

I use Windows XP SP2, Fivewin 7.12 y Harbour 1.1.

This code:

DEFINE MAIL oMail;
SUBJECT "Envío documento";
TEXT "Cordiales saludos" ;
FILES ( cEmailFile ), cFileName( cEmailFile ) ;
FROM USER

ACTIVATE MAIL oMail

In some computers only works when you call it twice. In others, It does not work at all!!!.

What I want is very simple: with the provided file, open a new email meesage. Fivewin should support this!!.

Best regards,

PostPosted: Wed May 14, 2008 6:33 pm
by Antonio Linares
Moises,

> What I want is very simple

What you want is not as simple as it seems :-) It should be simple if you have the right settings in your computer.

What email software do you use ? Do have Outlook and Outlook Express both installed in your computer ?

PostPosted: Wed May 14, 2008 8:25 pm
by MOISES
Antonio:

The computer is working fine. No problems when in a web page, for example, yo do click on an email adress. It start it propely.

I have Outlook Express and Outlook. The pre-defined email client is the first.

Thank you!!!. Best regards,

PostPosted: Wed May 14, 2008 8:26 pm
by JC
Antonio Linares wrote:Moises,

> What I want is very simple

What you want is not as simple as it seems :-) It should be simple if you have the right settings in your computer.

What email software do you use ? Do have Outlook and Outlook Express both installed in your computer ?

Dear Linares,

Taking your topic, let me ask something:

I have a similar routine that works perfectly when the default program is Outlook Express, but when it's defined for Mozilla Thunderbird ... the routine only opens the program, but not the screen for sending e-mail like in Outlook.

Is there any extra configuration to do?

PostPosted: Wed May 14, 2008 10:28 pm
by James Bott
Moises,

>In some computers only works when you call it twice. In others, It does not work at all!!!.

>What I want is very simple: with the provided file, open a new email meesage. Fivewin should support this!!.

I don't think this has anything to do with FW. FW does support MAPI and I have been using it for many years without problem.

You are having a MAPI configuration problem. Did you look at the link I provided above?

James

PostPosted: Sun May 18, 2008 7:48 pm
by MOISES
Hi,

I found an alternative, the mailto: command. It starts the pre-defined mail client, but i don´t know how to specify a file to attach.

Anyone has more info about this command?. Thank you

PostPosted: Sun May 18, 2008 7:54 pm
by Antonio Linares

PostPosted: Mon May 19, 2008 7:35 am
by MOISES
Antonio,

Of course, I tried Google first, but those pages refer to UNIX, not to Windows and I did´t find a working example to attach a file with mailto: command. Where I can find its parameters?.

Thank you