on 2013 Nov 21 4:42 AM
BEGIN DECLARE content LONG VARCHAR; set content='select * from shipper'; CALL xp_startsmtp( smtp_sender = 'mfkpie8@163.com', smtp_server='smtp.163.com', smtp_port='25', timeout=240, smtp_auth_username='mfkpie8', smtp_auth_password='password'); CALL xp_sendmail( recipient='131t@qq.com', subject='ssssssss',"message"=content,query='select * from shipper'); call xp_stopmail(); end
question: But did not receive my email, just received ‘select * from shipper',Don't have any data
Request clarification before answering.
This is expected behaviour - confine the docs on the query parameter:
query
This LONG VARCHAR is provided for Transact-SQL compatibility. It is not used by SQL Anywhere. The default is NULL.
So I guess you will have to either
The cited doc page shows some samples on the usage.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try This:
CALL xp_sendmail( recipient='Sales Group', subject='New Pricing', include_file = 'C:\\DOCS\\PRICES.DOC' );
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
16 | |
12 | |
7 | |
7 | |
4 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.