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.

Creating a link in email via mailpeice object.

7 posts in General Discussion (old) Last posting was on 2000-03-30 19:47:24.0Z
^*^GothicCastle^*^ Posted on 2000-03-28 16:57:12.0Z
Newsgroups: sybase.public.easerver
Date: Tue, 28 Mar 2000 17:57:12 +0100
From: ^*^GothicCastle^*^ <^*^GothicCastle^*^@hotmail.com>
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Creating a link in email via mailpeice object.
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 13
NNTP-Posting-Host: tnt-14-132.easynet.co.uk 212.134.24.132
Message-ID: <347_38E0E468.B443BB85@hotmail.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25469
Article PK: 155556

Hi,

Having some problems creating a link in my email. All it does at the
moment is writes out the html code not the link. I've tried setting
variables that contain the html code and calling them in the mp.body but
still no joy

I have spoken to Sybase UK regarding the limitations of the mailpeice
object and I know they are looking at extending this object in time to
come. I'm just curious if this is possible at present?

Michael, Larry any ideas on this one...?

Davlon


Michael F. Nicewarner [TeamSybase] Posted on 2000-03-29 19:16:45.0Z
Newsgroups: sybase.public.easerver
From: "Michael F. Nicewarner [TeamSybase]" <mike.nicewarner@ibpinc.com>
Subject: Re: Creating a link in email via mailpeice object.
Date: Wed, 29 Mar 2000 13:16:45 -0600
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: secure.ibpinc.com 198.133.192.2
Message-ID: <347_a#Rl0Pbm$GA.298@forums.sybase.com>
References: <347_38E0E468.B443BB85@hotmail.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25332
Article PK: 155431

I have embedded links in my email bodies and it really depends on the client
whether or not the link is a "clickable" item. Just put the HTML tags (<a
href="myurl.stm">Click me!</a>) around it and see what the client does with
it.

--

Michael F. Nicewarner [TeamSybase]
mailto:mike.nicewarner@ibpinc.com
http://www.datamodel.org

^*^GothicCastle^*^ <^*^GothicCastle^*^@hotmail.com> wrote in message
news:38E0E468.B443BB85@hotmail.com...
> Hi,
>
> Having some problems creating a link in my email. All it does at the
> moment is writes out the html code not the link. I've tried setting
> variables that contain the html code and calling them in the mp.body but
> still no joy
>
> I have spoken to Sybase UK regarding the limitations of the mailpeice
> object and I know they are looking at extending this object in time to
> come. I'm just curious if this is possible at present?
>
> Michael, Larry any ideas on this one...?
>
> Davlon
>


^*^GothicCastle^*^ Posted on 2000-03-29 19:29:19.0Z
Newsgroups: sybase.public.easerver
Date: Wed, 29 Mar 2000 20:29:19 +0100
From: ^*^GothicCastle^*^ <^*^GothicCastle^*^@hotmail.com>
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: Creating a link in email via mailpeice object.
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 45
NNTP-Posting-Host: tnt-14-236.easynet.co.uk 212.134.24.236
Message-ID: <347_38E2598F.500CBEA7@hotmail.com>
References: <347_38E0E468.B443BB85@hotmail.com> <347_a#Rl0Pbm$GA.298@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25328
Article PK: 154294

Michael,

Thanks for the reply. I've tried this and I'm viewing this through Outlook 97. I
presumed that if it didn't work in this it wouldn't work elsewhere.

This is what I've tried:

var elink = (<A href=http://inetdev/HFBWoking/index.htm>Click here!</A>);
mp.body = ("Dear ......" + link);

I then get an 'invalid expression error' error and can't access the page.

I then tried:
var elink = ("<A href=http://inetdev/HFBWoking/index.htm>Click here!</A>");
mp.body = ("Dear ......" + link);

This allows the script the run but the email returned displays:
<A href=http://www.http://inetdev/HFBWoking/index.htm>Click here!</A> at the
bottom of the page.

Any further ideas?

davlon

"Michael F. Nicewarner [TeamSybase]" wrote:

> I have embedded links in my email bodies and it really depends on the client
> whether or not the link is a "clickable" item. Just put the HTML tags (<a
> href="myurl.stm">Click me!</a>) around it and see what the client does with
> it.
>
> --
>
> Michael F. Nicewarner [TeamSybase]
> mailto:mike.nicewarner@ibpinc.com
> http://www.datamodel.org
>
> ^*^GothicCastle^*^ <^*^GothicCastle^*^@hotmail.com> wrote in message
> news:38E0E468.B443BB85@hotmail.com...
> > Hi,
> >
> > Having some problems creating a link in my email. All it does at the
> > moment is writes out the html code not the link. I've tried setting
> > variables that contain the html code and calling them in the mp.body but
> > still no joy
> >
> > I have spoken to Sybase UK regarding the limitations of the mailpeice
> > object and I know they are looking at extending this object in time to
> > come. I'm just curious if this is possible at present?
> >
> > Michael, Larry any ideas on this one...?
> >
> > Davlon
> >


Michael F. Nicewarner [TeamSybase] Posted on 2000-03-30 15:48:43.0Z
Newsgroups: sybase.public.easerver
From: "Michael F. Nicewarner [TeamSybase]" <mike.nicewarner@ibpinc.com>
Subject: Re: Creating a link in email via mailpeice object.
Date: Thu, 30 Mar 2000 09:48:43 -0600
Lines: 88
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: secure.ibpinc.com 198.133.192.2
Message-ID: <347_yXziPAmm$GA.276@forums.sybase.com>
References: <347_38E0E468.B443BB85@hotmail.com> <347_a#Rl0Pbm$GA.298@forums.sybase.com> <347_38E2598F.500CBEA7@hotmail.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25228
Article PK: 155352

OK, the first version wouldn't work because you used parens instead of
quotes.
The second version needed double quotes around the href string.
Try this:
var elink = '<A href="http://inetdev/HFBWoking/index.htm">Click here!</A>';
mp.body = 'Dear .....' + elink;

I don't remember which version of Outlook started supporting HTML links. I
have Outlook 2000 and it automatically parses links. Unfortunately, it
messes up things sometimes because it assumes something is a link when it
isn't.
Is your Outlook highlighting the HTML and making it a link, even though it
is displaying more than just "Click here!"?

--

Michael F. Nicewarner [TeamSybase]
mailto:mike.nicewarner@ibpinc.com
http://www.datamodel.org

^*^GothicCastle^*^ <^*^GothicCastle^*^@hotmail.com> wrote in message
news:38E2598F.500CBEA7@hotmail.com...
> Michael,
>
> Thanks for the reply. I've tried this and I'm viewing this through Outlook
97. I
> presumed that if it didn't work in this it wouldn't work elsewhere.
>
> This is what I've tried:
>
> var elink = (<A href=http://inetdev/HFBWoking/index.htm>Click here!</A>);
> mp.body = ("Dear ......" + link);
>
> I then get an 'invalid expression error' error and can't access the page.
>
> I then tried:
> var elink = ("<A href=http://inetdev/HFBWoking/index.htm>Click
here!</A>");
> mp.body = ("Dear ......" + link);
>
> This allows the script the run but the email returned displays:
> <A href=http://www.http://inetdev/HFBWoking/index.htm>Click here!</A> at
the
> bottom of the page.
>
> Any further ideas?
>
> davlon
>
>
> "Michael F. Nicewarner [TeamSybase]" wrote:
>
> > I have embedded links in my email bodies and it really depends on the
client
> > whether or not the link is a "clickable" item. Just put the HTML tags
(<a
> > href="myurl.stm">Click me!</a>) around it and see what the client does
with
> > it.
> >
> > --
> >
> > Michael F. Nicewarner [TeamSybase]
> > mailto:mike.nicewarner@ibpinc.com
> > http://www.datamodel.org
> >
> > ^*^GothicCastle^*^ <^*^GothicCastle^*^@hotmail.com> wrote in message
> > news:38E0E468.B443BB85@hotmail.com...
> > > Hi,
> > >
> > > Having some problems creating a link in my email. All it does at the
> > > moment is writes out the html code not the link. I've tried setting
> > > variables that contain the html code and calling them in the mp.body
but
> > > still no joy
> > >
> > > I have spoken to Sybase UK regarding the limitations of the mailpeice
> > > object and I know they are looking at extending this object in time to
> > > come. I'm just curious if this is possible at present?
> > >
> > > Michael, Larry any ideas on this one...?
> > >
> > > Davlon
> > >
>


^*^GothicCastle^*^ Posted on 2000-03-30 16:36:35.0Z
Newsgroups: sybase.public.easerver
Date: Thu, 30 Mar 2000 17:36:35 +0100
From: ^*^GothicCastle^*^ <^*^GothicCastle^*^@hotmail.com>
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: Creating a link in email via mailpeice object.
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 84
NNTP-Posting-Host: tnt-14-15.easynet.co.uk 212.134.24.15
Message-ID: <347_38E38292.B45A9376@hotmail.com>
References: <347_38E0E468.B443BB85@hotmail.com> <347_a#Rl0Pbm$GA.298@forums.sybase.com> <347_38E2598F.500CBEA7@hotmail.com> <347_yXziPAmm$GA.276@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25219
Article PK: 228487

Michael,

I've tried this and it it does is actually writes the hard code on the email, it
doesn't create a link at all. I'm only running Outlook 97 but seeing as I'm
sending out a confirmation e-mail I'm concerned it won't work for most people
using a standard office suite.

I upgrading to Outlook 98 as I type so I'll try that and see what happens....

Davlon.

"Michael F. Nicewarner [TeamSybase]" wrote:

> OK, the first version wouldn't work because you used parens instead of
> quotes.
> The second version needed double quotes around the href string.
> Try this:
> var elink = '<A href="http://inetdev/HFBWoking/index.htm">Click here!</A>';
> mp.body = 'Dear .....' + elink;
>
> I don't remember which version of Outlook started supporting HTML links. I
> have Outlook 2000 and it automatically parses links. Unfortunately, it
> messes up things sometimes because it assumes something is a link when it
> isn't.
> Is your Outlook highlighting the HTML and making it a link, even though it
> is displaying more than just "Click here!"?
>
> --
>
> Michael F. Nicewarner [TeamSybase]
> mailto:mike.nicewarner@ibpinc.com
> http://www.datamodel.org
>
> ^*^GothicCastle^*^ <^*^GothicCastle^*^@hotmail.com> wrote in message
> news:38E2598F.500CBEA7@hotmail.com...
> > Michael,
> >
> > Thanks for the reply. I've tried this and I'm viewing this through Outlook
> 97. I
> > presumed that if it didn't work in this it wouldn't work elsewhere.
> >
> > This is what I've tried:
> >
> > var elink = (<A href=http://inetdev/HFBWoking/index.htm>Click here!</A>);
> > mp.body = ("Dear ......" + link);
> >
> > I then get an 'invalid expression error' error and can't access the page.
> >
> > I then tried:
> > var elink = ("<A href=http://inetdev/HFBWoking/index.htm>Click
> here!</A>");
> > mp.body = ("Dear ......" + link);
> >
> > This allows the script the run but the email returned displays:
> > <A href=http://www.http://inetdev/HFBWoking/index.htm>Click here!</A> at
> the
> > bottom of the page.
> >
> > Any further ideas?
> >
> > davlon
> >
> >
> > "Michael F. Nicewarner [TeamSybase]" wrote:
> >
> > > I have embedded links in my email bodies and it really depends on the
> client
> > > whether or not the link is a "clickable" item. Just put the HTML tags
> (<a
> > > href="myurl.stm">Click me!</a>) around it and see what the client does
> with
> > > it.
> > >
> > > --
> > >
> > > Michael F. Nicewarner [TeamSybase]
> > > mailto:mike.nicewarner@ibpinc.com
> > > http://www.datamodel.org
> > >
> > > ^*^GothicCastle^*^ <^*^GothicCastle^*^@hotmail.com> wrote in message
> > > news:38E0E468.B443BB85@hotmail.com...
> > > > Hi,
> > > >
> > > > Having some problems creating a link in my email. All it does at the
> > > > moment is writes out the html code not the link. I've tried setting
> > > > variables that contain the html code and calling them in the mp.body
> but
> > > > still no joy
> > > >
> > > > I have spoken to Sybase UK regarding the limitations of the mailpeice
> > > > object and I know they are looking at extending this object in time to
> > > > come. I'm just curious if this is possible at present?
> > > >
> > > > Michael, Larry any ideas on this one...?
> > > >
> > > > Davlon
> > > >
> >


^*^GothicCastle^*^ Posted on 2000-03-30 19:47:24.0Z
Newsgroups: sybase.public.easerver
Date: Thu, 30 Mar 2000 20:47:24 +0100
From: ^*^GothicCastle^*^ <^*^GothicCastle^*^@hotmail.com>
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: Creating a link in email via mailpeice object.
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 99
NNTP-Posting-Host: du-013-0211.freeuk.com 212.126.150.211
Message-ID: <347_38E3AF4B.D94D73A@hotmail.com>
References: <347_38E0E468.B443BB85@hotmail.com> <347_a#Rl0Pbm$GA.298@forums.sybase.com> <347_38E2598F.500CBEA7@hotmail.com> <347_yXziPAmm$GA.276@forums.sybase.com> <347_38E38292.B45A9376@hotmail.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25196
Article PK: 228469

Ok, looks like it's an Outlook version issue. I've started using Hotmail as an
e-mail testing board and the link shows up nicely.

Umm, obviously tad concerned about the use of PD e-mail script on users who have
older versions of e-mail programs but at least it works I suppose...

Oh well can't have everything... :)

Thanks for the help Michael, I do appreciate it.

Davlon

^*^GothicCastle^*^ wrote:

> Michael,
>
> I've tried this and it it does is actually writes the hard code on the email, it
> doesn't create a link at all. I'm only running Outlook 97 but seeing as I'm
> sending out a confirmation e-mail I'm concerned it won't work for most people
> using a standard office suite.
>
> I upgrading to Outlook 98 as I type so I'll try that and see what happens....
>
> Davlon.
>
> "Michael F. Nicewarner [TeamSybase]" wrote:
>
> > OK, the first version wouldn't work because you used parens instead of
> > quotes.
> > The second version needed double quotes around the href string.
> > Try this:
> > var elink = '<A href="http://inetdev/HFBWoking/index.htm">Click here!</A>';
> > mp.body = 'Dear .....' + elink;
> >
> > I don't remember which version of Outlook started supporting HTML links. I
> > have Outlook 2000 and it automatically parses links. Unfortunately, it
> > messes up things sometimes because it assumes something is a link when it
> > isn't.
> > Is your Outlook highlighting the HTML and making it a link, even though it
> > is displaying more than just "Click here!"?
> >
> > --
> >
> > Michael F. Nicewarner [TeamSybase]
> > mailto:mike.nicewarner@ibpinc.com
> > http://www.datamodel.org
> >
> > ^*^GothicCastle^*^ <^*^GothicCastle^*^@hotmail.com> wrote in message
> > news:38E2598F.500CBEA7@hotmail.com...
> > > Michael,
> > >
> > > Thanks for the reply. I've tried this and I'm viewing this through Outlook
> > 97. I
> > > presumed that if it didn't work in this it wouldn't work elsewhere.
> > >
> > > This is what I've tried:
> > >
> > > var elink = (<A href=http://inetdev/HFBWoking/index.htm>Click here!</A>);
> > > mp.body = ("Dear ......" + link);
> > >
> > > I then get an 'invalid expression error' error and can't access the page.
> > >
> > > I then tried:
> > > var elink = ("<A href=http://inetdev/HFBWoking/index.htm>Click
> > here!</A>");
> > > mp.body = ("Dear ......" + link);
> > >
> > > This allows the script the run but the email returned displays:
> > > <A href=http://www.http://inetdev/HFBWoking/index.htm>Click here!</A> at
> > the
> > > bottom of the page.
> > >
> > > Any further ideas?
> > >
> > > davlon
> > >
> > >
> > > "Michael F. Nicewarner [TeamSybase]" wrote:
> > >
> > > > I have embedded links in my email bodies and it really depends on the
> > client
> > > > whether or not the link is a "clickable" item. Just put the HTML tags
> > (<a
> > > > href="myurl.stm">Click me!</a>) around it and see what the client does
> > with
> > > > it.
> > > >
> > > > --
> > > >
> > > > Michael F. Nicewarner [TeamSybase]
> > > > mailto:mike.nicewarner@ibpinc.com
> > > > http://www.datamodel.org
> > > >
> > > > ^*^GothicCastle^*^ <^*^GothicCastle^*^@hotmail.com> wrote in message
> > > > news:38E0E468.B443BB85@hotmail.com...
> > > > > Hi,
> > > > >
> > > > > Having some problems creating a link in my email. All it does at the
> > > > > moment is writes out the html code not the link. I've tried setting
> > > > > variables that contain the html code and calling them in the mp.body
> > but
> > > > > still no joy
> > > > >
> > > > > I have spoken to Sybase UK regarding the limitations of the mailpeice
> > > > > object and I know they are looking at extending this object in time to
> > > > > come. I'm just curious if this is possible at present?
> > > > >
> > > > > Michael, Larry any ideas on this one...?
> > > > >
> > > > > Davlon
> > > > >
> > >


^*^GothicCastle^*^ Posted on 2000-03-29 19:42:28.0Z
Newsgroups: sybase.public.easerver
Date: Wed, 29 Mar 2000 20:42:28 +0100
From: ^*^GothicCastle^*^ <^*^GothicCastle^*^@hotmail.com>
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: Creating a link in email via mailpeice object.
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 56
NNTP-Posting-Host: tnt-14-236.easynet.co.uk 212.134.24.236
Message-ID: <347_38E25CA4.13C9242@hotmail.com>
References: <347_38E0E468.B443BB85@hotmail.com> <347_a#Rl0Pbm$GA.298@forums.sybase.com> <347_38E2598F.500CBEA7@hotmail.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25323
Article PK: 155430

OK, been playing around now for a little while and I've got a wierd result. If I set
a variable as a document.writeln and then call it in my mp.body it prints the link
on the web page it is sent from and returns a null in the email received where the
code should be displaying the link.

Hmm, sure is wierd...

^*^GothicCastle^*^ wrote:

> Michael,
>
> Thanks for the reply. I've tried this and I'm viewing this through Outlook 97. I
> presumed that if it didn't work in this it wouldn't work elsewhere.
>
> This is what I've tried:
>
> var elink = (<A href=http://inetdev/HFBWoking/index.htm>Click here!</A>);
> mp.body = ("Dear ......" + link);
>
> I then get an 'invalid expression error' error and can't access the page.
>
> I then tried:
> var elink = ("<A href=http://inetdev/HFBWoking/index.htm>Click here!</A>");
> mp.body = ("Dear ......" + link);
>
> This allows the script the run but the email returned displays:
> <A href=http://www.http://inetdev/HFBWoking/index.htm>Click here!</A> at the
> bottom of the page.
>
> Any further ideas?
>
> davlon
>
> "Michael F. Nicewarner [TeamSybase]" wrote:
>
> > I have embedded links in my email bodies and it really depends on the client
> > whether or not the link is a "clickable" item. Just put the HTML tags (<a
> > href="myurl.stm">Click me!</a>) around it and see what the client does with
> > it.
> >
> > --
> >
> > Michael F. Nicewarner [TeamSybase]
> > mailto:mike.nicewarner@ibpinc.com
> > http://www.datamodel.org
> >
> > ^*^GothicCastle^*^ <^*^GothicCastle^*^@hotmail.com> wrote in message
> > news:38E0E468.B443BB85@hotmail.com...
> > > Hi,
> > >
> > > Having some problems creating a link in my email. All it does at the
> > > moment is writes out the html code not the link. I've tried setting
> > > variables that contain the html code and calling them in the mp.body but
> > > still no joy
> > >
> > > I have spoken to Sybase UK regarding the limitations of the mailpeice
> > > object and I know they are looking at extending this object in time to
> > > come. I'm just curious if this is possible at present?
> > >
> > > Michael, Larry any ideas on this one...?
> > >
> > > Davlon
> > >