VishalMistry
17th November 2015, 07:53
Hi all,
I have created a session where the user can specify five purchase order numbers (orno is a file element array of domain tcorno). Once the user specifies the purchase orders and clicks on continue button, the system generates text file with same name as purchase order number and using the email id specified in address of that business partner, it simply sends the text file as attachment using the smtp service.
But while sending the mail the service returns -1 as return value and does not send mail.
I am able to send mails through another session without any problem.
Anybody can guide me if I am missing anything in the script ? Script attached.
Vishal
I have created a session where the user can specify five purchase order numbers (orno is a file element array of domain tcorno). Once the user specifies the purchase orders and clicks on continue button, the system generates text file with same name as purchase order number and using the email id specified in address of that business partner, it simply sends the text file as attachment using the smtp service.
But while sending the mail the service returns -1 as return value and does not send mail.
I am able to send mails through another session without any problem.
Anybody can guide me if I am missing anything in the script ? Script attached.
Vishal