Discussion:
using Jmail
(too old to reply)
eric wu
2008-09-23 14:20:18 UTC
Permalink
Geoff,
thank you so much!

1. the jmail_free.msi you placeed in the dbase.binaries can not be download
to my computer because it's blocked. (it's an unsafe attachment)
do you mind send it to my email ***@hotmail.com or post it again as a
zip file ?

2. I just need to send email (SMTP only),to me, the free version should be
good enough.
however ,I purchased a standard version last night. ( it says $45 but
actually $25 )

3.
for my understanding, when sending out email, we just need the "mail server
domain name" and the "email address".
I don't understand what should what "smtpout.secureserver.net:80" is
oMail.maildomain = "yourEmailDomain.com"
omail.send("smtpout.secureserver.net:80")

4. is this what I should code to work with Jmail.cc ?

set procedure to split2.prg
set procedure to jmail.cc
EmailMsg = new jmail()
EmailMsg.from = "***@leader-mutual.com"
EmailMsg.Dest = "***@leader-mutual.com"
EmailMsg.ccDest = ""
EmailMsg.bccDest = ""
EmailMsg.Subject = "test"
EmailMsg.Message = "test"
EmailMsg.Execute()
eric wu
2008-09-24 00:48:30 UTC
Permalink
Geoff,
thank you so much!

1. the jmail_free.msi you placeed in the dbase.binaries can not be download
to my computer because it's blocked. (it's an unsafe attachment)
do you mind send it to my email ***@hotmail.com or post it again as a
zip file ?

2. I just need to send email (SMTP only),to me, the free version should be
good enough.
however ,I purchased a standard version last night. ( it says $45 but
actually $25 )

3. in Jmail.cc
no need to do this : oMail.maildomain = this.smtpServer
just do this : omail.send( "mail.mydomain.com")

4.

set procedure to jmail.cc
EmailMsg = new jmail()
EmailMsg.from = "***@hotmail.com"
EmailMsg.Dest = "***@hotmail.com"
EmailMsg.ccDest = ""
EmailMsg.bccDest = ""
EmailMsg.Subject = "test"
EmailMsg.Message = "test"
EmailMsg.Execute()

if I have an array stores my attachments, how to use it in Jmail ?
eric wu
2008-09-24 02:13:57 UTC
Permalink
4. add attachment : I got it.
Geoff Wass [dBVIPS]
2008-09-24 05:14:26 UTC
Permalink
Eric,

I have no experience using JMail. Perhaps Greg Hill will notice this
thread because I think he has used it.
--
Geoff Wass [dBVIPS]
Montréal, Québec, Canada

.|.|.| dBASE info at http://geocities.com/geoff_wass |.|.|.
.|.|.| ---------------------------------------------------------- |.|.|.
.|.|.| IT Consultant http://Geoff_Wass.com |.|.|.
Greg Hill
2008-09-24 05:36:08 UTC
Permalink
There website changed a little. It forced me to look at what I bought. I
don't see the same title of what I bought, mine was called Jmail Pro.
I don't believe it consist of more than a one single dll.

You store that dll where it belongs and then you register it as follows:

In the Run: of windows Start Menu type the following:

regsvr32 c:\yourJmailFolder\jmail.dll

Then then make sure it is in the folder of your app and run the code I
posted.

Let me know if this works.

Greg Hill
Post by eric wu
Geoff,
thank you so much!
1. the jmail_free.msi you placeed in the dbase.binaries can not be download
to my computer because it's blocked. (it's an unsafe attachment)
zip file ?
2. I just need to send email (SMTP only),to me, the free version should be
good enough.
however ,I purchased a standard version last night. ( it says $45 but
actually $25 )
3. in Jmail.cc
no need to do this : oMail.maildomain = this.smtpServer
just do this : omail.send( "mail.mydomain.com")
4.
set procedure to jmail.cc
EmailMsg = new jmail()
EmailMsg.ccDest = ""
EmailMsg.bccDest = ""
EmailMsg.Subject = "test"
EmailMsg.Message = "test"
EmailMsg.Execute()
if I have an array stores my attachments, how to use it in Jmail ?
eric wu
2008-09-24 13:05:25 UTC
Permalink
Thank you, Gre and Geoff
I've figured out everything myself.

the download website for jmail_free.msi :
http://webscripts.softpedia.com/scriptDownload/w3JMail-Download-14547.html

just run the jmail_free.msi and crate a jmail.cc ,it will be ready to send
email by dBase.

=======
jmail.cc
=======
/* usage
set procedure to jmail.cc addi
JmailMsg = new jmail()
JmailMsg.from = "***@domain.com "
JmailMsg.Dest = "***@domain.com "
JmailMsg.ccDest = "***@domain.com "
JmailMsg.bccDest = "***@domain.com "
JmailMsg.Subject = "Subject "
JmailMsg.Message = "Mseeage Content"
JmailMsg.smtpServer = "mail.domain.com"
JmailMsg.arrayAtt = ArrayOfAttachmentsPathAndFilename
JmailMsg.Execute()
*/

Class jmail

this.from = "" // From:
this.Dest = "" // To:
this.ccDest = "" // Cc:
this.bccDest = "" // Bcc:
this.Subject = "" // Subject
this.Message = "" // Message Content [end-of-line: chr(13) + chr(10)]
this.smtpServer = "" // f.e. mail.yourdomain.com
this.arrayAtt = new Array()

function execute
try

oMail = new oleautoclient("jmail.message")
oMail.silent = true //set silent to true as we wish to handle our
errors ourself
oMail.body = this.message

if empty(this.dest)
msgbox("Missing destination address !")
else
oMail.addrecipient(this.dest)
endif

if empty(this.ccDest)
else
oMail.addRecipientCC(this.ccDest)
endif
if empty(this.bccDest)
else
oMail.addRecipientCC(this.ccDest)
endif

if empty(this.Subject)
oMail.subject = "No subject provided"
else
oMail.subject = this.subject
endif

if empty(this.from)
msgbox("Missing From email address !")
else
oMail.from = this.from
endif

arraySize = this.arrayAtt.size
if arraySize > 0
for i = 1 to arraySize
oMail.AddAttachment ( this.arrayAtt[ i ] )
endfor
endif

omail.send( this.smtpServer )

oMail.clearRecipients()

catch (exception e)
msgbox(e.message)
endtry

release object oMail
oMail = null


endclass
Greg Hill
2008-09-24 17:27:55 UTC
Permalink
Post by eric wu
Thank you, Gre and Geoff
I've figured out everything myself.
http://webscripts.softpedia.com/scriptDownload/w3JMail-Download-14547.html
just run the jmail_free.msi and crate a jmail.cc ,it will be ready to send
email by dBase.
Glad you got it.

If you install your app on another machine you will want to register the
jmail.dll as follows:

You just need to put the jmail.dll in the folder of your app and then run:
regsvr32 c:\salesgen\jmail.dll
Or run the install again which is kind a big request.
The jmail_free.msi installation doesn't do more than register the dll.

Greg Hill
Post by eric wu
=======
jmail.cc
=======
/* usage
set procedure to jmail.cc addi
JmailMsg = new jmail()
JmailMsg.Subject = "Subject "
JmailMsg.Message = "Mseeage Content"
JmailMsg.smtpServer = "mail.domain.com"
JmailMsg.arrayAtt = ArrayOfAttachmentsPathAndFilename
JmailMsg.Execute()
*/
Class jmail
this.Subject = "" // Subject
this.Message = "" // Message Content [end-of-line: chr(13) + chr(10)]
this.smtpServer = "" // f.e. mail.yourdomain.com
this.arrayAtt = new Array()
function execute
try
oMail = new oleautoclient("jmail.message")
oMail.silent = true //set silent to true as we wish to handle
our errors ourself
oMail.body = this.message
if empty(this.dest)
msgbox("Missing destination address !")
else
oMail.addrecipient(this.dest)
endif
if empty(this.ccDest)
else
oMail.addRecipientCC(this.ccDest)
endif
if empty(this.bccDest)
else
oMail.addRecipientCC(this.ccDest)
endif
if empty(this.Subject)
oMail.subject = "No subject provided"
else
oMail.subject = this.subject
endif
if empty(this.from)
msgbox("Missing From email address !")
else
oMail.from = this.from
endif
arraySize = this.arrayAtt.size
if arraySize > 0
for i = 1 to arraySize
oMail.AddAttachment ( this.arrayAtt[ i ] )
endfor
endif
omail.send( this.smtpServer )
oMail.clearRecipients()
catch (exception e)
msgbox(e.message)
endtry
release object oMail
oMail = null
endclass
Geoff Wass [dBVIPS]
2008-09-25 04:13:53 UTC
Permalink
Post by eric wu
Thank you, Gre and Geoff
I've figured out everything myself.
http://webscripts.softpedia.com/scriptDownload/w3JMail-Download-14547.html
just run the jmail_free.msi and crate a jmail.cc ,it will be ready to send
email by dBase.
Eric,

Thanks for letting us know you got everything working. This has been a
good learning experience.
--
Geoff Wass [dBVIPS]
Montréal, Québec, Canada

.|.|.| dBASE info at http://geocities.com/geoff_wass |.|.|.
.|.|.| ---------------------------------------------------------- |.|.|.
.|.|.| IT Consultant http://Geoff_Wass.com |.|.|.
Loading...