Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

Hi
I always used the following structure on ASA9:

...
CALL xp_startsmtp('My Name<myname@domain.com>','localhost' );
...

But on SA12 it don't works (error 104) ! .... only works the semplified version (without angle bracket):

...
CALL xp_startsmtp('myname@domain.com','localhost' );
...

Any suggestions ?

asked 28 Dec '12, 04:03

NCister's gravatar image

NCister
211111219
accept rate: 0%

edited 28 Dec '12, 04:53

Volker%20Barth's gravatar image

Volker Barth
40.2k361550822


Since you are using v9 so far, you seem to be faced with changed behaviour in newer versions:

AFAIK, xp_start_smtp() has been enhanced in v10 to include a bunch of additional parameters, and one of them is "smtp_sender_name". So I guess you can use "smtp_sender_name = My Name" to add the desired alias for the e-mail address, something like:

CALL xp_startsmtp( smtp_sender = 'myname@domain.com',
                   smtp_server = 'localhost',
                   smtp_sender_name = 'My Name' );
permanent link

answered 28 Dec '12, 04:49

Volker%20Barth's gravatar image

Volker Barth
40.2k361550822
accept rate: 34%

edited 28 Dec '12, 04:54

Comment Text Removed
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×35
×13
×10

question asked: 28 Dec '12, 04:03

question was seen: 3,165 times

last updated: 28 Dec '12, 15:12