MB Software Solutions, LLC wrote:
> (VFP9SP1 and VFP9SP2)
>
> Trying to use a gmail account to send simple emails from VFP. Using
> wwIPStuff class. Fails on send, with an error saying "530 5.7.0 Must
> issue a STARTTLS command first. 40sm395780aga.78"
>
> Ideas? tia!
Here's the code I'm using:
LOCAL loMail as "wwIPStuff" OF "wwIPStuff.vcx", lcText as String
CREATE CURSOR Emails (cEmail c(80))
IF FILE("emails.txt") THEN
SELECT Emails
APPEND FROM Emails.txt TYPE DELIMITED
ELSE
INSERT INTO Emails VALUES ("[email protected]")
ENDIF
TEXT TO lcText PRETEXT 2 NOSHOW TEXTMERGE
Dear Sir or Madam,
My oldest son will be a 5th grader this year. He works really hard at
school, but for the last 2 years has slowly gone downhill. The school
considered holding him back last year because of his grades, and the
teacher said he really struggled with fractions and word problems. I
want to make sure he's prepared for this fall and doesn't get further
behind.
I am interested in learning more about the programs you offer. Thank
you for any information you can share.
Sincerely,
John Dough
ENDTEXT
loMail = NEWOBJECT('wwIPStuff','wwIPStuff.vcx')
loMail.cMailServer = "smtp.gmail.com"
loMail.cSendername = "John Dough"
loMail.cSenderEmail = "[email protected]"
loMail.cUsername = "uid"
loMail.cPassword = "pwd"
loMail.cRecipient = "[email protected]"
loMail.cCCList = ""
loMail.cBCCList = ""
loMail.cSubject = "Questions about your Math program"
loMail.cContentType = 'text/plain'
loMail.cMessage = lcText
loMail.cAttachment = ""
IF !loMail.SendMail()
MESSAGEBOX(loMail.cErrorMsg,16,"Problem!")
RETURN .F.
ENDIF
--
Mike Babcock, MCP
MB Software Solutions, LLC
President, Chief Software Architect
http://mbsoftwaresolutions.com
http://fabmate.com
http://twitter.com/mbabcock16
_______________________________________________
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.