I don't receive email via vfp9, but I do send to gmail with it. I use
outlook to pull the gmail stuff in.
oMSG = Createobject("cdo.message")
oMSG.Subject = "Prowler Requested Tag Hits Report
>From "+_Screen.lcpno && put your own subject line here.
oMSG.TextBody = "Sending an email using VFP and
Gmail"
lcfile='somefile.txt
omsg.AddAttachment(lcfile)
oMSG.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configurati
on/sendusing") = 2
oMSG.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configurati
on/smtpserver") = "mail.gmail.com"
oMSG.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configurati
on/smtpauthenticate") = 1
oMSG.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configurati
on/sendusername") = "[email protected]"
oMSG.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configurati
on/sendpassword") = "thisiswhereyourpasswordwouldbe"
oMSG.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configurati
on/smtpserverport") = 465
oMSG.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configurati
on/smtpusessl") = .T.
oMSG.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configurati
on/smtpusessl") = .F.
oMSG.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configurati
on/smtpconnectiontimeout") = 60
oMSG.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configurati
on/smtpserver") = "smtp.gmail.com"
oMSG.Sender='[email protected]'
oMSG.To=' someotherusername @gmail.com'
oMSG.From=' myusername @gmail.com'
oMSG.Configuration.Fields.Update()
oMSG.Send()
oMSG=.Null.
Release oMSG
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Angel Dario Rodriguez
Sent: Thursday, May 10, 2012 3:47 PM
To: ProFox Email List
Subject: download emails with vfp9
Hi pals. Can someone give any clue about to downlaod emails using gmail
directly by vpf9 code ?
--- StripMime Report -- processed MIME parts --- multipart/alternative
text/plain (text body -- kept)
text/html
---
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
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.