From: Geoff Schaller on
Gunter.

Jon is right. It appears that your ISP requires SSL which is not
possible in VO without substantial re-working. One way out is to build
an email client in C# or the other is to do as Jon suggests. Get a 3rd
party control.

Sorry,

Geoff



"Gunter" <g.huebner(a)dsh-anklam.de> wrote in message
news:8b7f90b7-4e78-4cdf-b4c3-ff072d187965(a)g1g2000vbr.googlegroups.com:

> Hallo all,
> I use the current Lib from Geoff (downloaded on 19. Nov.) .and. VO 2.8
> SP2 (2830)
> eMail download runs OK but send of eMails does not run:
>
> This are real values, everyone can try with them:
> cPopServer := "pop.1und1.de"
> (1&1 eMail server needs authentication!!!)
> cMyUserName := "Test_112009(a)dsh-anklam.de"
> cMyPassword := "PW_Test_112009"
>
> oEmail := CEmail{}
> oEmail:Subject := "Test eMail"
> oEmail:cText := "Test Text..."
> oEmail:cDestList := "gh...(a)web.de"
>
> oEmail:FromAddress := cMyUserName
> oEmail:FromName := cMyUserName
> oEmail:ReplyTo := cMyUserName
> oEmail:Cargo := "X-Mailer: TDOC SMTP Mailer"
> oEmail:EncodeEmail()
>
> oSmtp:=CSmtp{ oEmail, "smtp.1und1.de"}
> oSmtp:SecureSMTP := TRUE
> IF oSmtp:SecureSMTP
> oSmtp:UserName := cMyUserName
> oSmtp:PassWord := cMyPassword
> ENDIF
> ?"SendMail:", oSmtp:SendMail() // --> .F.
>
> ?"ReplyCode:" +NTrim(oSmtp:ReplyCode) // --> 500
> ?"ErrorNo: " +NTrim(oSmtp:Error) // --> 212
> ?"ErrorMsg: " +oSmtp:ErrorMsg // 535 Authentication failure
>
> What is wrong?
> I become desperate!
>
> Gunter H�bner

From: Jon J on
Gunter

I tested your smtp server with your credentials and it worked OK
I am having trouble attaching an image to a news group reply to show you the
settings I used, but

The only other setting required was

STARTTLS=True;

which isn't supported in VO, but as Geoff said, it is in C# or use the
Chilkat Activex control

HTH
--
Jon Justin


"Gunter" <g.huebner(a)dsh-anklam.de> wrote in message
news:8b7f90b7-4e78-4cdf-b4c3-ff072d187965(a)g1g2000vbr.googlegroups.com...
> Hallo all,
> I use the current Lib from Geoff (downloaded on 19. Nov.) .and. VO 2.8
> SP2 (2830)
> eMail download runs OK but send of eMails does not run:
>
> This are real values, everyone can try with them:
> cPopServer := "pop.1und1.de"
> (1&1 eMail server needs authentication!!!)
> cMyUserName := "Test_112009(a)dsh-anklam.de"
> cMyPassword := "PW_Test_112009"
>
> oEmail := CEmail{}
> oEmail:Subject := "Test eMail"
> oEmail:cText := "Test Text..."
> oEmail:cDestList := "gh...(a)web.de"
>
> oEmail:FromAddress := cMyUserName
> oEmail:FromName := cMyUserName
> oEmail:ReplyTo := cMyUserName
> oEmail:Cargo := "X-Mailer: TDOC SMTP Mailer"
> oEmail:EncodeEmail()
>
> oSmtp:=CSmtp{ oEmail, "smtp.1und1.de"}
> oSmtp:SecureSMTP := TRUE
> IF oSmtp:SecureSMTP
> oSmtp:UserName := cMyUserName
> oSmtp:PassWord := cMyPassword
> ENDIF
> ?"SendMail:", oSmtp:SendMail() // --> .F.
>
> ?"ReplyCode:" +NTrim(oSmtp:ReplyCode) // --> 500
> ?"ErrorNo: " +NTrim(oSmtp:Error) // --> 212
> ?"ErrorMsg: " +oSmtp:ErrorMsg // 535 Authentication failure
>
> What is wrong?
> I become desperate!
>
> Gunter H�bner

From: Gunter on
Jon.
I looked at Chilkat Software and I think its exact what I need.
But how to use it in VO?
I have no experience with using ActivX controls in VO. Can you give me
an initial aid?

Gunter
From: "Ted Rouen" tr AT harmonysoftware DOT com DOT on
Hi Gunter

The way I got Chilkat to work was to use Automation Server:

1. Create an empty module.
2. select Tools, Automation Server
3. highlight "Chilkat Mail v7.9.0"
4. tick Include Containing Objects
5. select Show Interfaces
6. highlight "IChilKatMailMan2"
7. select Generate Source

To use Chilkat to send an email :

LOCAL oMailMan as IChilKatMailMan2
LOCAL oEmail AS IChilkatEmail2

LOCAL cToName as STRING
LOCAL cToAddress AS STRING
LOCAL cFromName as STRING
LOCAL cFromAddress AS STRING

// Initialise the email addresses.

cToName := ""
cToAddress := ""
cFromName := ""
cFromAddress := ""

// Initialise the OLEAutoObject.

oMailMan := MailMan{"ChilkatMail2.ChilkatMailMan2.1"} // ProgId
IF oMailMan:fInit

// Unlock the component.

oMailMan:UnlockComponent("30-day trial")

// Set the SMTP server.

oMailMan:SmtpHost := "smtp.1und1.de"
oMailMan:SmtpPort := 25 // Usually Port 587 for StartTLS
oMailMan:SmtpUsername := "Test_112009(a)dsh-anklam.de"
oMailMan:SmtpPassword := "PW_Test_112009"
oMailMan:SmtpAuthMethod := "" // Automatic (Recommended)
oMailMan:StartTLS := 1

// Create the email.

oEmail := oMailMan:NewEmail()

oEmail:AddTo(cToName,cToAddress)
oEmail:Mailer := "Your system name"
oEmail:Subject := "Email Subject"
oEmail:Body := "Email Body"
oEmail:FromName := cFromName
oEmail:FromAddress := cFromAddress
oEmail:ReplyTo := oEmail:FromAddress
oEmail:BounceAddress := oEmail:FromAddress

// Send the email.

IF oMailMan:SendEmail(oEmail) = 1 // Success
? "Success"
ELSE
? oMailMan:LastErrorText
ENDIF

At a minimum, you need to distribute and register ChilkatMail_v7_9.dll.

I hope this helps.

Regards
Ted Rouen

"Gunter" <g.huebner(a)dsh-anklam.de> wrote in message
news:4bbd7583-e342-4f0b-adf1-f254e687f9f9(a)f20g2000vbl.googlegroups.com...
> Jon.
> I looked at Chilkat Software and I think its exact what I need.
> But how to use it in VO?
> I have no experience with using ActivX controls in VO. Can you give me
> an initial aid?
>
> Gunter

From: "Ted Rouen" tr AT harmonysoftware DOT com DOT on
Hi

Sorry, the line

oMailMan := MailMan{"ChilkatMail2.ChilkatMailMan2.1"} // ProgId

should be replaced with

oMailMan := IChilKatMailMan2{"ChilkatMail2.ChilkatMailMan2.1"} // ProgId

Regards
Ted Rouen

"Ted Rouen" <tr AT harmonysoftware DOT com DOT au> wrote in message
news:4b0c6ef6$0$28433$c30e37c6(a)pit-reader.telstra.net...
> Hi Gunter
>
> The way I got Chilkat to work was to use Automation Server:
>
> 1. Create an empty module.
> 2. select Tools, Automation Server
> 3. highlight "Chilkat Mail v7.9.0"
> 4. tick Include Containing Objects
> 5. select Show Interfaces
> 6. highlight "IChilKatMailMan2"
> 7. select Generate Source
>
> To use Chilkat to send an email :
>
> LOCAL oMailMan as IChilKatMailMan2
> LOCAL oEmail AS IChilkatEmail2
>
> LOCAL cToName as STRING
> LOCAL cToAddress AS STRING
> LOCAL cFromName as STRING
> LOCAL cFromAddress AS STRING
>
> // Initialise the email addresses.
>
> cToName := ""
> cToAddress := ""
> cFromName := ""
> cFromAddress := ""
>
> // Initialise the OLEAutoObject.
>
> oMailMan := MailMan{"ChilkatMail2.ChilkatMailMan2.1"} // ProgId
> IF oMailMan:fInit
>
> // Unlock the component.
>
> oMailMan:UnlockComponent("30-day trial")
>
> // Set the SMTP server.
>
> oMailMan:SmtpHost := "smtp.1und1.de"
> oMailMan:SmtpPort := 25 // Usually Port 587 for StartTLS
> oMailMan:SmtpUsername := "Test_112009(a)dsh-anklam.de"
> oMailMan:SmtpPassword := "PW_Test_112009"
> oMailMan:SmtpAuthMethod := "" // Automatic (Recommended)
> oMailMan:StartTLS := 1
>
> // Create the email.
>
> oEmail := oMailMan:NewEmail()
>
> oEmail:AddTo(cToName,cToAddress)
> oEmail:Mailer := "Your system name"
> oEmail:Subject := "Email Subject"
> oEmail:Body := "Email Body"
> oEmail:FromName := cFromName
> oEmail:FromAddress := cFromAddress
> oEmail:ReplyTo := oEmail:FromAddress
> oEmail:BounceAddress := oEmail:FromAddress
>
> // Send the email.
>
> IF oMailMan:SendEmail(oEmail) = 1 // Success
> ? "Success"
> ELSE
> ? oMailMan:LastErrorText
> ENDIF
>
> At a minimum, you need to distribute and register ChilkatMail_v7_9.dll.
>
> I hope this helps.
>
> Regards
> Ted Rouen
>
> "Gunter" <g.huebner(a)dsh-anklam.de> wrote in message
> news:4bbd7583-e342-4f0b-adf1-f254e687f9f9(a)f20g2000vbl.googlegroups.com...
>> Jon.
>> I looked at Chilkat Software and I think its exact what I need.
>> But how to use it in VO?
>> I have no experience with using ActivX controls in VO. Can you give me
>> an initial aid?
>>
>> Gunter
>