I'm happy with Jmail.dll, the free version.

You can find it here:
www.dimac.net
Go to Free Downloads and download w3Jmail

The installation program extract some files, but the only necessary piece is 
jmail.dll.

Attached the function I have wrapped around it.

Jmail can manage smtp authentication, also with a complete email as user name.
The latter is managed in a special way in my code.

To use smtp authentication specify the smtp server prefaced with username and 
password
in the following way:

Normal smtp server: mai.libero.it
Auth smpt server sample 1: io_gianni:[EMAIL PROTECTED]
Auth smpt server sample 2: [EMAIL PROTECTED]:[EMAIL PROTECTED]

Sample use:

m.server = "smtp.fastwebnet.it"
m.sender = "[EMAIL PROTECTED]"
m.address = "[EMAIL PROTECTED]"
m.subject = "Test Email"
m.body = "A very short body ...:)"
m.attachment = "fileattached.zip"
m.receipt_requested = .t.

m.success = S_EMAIL(m.server, m.sender, m.address, m.subject, m.body, 
m.attachment, m.receipt_requested)

HTH, Gianni

----- Original Message ----- 
From: "Whil Hentzen (Pro*)" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Thu, 05 Apr 2007 11:52:39 -0500
Subject: Sending mail from VFP w/o mailto

Hi folks,

I have inherited (ahem...) an app that includes a rudimentary email 
function in one of its modules. It uses the 'mailto' and shellexecute 
functions in Windows, primarily because the app used to be x-plat and 
thus couldn't rely on Windows-only solutions.

The Windows part of the call looks like this:

m.mailcommand = "mailto:"; + m.realname + "<" + m.emailaddress + ">" + 
"?subject=" + m.subject + "&body=" + m.message

declare integer ShellExecute in shell32.dll...
declare integer FindWindow in WIN32API...
=ShellExecute(FindWindow(....))

It works fine for short messages (@1000 bytes), but now they want to 
send big ol' messages, like 10K to 20K. This current mechanism is 
truncating those messages (I think at 1024.)

My options are...

Door #1: Find a way to use the current mechanism but allow it to use 
much longer messages -> that's your first question.

Door #2: Find a different, Windows OS-only solution.

Door #3: Incorporate a third party utility such as BLAT (which I've seen 
talked about here oodles) or ipstuff.

It'd be great if I could just alter the syntax of the current mechanism 
to be able to include longer messages, but I don't know enough about how 
that works to determine if it's a native limit or something artificial 
imposed by this app.

Whil


--- StripMime Report -- processed MIME parts ---
multipart/mixed
  text/plain (text body -- kept)
  application/octet-stream
---


_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to