Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Sending Mail (Lotus Notes) within Power Builder

2 posts in Objects Last posting was on 2002-11-28 12:19:03.0Z
Tania_Molina Posted on 2002-11-28 12:16:48.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: Tania_Molina
Date: Thu, 28 Nov 2002 07:16:48 -0500
Subject: Sending Mail (Lotus Notes) within Power Builder
Lines: 51
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <364_D9D4AB699451B539004374A885256C7F.004374EB85256C7F@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.objects:732
Article PK: 713300

Hi,

I'm trying to send a mail from my application, I have Lotus Notes.

This is my code:

mSes = Create mailSession

mRet = mSes.mailLogon("user","pwd",mailNewSession!)

IF mRet<>mailReturnSuccess! THEN
MessageBox ("Mail","Logon failed")
RETURN
END IF

mAttach.Filename = "C:\log.txt"
mAttach.Pathname = "C:\log.txt"

mMsg.AttachmentFile[1] = mAttach

mMsg.Subject = "Test"


mMsg.Recipient[1].Name = "xxx@hotmail.com"
mMsg.Recipient[1].Address = "xxx@hotmail.com"

mRet = mSes.mailSend(mMsg)

IF mRet <> mailReturnSuccess! THEN
MessageBox("Mail",'Sending mail failed.')
RETURN
END IF

mSes.mailLogoff()

DESTROY mSes


When it starts Lotus Notes, it asked me for the password in writting it in
the logon session.

Then it creates the mail, writes the address and attach the fail, but
doesn't send it, I have tu click in the send button.

What can be the problem?

Thanks

Tania Molina

tania_molina@baxter.com


Tania Posted on 2002-11-28 12:19:03.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: Tania
Date: Thu, 28 Nov 2002 07:19:03 -0500
Subject: Re: Sending Mail (Lotus Notes) within Power Builder
Lines: 7
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <364_8BB991338C40B66B0043A99E85256C7F.004374FE85256C7F@webforums>
References: <364_D9D4AB699451B539004374A885256C7F.004374EB85256C7F@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.objects:731
Article PK: 713301

Sorry I've forgotten something. I have Lotus Notes, but probably the final
users of may app, won't have this mail service. Will I have problems with
other mails servers??

Thanks again

Tania