Share this topic on FacebookShare this topic on MySpaceShare this topic on Del.icio.usShare this topic on DiggShare this topic on StumbleUponShare this topic on TwitterShare this topic on GoogleShare this topic on Yahoo

Author Topic: membuat dan menerima email dg vfp  (Read 1703 times)

0 Members and 1 Guest are viewing this topic.

Offline superfox

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 17
membuat dan menerima email dg vfp
« on: June 09, 2009, 08:47:12 PM »
bro....

sy mau tanya apakah kita bisa membuat aplikasi send email dan menerima email dengan file atach didalamnya, menggunakan vfp dengan teknologi smtp dan pop3?


kalo ada yang bisa kasih samplenya donk....

tengkyu....  :thumbsup:  :icon_salut:  :icon_salut:

Offline davidmustakim

  • Fox-id M.V.P
  • Hero Member
  • *
  • Thank You
  • -Given: 1
  • -Receive: 23
  • Posts: 4599
Re: membuat dan menerima email dg vfp
« Reply #1 on: June 09, 2009, 09:01:05 PM »
sudah sering dibahas, coba anda search dulu

Offline rnd

  • Senior Member
  • *
  • Thank You
  • -Given: 3
  • -Receive: 7
  • Posts: 665
Re: membuat dan menerima email dg vfp
« Reply #2 on: June 09, 2009, 09:09:44 PM »
ini mungkin linknya
http://fox-id.org/smf/index.php/topic,7133.15.html
http://fox-id.org/smf/index.php/topic,5596.0.html

ini juga ada 1 saya copy paste dari salah satu web

 sending email dg menggunakan outlook express atau microsoft outlook akan dihadang dengan security.

sending email dg menggunakan outlook express atau microsoft outlook akan dihadang dengan security yang mana kita harus mengklik tombol yes or no atau send or not send. kita bisa mengirim email tanpa ada peringatan dengan menggunakan software jmail (freeware lho...).
pertama : download software jmail di :
http://www.dimac.net/FreeDownloads/dlstart.asp?ProductID=5 setelah itu jalan file download tsb.

kedua : masukkan code dibawah ini pada command send di form anda.
****start copy*****
PUBLIC oSMTPMail
oSMTPMail = NEWOBJECT("jmail.SMTPMail")
***If you aren't sure leave this commented out
***let the object figure it out for you if possible
***oSMTPMail .ServerAddress = "mail.mchsi.com"
oSMTPMail .ServerAddress = "mail.softhome.net" && isi mail server anda
oSMTPMail.AddRecipient ("willy-w@hotpop.com")
oSMTPMail.Sender = "w1lys@softhome.net"
oSMTPMail.SenderName = "Willy W"
oSMTPMail.Subject = "Percobaan email"
oSMTPMail.Body = "ini isi body email"
oSMTPMail.AddAttachMent ("C:\AutoExec.bat")
oSMTPMail.Execute()
RELEASE oSMTPMail
****akhir copy****

selamat menggunakan....

nb : kode diatas saya ambil dari www.foxite.com

Offline superfox

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 17
Re: membuat dan menerima email dg vfp
« Reply #3 on: June 10, 2009, 09:08:38 AM »
bro udah sy coba tp ada message eror nya sbb:
"Ole IDispacth execeptioncode 0 from jmail.SMTPMail: The message was undeliverable. All servers failed to receive the message"

itu kenapa ya?

mohon pencerahannya...  :icon_salut:  :icon_salut:  :icon_salut:

tks

Offline rnd

  • Senior Member
  • *
  • Thank You
  • -Given: 3
  • -Receive: 7
  • Posts: 665
Re: membuat dan menerima email dg vfp
« Reply #4 on: June 10, 2009, 09:15:21 AM »
Sudah download dan install jmail, saya juga udah lama ngak utak atik ini, tapi masih jalan di client saya

Offline superfox

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 17
Re: membuat dan menerima email dg vfp
« Reply #5 on: June 10, 2009, 09:50:02 AM »
jmail udah sy instal.. tp tetep aj blm bisa

erornya saat "oSMTPMail.Execute()"

Offline davidmustakim

  • Fox-id M.V.P
  • Hero Member
  • *
  • Thank You
  • -Given: 1
  • -Receive: 23
  • Posts: 4599
Re: membuat dan menerima email dg vfp
« Reply #6 on: June 10, 2009, 06:30:28 PM »
errornya mungkin disitu, tapi penyebabnya bisa macam2, nah coba SMS Deddy Cobuzier atau upload koding selengkapnya

Offline rnd

  • Senior Member
  • *
  • Thank You
  • -Given: 3
  • -Receive: 7
  • Posts: 665
Re: membuat dan menerima email dg vfp
« Reply #7 on: June 10, 2009, 06:37:13 PM »
masalah di smtpnya pa, kalo saya coba pake smtp saya jalan si

Offline foxever_fox

  • Hero Member
  • *
  • Thank You
  • -Given: 9
  • -Receive: 8
  • Posts: 1120
Re: membuat dan menerima email dg vfp
« Reply #8 on: June 10, 2009, 09:35:29 PM »
Koneksinya pake apa?
Kalo pake Esia  memang ( umumnya  )  diblok oleh SMTP server

Offline rnd

  • Senior Member
  • *
  • Thank You
  • -Given: 3
  • -Receive: 7
  • Posts: 665
Re: membuat dan menerima email dg vfp
« Reply #9 on: June 10, 2009, 09:44:07 PM »
saya juga kurang tau, disaya sih ok ok aja, ngak tau dengan pa Superfox kalo koneksinya pake apa

Offline GoodOne

  • Full Member
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 82
Re: membuat dan menerima email dg vfp
« Reply #10 on: February 07, 2010, 04:23:55 PM »
bung rnd saya juga mengalami hal yang sama dengan yang dialami superfox. Saya sudah install jmail, lalu saya coba bikin form baru yang isinya cuma command button. Isi event click saya isi:

PUBLIC oSMTPMail
oSMTPMail = NEWOBJECT("jmail.SMTPMail")
oSMTPMail .ServerAddress = "smtp.mail.yahoo.co.id"
oSMTPMail.AddRecipient ("tester@hotmail.com")
oSMTPMail.Sender = "tester@yahoo.co.id"
oSMTPMail.SenderName = "Tester"
oSMTPMail.Subject = "Percobaan email"
oSMTPMail.Body = "ini isi body email"
oSMTPMail.AddAttachMent ("D:\Readme.txt")
oSMTPMail.Execute()
RELEASE oSMTPMail

ukuran file readme.txt = 5Kb. Sepintas yang saya perhatikan adalah untuk password belum ada commandnya.

mohon petunjuknya, thanks

Offline GoodOne

  • Full Member
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 82
Re: membuat dan menerima email dg vfp
« Reply #11 on: February 09, 2010, 03:14:30 PM »
mengirim dan menerima email sudah solved, dapet caranya dari bereznikers....  :icon_thumleft:

Offline tonyfm

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 29
Re: membuat dan menerima email dg vfp
« Reply #12 on: March 30, 2010, 11:38:08 AM »
Sesuai dengan versi JMail terakhir saat post ini saya ketik, dari situs aslinya (dimac.net) , versi yang sekarang adalah w3JMail v.4.5. Anda bisa daftar, terus download, jalankan file tersebut di komputer yang akan mengirimkan email dari VFP.

Di VFP, sample yang mereka berikan saya sesuaikan sebagai berikut (sesuai dengan sample yang sudah ada di atas).

PUBLIC oSMTPMail
oSMTPMail = NEWOBJECT("JMail.Message")
oSMTPMail.Logging = .T.
oSMTPMail.silent  = .T.

*!* email Pengirim
oSMTPMail.From = "xxx@yyy.net"
oSMTPMail.FromName = "Bp XXX"

*!* email Tujuan
oSMTPMail.AddRecipient("zzz@gmail.com")

oSMTPMail.Subject = "Coba 3"
oSMTPMail.Body = "Ini percobaan nomor 3"

*!* Isi dengan SMTP Server yang digunakan
if not oSMTPMail.Send("mail.yyy.net")
    =MESSAGEBOX(oSMTP.log,0,"Error Sending Email")
else
    =MESSAGEBOX("Message sent succesfully!",0,"Sent")
endif
RELEASE oSMTPMail



Saya coba pakai VFP7 dan berhasil.
Semoga bermanfaat.
Salam.

Offline cobrot

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 37
Re: membuat dan menerima email dg vfp
« Reply #13 on: March 30, 2010, 05:24:09 PM »
Apa kabar, Pak Tony?
berikut saya coba beri alternatif pengiriman email tanpa instalasi jmail. Code aslinya saya temukan di internet menggunakan vbscript, saya lupa urlnya:
Code: [Select]
oSMTPMail = CREATEOBJECT('CDO.Message')
*!* sendusing : 1 => local SMTP, 2=>network SMTP
oSMTPMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
*!* Name or IP of Remote SMTP Server
oSMTPMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "192.168.xxx.xxx" && ipaddress mail server
*!* authentication : 0 => Anonymous, 1=>Basic (clear-text), 2=>NTLM
oSMTPMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 0

*!* Kalau pake authenticaion :
*!* Your UserID on the SMTP server
*!* oSMTPMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "mis"

*!* Your password on the SMTP server
*!* oSMTPMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "Put Password Of User Account Here"

*!* Server port (typically 25)
*!* oSMTPMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

*!* Use SSL for the connection (False or True)
oSMTPMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = .f.
oSMTPMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
oSMTPMail.Configuration.Fields.Update

oSMTPMail.From = "pengirim@namadomain.com" && email account pengirim
oSMTPMail.Subject = "Subyeknya ditulis disini"

oSMTPMail.To = 'penerima@namadomain.com' && email account penerima
oSMTPMail.CC = 'penerima_cc@namadomain.com'

oSMTPMail.TextBody = 'Test... nulis text body-nya di sini...'

*!* Pakai attachment??
oSMTPMail.AddAttachment(tcfile)

oSMTPMail.Send()


RELEASE oSMTPMail

semoga membantu...

Offline tejos

  • SET STUDY ON
  • Global Moderator
  • Hero Member
  • *
  • Thank You
  • -Given: 4
  • -Receive: 4
  • Posts: 1390
Re: membuat dan menerima email dg vfp
« Reply #14 on: April 05, 2010, 11:59:25 AM »
mengirim dan menerima email sudah solved, dapet caranya dari bereznikers....  :icon_thumleft:


Caranya????
http://www.isa-tech.com
http://cc.domaindlx.com/isakom/

Salam,
***BTGL - Belajar Terus Gitu Lhoh.....***