dbTalk Databases Forums  

xp_sendmail() does not return anything

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss xp_sendmail() does not return anything in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Fabian Knauf
 
Posts: n/a

Default xp_sendmail() does not return anything - 08-24-2009 , 12:17 PM






ASA 8.0.3.5574

Hi,

within one project we use xp_sendmail for sending some emails with
attachment. I'm sure this already worked correctly.

But something happend (I have no idea when or what) and xp_sendmail now
does nothing at all. We don't get a mail sent and we don't even get a
resonse. Our procedure just waits and waits and ....

How to find out what could be cause for that? Any Windows SP maybe?

Regards
Fabian

Reply With Quote
  #2  
Old   
Mark Johnston
 
Posts: n/a

Default Re: xp_sendmail() does not return anything - 08-25-2009 , 10:23 AM






Hi Fabian,

When you say that the procedure waits, do you mean that it's hanging on
the call to xp_sendmail? If you just call xp_startsmtp and xp_sendmail
from an interactive tool like dbisql, does the email get sent?

Mark Johnston

Fabian Knauf wrote:
Quote:
ASA 8.0.3.5574

Hi,

within one project we use xp_sendmail for sending some emails with
attachment. I'm sure this already worked correctly.

But something happend (I have no idea when or what) and xp_sendmail now
does nothing at all. We don't get a mail sent and we don't even get a
resonse. Our procedure just waits and waits and ....

How to find out what could be cause for that? Any Windows SP maybe?

Regards
Fabian

Reply With Quote
  #3  
Old   
Fabian Knauf
 
Posts: n/a

Default Re: xp_sendmail() does not return anything - 09-02-2009 , 10:49 AM



Hello,

has really nobody an idea?

As an additional information:
- we tried running the dbserver as a service on system account and also
on a useraccount
- xp_startmail() das not return an error, regardless which user and
password we use
- using xp_sendmail() with smtp works fine but sometimes we need to
attach a file and then smtp is not working

Any ideas?

Thanks
Fabian

Reply With Quote
  #4  
Old   
Jeff Albion [Sybase iAnywhere]
 
Posts: n/a

Default Re: xp_sendmail() does not return anything - 09-02-2009 , 11:15 AM



Fabian,

Fabian Knauf wrote:
Quote:
- using xp_sendmail() with smtp works fine but sometimes we need to
attach a file and then smtp is not working

Any ideas?
From: (Mark Culp)
http://forums.sybase.com/cgi-bin/web...42516da10ee200

ASA [8.0.x /] 9.0.x does not support the ability to send attachments if
you are using SMTP... but it can send attachments if you use MAPI.

In SA 10, xp_sendmail has been enhanced so that you can send attachments
using both SMTP and MAPI.

--
Jeff Albion, Sybase iAnywhere

iAnywhere Developer Community :
http://www.sybase.com/developer/libr...ere-techcorner
iAnywhere Documentation : http://www.ianywhere.com/developer/product_manuals
SQL Anywhere Patches and EBFs :
http://downloads.sybase.com/swd/summ...&timeframe =0
Report a Bug/Open a Case : http://case-express.sybase.com/cx/

Reply With Quote
  #5  
Old   
Breck Carter [TeamSybase]
 
Posts: n/a

Default Re: xp_sendmail() does not return anything - 09-03-2009 , 08:44 AM



Are you saying the return code is zero but it doesn't do anything?

These functions don't raise errors, they set return codes...

@return_code = CALL xp_startsmtp ( ...

Are you saying the return code is zero even when you pass invalid
parameter values?

Please show us the code that is not working.

Breck


On 2 Sep 2009 08:49:31 -0700, Fabian Knauf <fk2412 (AT) web (DOT) de> wrote:

Quote:
Hello,

has really nobody an idea?

As an additional information:
- we tried running the dbserver as a service on system account and also
on a useraccount
- xp_startmail() das not return an error, regardless which user and
password we use
- using xp_sendmail() with smtp works fine but sometimes we need to
attach a file and then smtp is not working

Any ideas?

Thanks
Fabian
--
Breck Carter http://sqlanywhere.blogspot.com/

RisingRoad SQL Anywhere and MobiLink Professional Services
breck.carter (AT) risingroad (DOT) com

Reply With Quote
  #6  
Old   
Claus Wagner
 
Posts: n/a

Default Re: xp_sendmail() does not return anything - 09-03-2009 , 09:19 AM



Jeff,

we use:

- xp_startsmtp and xp_sendmail to send mails without attachements: works
with no problems

- xp_startmail and xp_sendmail to send mails with attachements: doesn't work
as Fabian described (hangs in xp_sendmail with no return)

See answer to Breck with attached code.

Regards,
Claus Wagner



"Jeff Albion [Sybase iAnywhere]" <firstname.lastname (AT) ianywhere (DOT) com> schrieb
im Newsbeitrag news:4a9e9a0f$1 (AT) forums-1-dub (DOT) ..
Quote:
Fabian,

Fabian Knauf wrote:
- using xp_sendmail() with smtp works fine but sometimes we need to
attach a file and then smtp is not working

Any ideas?

From: (Mark Culp)
http://forums.sybase.com/cgi-bin/web...42516da10ee200

ASA [8.0.x /] 9.0.x does not support the ability to send attachments if
you are using SMTP... but it can send attachments if you use MAPI.

In SA 10, xp_sendmail has been enhanced so that you can send attachments
using both SMTP and MAPI.

--
Jeff Albion, Sybase iAnywhere

iAnywhere Developer Community :
http://www.sybase.com/developer/libr...ere-techcorner
iAnywhere Documentation :
http://www.ianywhere.com/developer/product_manuals
SQL Anywhere Patches and EBFs :
http://downloads.sybase.com/swd/summ...&timeframe =0
Report a Bug/Open a Case : http://case-express.sybase.com/cx/

Reply With Quote
  #7  
Old   
Jeff Albion [Sybase iAnywhere]
 
Posts: n/a

Default Re: xp_sendmail() does not return anything - 09-04-2009 , 08:55 AM



Claus,

Claus Wagner wrote:
Quote:
- xp_startmail and xp_sendmail to send mails with attachements: doesn't work
as Fabian described (hangs in xp_sendmail with no return)
Yes, and Fabian posted the current version as:

"ASA 8.0.3.5574"

which does not support sending attachments via SMTP as Mark Culp
originally wrote. 8.0.3 is also out of engineering support, so the
behaviour is the behaviour at this point - there will not be any further
EBFs on this version.

If the difference between xp_sendmail working and not working is the
presence of an attachment, then it's clear what's causing the hang
condition. I'm skeptical of Fabian's suggestion that this 'used to work'
- our understanding is that it never should have.

Regards,

--
Jeff Albion, Sybase iAnywhere

iAnywhere Developer Community :
http://www.sybase.com/developer/libr...ere-techcorner
iAnywhere Documentation : http://www.ianywhere.com/developer/product_manuals
SQL Anywhere Patches and EBFs :
http://downloads.sybase.com/swd/summ...&timeframe =0
Report a Bug/Open a Case : http://case-express.sybase.com/cx/

Reply With Quote
  #8  
Old   
Fabian Knauf
 
Posts: n/a

Default Re: xp_sendmail() does not return anything - 09-04-2009 , 11:39 AM



Hi Jeff,

Quote:
Yes, and Fabian posted the current version as:
"ASA 8.0.3.5574"
which does not support sending attachments via SMTP as Mark Culp
originally wrote.
Beleive me: I know that and I never wrote that we tried sending
attachments with smtp!

We normaly send emails WITHOUT attachment with smtp (xp_startsmtp()),
and in the cases we want an attachment we use MAPI (xp_startmail()).

Both versions worked!

But since I don't really know when, the following xp_sendmail() returns
nothing at all.

You can have a look at the code Claus attached at his post to Breck.
There you can see the difference in our two different email-functions.


Quote:
8.0.3 is also out of engineering support
I also know this one - but my question was not to get a new EBF, but
maybe an idea what could have caused our originally working function not
work anymore.


Fabian

Reply With Quote
  #9  
Old   
Jeff Albion [Sybase iAnywhere]
 
Posts: n/a

Default Re: xp_sendmail() does not return anything - 09-04-2009 , 06:41 PM



Hi Fabian,

Fabian Knauf wrote:
Quote:
We normaly send emails WITHOUT attachment with smtp (xp_startsmtp()),
and in the cases we want an attachment we use MAPI (xp_startmail()).
My apologies, I had misread Claus' last message - I had read over the
part where you were starting MAPI in the attachment condition. I had
also read this message from yourself:

Quote:
- using xp_sendmail() with smtp works fine but sometimes we need to
attach a file and then smtp is not working
Which gave me the impression you were trying this operation over SMTP
still. I assume this was to read 'MAPI'?

Quote:
I also know this one - but my question was not to get a new EBF, but
maybe an idea what could have caused our originally working function not
work anymore.
You might want to open a technical support case then looking for
workarounds / help with diagnostics - was there a change in the MAPI
server, perhaps? Change in the EBF level?

Regards,

--
Jeff Albion, Sybase iAnywhere

iAnywhere Developer Community :
http://www.sybase.com/developer/libr...ere-techcorner
iAnywhere Documentation : http://www.ianywhere.com/developer/product_manuals
SQL Anywhere Patches and EBFs :
http://downloads.sybase.com/swd/summ...&timeframe =0
Report a Bug/Open a Case : http://case-express.sybase.com/cx/

Reply With Quote
  #10  
Old   
Fabian Knauf
 
Posts: n/a

Default Re: xp_sendmail() does not return anything - 09-17-2009 , 03:10 AM



Am Hi,

just for information:
I created a new Administrator user on the server and I run the DB
service as this user now. And it works again!

Regards
Florian

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.