Send mail to external id using send mail task in workflow
hello,
i am trying to send mail using send mail task in workflow for an external email address (yahoo).No pernr here it is associated .
IN scot, it shows it is transmitted,but i dont find any in my mail box.
But when i send it from business workplace, i can see the mail in my mail box.
Can you please help me in this regard.
Best Regards,
Saujanya.
Hi Saujanya,
When you send it from the workplace you also send it to your Yahoo mail-id? As far as I can see from you replies the problem lies outside of SAP. Maybe a SPAM filter which blocks the message. This could be due to the mail-id which sends the e-mail.
Regards,
Martin
Similar Messages
-
How to send email to external users using the distribution list from workflow
I have created distribution list in SO23 with external email addresses.
How I can use distribution list in "Send Mail component" or I should use another component?
It works fine for a single email address. And distribution list works fine when I use it via SBWP.Hi,
Take activity step instead of Mail step. User fm SO_NEW_DOCUMENT_ATT_SEND_API1 to send mail.
And use fm SO_DLI_READ_API1 to find list of user from distribution list. You can find how to use this fm in rule 30000012 -
How to send attachments in oracle workflow?
i want to send the attachment in the notifiaction mail and i am using workflow 2.6.1.5.2 .kindly help asap.
thanks.Hello,
Why don't you use the standard processing for PO output, there is a standard way to send po by mail as attachment.
Anyway if you need to link it with a workflow, you cannot use the "send mail" task from workflow builder. This kind of operation just can send notification withount attachment.
To send the po as attachment, you need to create your own task and method in a BOR object. I suggest you to start from the standard prosessing (CL_PD_PO_PROCESSING_BBP, method PROCESS_BBP_PO_MAI).
rgds,
Pierre -
E-mail out of Workflow from UWL over federated portals
Hello all,
We want to create an e-mail, containing a link to the portal. Is there a possible way for constructing the hyperlink since we are using the federated portal approach? (means this E-mail coming from the workflow of the producer Portal and should be send to the consumer Portal). As a result the link is dynamic and not static. Nevertheless the link should function in any of both possible cases (producer AND consumer portal).
Example for business case: User is signed on in Consumer portal but owns role/iView from ESS/MSS in producer portal over federated portal approach. The producer portal creates an e-mail and the hyperlink contained in it has to link to the task/UWL in the producer portal in spite of the fact that the user only owns direct log in in the consumer portal.
The E-Mail itself might be produced via an e-mail task in Workflow Builder or by using the function module SO_NEW_DOCUMENT_SEND_API1. The hyperlink should then be part of the parameter OBJECT_CONTENT of this function module.
Have anybody a good tip / answer for this ??
Thx
MarioAt this stage I run the workflow which reads the owner of the regarding customer and assign the email to this owner.(this step is working fine as expected). This workflow is written on E-mail entity and fires on Regarding field change of the email record.
Problem is, our business wants this email to be automatically removed from the support queue so that it should only sit in the newly assigned owner's queue (at the moment they are manually remove it from support queue.)
If this is where you are creating a queue item which is assigned to your support queue? If yes, you can assign this queue item to the owner of the record rather.
Regards, Abhishek Bakshi If you find this post helpful then please Vote as Helpful and Mark As Answer. Check my blog on https://mydynamicscrmblog.wordpress.com/ -
Send mail to external address using send mail step.
Hi all,
I have one question.
In a send mail step of workflow, when the recipient type is a Organizational Object and Org Unit, the mail is only sent to workplace? I would need to send the mail to external address from all users of Org Unit. Is possible it?
Thanks
Regards,
David.Hi,
1) In the Recipient type select the E-Mail address from the drop down
2) And give the email id (in the text box)
3) Then save & test it.
4) Once it execute goto t.code SOST and see the email entry.
5) If entry not found, the SCOT settings is not done then check with Basis Team
6) If found, select it and execute.
7) And check you email
Regards,
Surjith -
Sending mail to external e-mail id in workflow
Hi
I am trying to send a mail to external e-mail id in workflow,i selected recipient type as e-mail address and i gave the e-mail id.
But im not getting any mail.Please help me.First check via tcode SOST if your workflows sends the e-mail to the stack. If yes, you should see your e-mail in this transaction, with a yellow icon. If this is so, you need to configure SMTP via tcode SCOT. If no, there's a problem in your workflow (you might want to check the workflow log in this case, via tcode SWIA).
To configure SMTP, follow this link: http://help.sap.com/saphelp_nw70/helpdata/EN/2b/d925bf4b8a11d1894c0000e8323c4f/frameset.htm -
Reg : Issue for Sending of external email using SO_OBJECT_SEND
There is one issue while sending external email using SO_OBJECT_SEND functional module.
1. The body of the mail is also included as attachment.
I want to avoid the same.
Please anyone can give the solution.hi check this example ,
Sending mail with attachment report in Background
Content Author: Fernando Faian
I have read the hint about "Sending mail with attachment report".
It's great, but how can I make this function work in background??
I had that needed last year too. See attachment a function group with two functions. The second one has that functionality to send email or fax (SAP office) with attachment objects in background job using SO_ATTACHMENT_INSERT function.
Pay attention because its working with output list from spool converted to pdf.
=================================================================================
z_send_email_fax_global
FUNCTION-POOL z_gfaian_mail_fax. "MESSAGE-ID ..
WORK TABLE AREAS
TABLES: tsp01.
INTERNAL TABLES
DATA: lt_rec_tab LIKE STANDARD TABLE OF soos1 WITH HEADER LINE,
lt_note_text LIKE STANDARD TABLE OF soli WITH HEADER LINE,
lt_attachments LIKE STANDARD TABLE OF sood5 WITH HEADER LINE.
DATA: lt_objcont LIKE STANDARD TABLE OF soli WITH HEADER LINE,
lt_objhead LIKE STANDARD TABLE OF soli WITH HEADER LINE.
DATA: pdf_format LIKE STANDARD TABLE OF tline WITH HEADER LINE.
TYPES: BEGIN OF y_files,
file(60) TYPE c,
END OF y_files.
DATA: lt_files TYPE STANDARD TABLE OF y_files WITH HEADER LINE.
DATA: l_objcont LIKE soli OCCURS 0 WITH HEADER LINE.
DATA: l_objhead LIKE soli OCCURS 0 WITH HEADER LINE.
STRUCTURES
DATA: folder_id LIKE soodk,
object_id LIKE soodk,
link_folder_id LIKE soodk,
g_document LIKE sood4,
g_header_data LIKE sood2,
g_folmem_data LIKE sofm2,
g_header_data LIKE sood2,
g_receive_data LIKE soos6,
g_ref_document LIKE sood4,
g_new_parent LIKE soodk,
l_folder_id LIKE sofdk,
v_email(50).
DATA: hd_dat like sood1.
VARIABLES
DATA: client LIKE tst01-dclient,
name LIKE tst01-dname,
objtype LIKE rststype-type,
type LIKE rststype-type.
DATA: numbytes TYPE i,
arc_idx LIKE toa_dara,
pdfspoolid LIKE tsp01-rqident,
jobname LIKE tbtcjob-jobname,
jobcount LIKE tbtcjob-jobcount,
is_otf.
DATA: outbox_flag LIKE sonv-flag VALUE 'X',
store_flag LIKE sonv-flag,
delete_flag LIKE sonv-flag,
owner LIKE soud-usrnam,
on LIKE sonv-flag VALUE 'X',
sent_to_all LIKE sonv-flag,
g_authority LIKE sofa-usracc,
w_objdes LIKE sood4-objdes.
DATA: c_file LIKE rlgrap-filename,
n_spool(6) TYPE n.
DATA: cancel.
DATA: desired_type LIKE sood-objtp,
real_type LIKE sood-objtp,
attach_type LIKE sood-objtp,
otf LIKE sood-objtp VALUE 'OTF', " SAPscript Ausgabeformat
ali LIKE sood-objtp VALUE 'ALI'. " ABAP lists
CONSTANTS
CONSTANTS: ou_fol LIKE sofh-folrg VALUE 'O',
c_objtp LIKE g_document-objtp VALUE 'RAW',
c_file_ext LIKE g_document-file_ext VALUE 'TXT'.
=================================================================================
z_send_email_fax2
FUNCTION z_faian_mail_fax2.
""Interface local:
*" IMPORTING
*" REFERENCE(SRC_SPOOLID) LIKE TSP01-RQIDENT
*" REFERENCE(FAX_MAIL_NUMBER) TYPE SO_NAME
*" REFERENCE(HEADER_MAIL) TYPE SO_OBJ_DES
*" REFERENCE(OBJECT_TYPE) TYPE SO_ESCAPE
*" TABLES
*" LT_BODY_EMAIL STRUCTURE SOLI
*" EXCEPTIONS
*" ERR_NO_ABAP_SPOOLJOB
Fist part: Verify if the spool really exists
SELECT SINGLE * FROM tsp01 WHERE rqident = src_spoolid.
IF sy-subrc NE 0.
RAISE err_no_abap_spooljob. "doesn't exist
ELSE.
client = tsp01-rqclient.
name = tsp01-rqo1name.
CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
EXPORTING
authority = 'SP01'
client = client
name = name
part = 1
IMPORTING
type = type
objtype = objtype
EXCEPTIONS
fb_error = 1
fb_rsts_other = 2
no_object = 3
no_permission = 4
OTHERS = 5.
IF objtype(3) = 'OTF'.
desired_type = otf.
ELSE.
desired_type = ali.
ENDIF.
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
EXPORTING
rqident = src_spoolid
desired_type = desired_type
IMPORTING
real_type = real_type
TABLES
buffer = l_objcont
EXCEPTIONS
no_such_job = 14
type_no_match = 94
job_contains_no_data = 54
no_permission = 21
can_not_access = 21
read_error = 54.
IF sy-subrc EQ 0.
attach_type = real_type.
ENDIF.
CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
EXPORTING
owner = sy-uname
region = ou_fol
IMPORTING
folder_id = l_folder_id
EXCEPTIONS
OTHERS = 5.
fill out informations about the header of the email
CLEAR: g_document.
g_document-foltp = l_folder_id-foltp.
g_document-folyr = l_folder_id-folyr.
g_document-folno = l_folder_id-folno.
g_document-objtp = c_objtp.
g_document-objdes = header_mail.
g_document-file_ext = c_file_ext.
g_header_data-objdes = header_mail.
CALL FUNCTION 'SO_DOCUMENT_REPOSITORY_MANAGER'
EXPORTING
method = 'SAVE'
office_user = sy-uname
IMPORTING
authority = g_authority
TABLES
objcont = lt_body_email
attachments = lt_attachments
CHANGING
document = g_document
header_data = g_header_data
EXCEPTIONS
OTHERS = 1.
folder_id-objtp = l_folder_id-foltp.
folder_id-objyr = l_folder_id-folyr.
folder_id-objno = l_folder_id-folno.
object_id-objtp = c_objtp.
object_id-objyr = g_document-objyr.
object_id-objno = g_document-objno.
link_folder_id-objtp = l_folder_id-foltp.
link_folder_id-objyr = l_folder_id-folyr.
link_folder_id-objno = l_folder_id-folno.
REFRESH lt_rec_tab.
CLEAR lt_rec_tab.
lt_rec_tab-sel = 'X'.
lt_rec_tab-recesc = object_type. "This field for FAX/MAIL
lt_rec_tab-recnam = 'U-'.
lt_rec_tab-deliver = 'X'.
lt_rec_tab-not_deli = 'X'.
lt_rec_tab-read = 'X'.
lt_rec_tab-mailstatus = 'E'.
lt_rec_tab-adr_name = fax_mail_number.
lt_rec_tab-sortfield = fax_mail_number.
lt_rec_tab-recextnam = fax_mail_number.
lt_rec_tab-sortclass = '5'.
APPEND lt_rec_tab.
lt_rec_tab-recextnam = fax_mail_number.
lt_rec_tab-recesc = object_type.
lt_rec_tab-sndart = 'INT'.
lt_rec_tab-sndpri = 1.
APPEND lt_rec_tab.
lt_files-file = c_file.
APPEND lt_files.
begin of insertion by faianf01
hd_dat-objdes = header_mail.
CALL FUNCTION 'SO_ATTACHMENT_INSERT'
EXPORTING
object_id = object_id
attach_type = attach_type
object_hd_change = hd_dat
owner = sy-uname
TABLES
objcont = l_objcont
objhead = l_objhead
EXCEPTIONS
active_user_not_exist = 35
communication_failure = 71
object_type_not_exist = 17
operation_no_authorization = 21
owner_not_exist = 22
parameter_error = 23
substitute_not_active = 31
substitute_not_defined = 32
system_failure = 72
x_error = 1000.
IF sy-subrc > 0.
ENDIF.
end of insertion by faianf01
send email from SAPOFFICE
CALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
folder_id = folder_id
object_id = object_id
outbox_flag = outbox_flag
link_folder_id = link_folder_id
owner = sy-uname
check_send_authority = 'X'
TABLES
receivers = lt_rec_tab
note_text = lt_note_text
EXCEPTIONS
active_user_not_exist = 35
communication_failure = 71
component_not_available = 1
folder_no_authorization = 5
folder_not_exist = 6
forwarder_not_exist = 8
object_no_authorization = 13
object_not_exist = 14
object_not_sent = 15
operation_no_authorization = 21
owner_not_exist = 22
parameter_error = 23
substitute_not_active = 31
substitute_not_defined = 32
system_failure = 72
too_much_receivers = 73
user_not_exist = 35.
ENDIF.
ENDFUNCTION.
=================================================================================
z_send_email_fax
FUNCTION ZCBFS_SEND_MAIL.
""Interface local:
*" IMPORTING
*" REFERENCE(SRC_SPOOLID) LIKE TSP01-RQIDENT
*" REFERENCE(HEADER_MAIL) TYPE SO_OBJ_DES
*" TABLES
*" LIST_FAX_MAIL_NUMBER STRUCTURE SOLI
*" EXCEPTIONS
*" ERR_NO_ABAP_SPOOLJOB
DATA: vg_achou(1) TYPE n.
Fist part: Verify if the spool really exists
vg_achou = 1.
DO 60 TIMES.
SELECT SINGLE * FROM tsp01 WHERE rqident = src_spoolid.
IF sy-subrc IS INITIAL.
CLEAR vg_achou.
EXIT.
ELSE.
WAIT UP TO 1 SECONDS.
ENDIF.
ENDDO.
IF vg_achou = 1.
RAISE err_no_abap_spooljob. "doesn't exist
ENDIF.
client = tsp01-rqclient.
name = tsp01-rqo1name.
CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
EXPORTING
authority = 'SP01'
client = client
name = name
part = 1
IMPORTING
type = type
objtype = objtype
EXCEPTIONS
fb_error = 1
fb_rsts_other = 2
no_object = 3
no_permission = 4
OTHERS = 5.
IF objtype(3) = 'OTF'.
desired_type = otf.
ELSE.
desired_type = ali.
ENDIF.
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
EXPORTING
rqident = src_spoolid
desired_type = desired_type
IMPORTING
real_type = real_type
TABLES
buffer = l_objcont
EXCEPTIONS
no_such_job = 14
type_no_match = 94
job_contains_no_data = 54
no_permission = 21
can_not_access = 21
read_error = 54.
IF sy-subrc EQ 0.
attach_type = real_type.
ENDIF.
CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
EXPORTING
owner = sy-uname
region = ou_fol
IMPORTING
folder_id = l_folder_id
EXCEPTIONS
OTHERS = 5.
fill out informations about the header of the email
CLEAR: g_document.
g_document-foltp = l_folder_id-foltp.
g_document-folyr = l_folder_id-folyr.
g_document-folno = l_folder_id-folno.
g_document-objtp = c_objtp.
g_document-objdes = header_mail.
g_document-file_ext = c_file_ext.
g_header_data-objdes = header_mail.
CALL FUNCTION 'SO_DOCUMENT_REPOSITORY_MANAGER'
EXPORTING
method = 'SAVE'
office_user = sy-uname
IMPORTING
authority = g_authority
TABLES
attachments = lt_attachments
CHANGING
document = g_document
header_data = g_header_data
EXCEPTIONS
OTHERS = 1.
folder_id-objtp = l_folder_id-foltp.
folder_id-objyr = l_folder_id-folyr.
folder_id-objno = l_folder_id-folno.
object_id-objtp = c_objtp.
object_id-objyr = g_document-objyr.
object_id-objno = g_document-objno.
link_folder_id-objtp = l_folder_id-foltp.
link_folder_id-objyr = l_folder_id-folyr.
link_folder_id-objno = l_folder_id-folno.
REFRESH lt_rec_tab.
LOOP AT LIST_FAX_MAIL_NUMBER.
lt_rec_tab-recextnam = LIST_FAX_MAIL_NUMBER-LINE.
lt_rec_tab-recesc = 'U'.
lt_rec_tab-sndart = 'INT'.
lt_rec_tab-sndpri = 1.
APPEND lt_rec_tab.
ENDLOOP.
lt_files-file = c_file.
APPEND lt_files.
hd_dat-objdes = header_mail.
CALL FUNCTION 'SO_ATTACHMENT_INSERT'
EXPORTING
object_id = object_id
attach_type = attach_type
object_hd_change = hd_dat
owner = sy-uname
TABLES
objcont = l_objcont
objhead = l_objhead
EXCEPTIONS
active_user_not_exist = 35
communication_failure = 71
object_type_not_exist = 17
operation_no_authorization = 21
owner_not_exist = 22
parameter_error = 23
substitute_not_active = 31
substitute_not_defined = 32
system_failure = 72
x_error = 1000.
IF sy-subrc > 0.
ENDIF.
send email from SAPOFFICE
CALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
folder_id = folder_id
object_id = object_id
outbox_flag = outbox_flag
link_folder_id = link_folder_id
owner = sy-uname
TABLES
receivers = lt_rec_tab
note_text = lt_note_text
EXCEPTIONS
active_user_not_exist = 35
communication_failure = 71
component_not_available = 1
folder_no_authorization = 5
folder_not_exist = 6
forwarder_not_exist = 8
object_no_authorization = 13
object_not_exist = 14
object_not_sent = 15
operation_no_authorization = 21
owner_not_exist = 22
parameter_error = 23
substitute_not_active = 31
substitute_not_defined = 32
system_failure = 72
too_much_receivers = 73
user_not_exist = 35.
ENDFUNCTION.
=================================================================================
regards,
venkat. -
Can not send mail from PR Workflow to the approver
Dear all,
I have issues about send mail from PR Workflow to the approver.
Now when user create PR and the corresponding user can receive the workflow items in SBWP.
But no email from the user to approver.
If I assign authorization SAP_ALL to the user that create PR. The approver can recieve the workflow item PR in SBWP and email to their mail
Can you tell me about the authorization that can allow the user to send the workflow item PR in SBWP and email to the approver?
Now user can send mail to external and internal mail and I also configured the mail server in SCOT and can successfully send a mail to users in SO01 by manually creating a message.
Now the approver not receive any email but can receive a workflow item in SBWP
Regards,
PanneeDear all,
Thank you for all suppport, Now I can solve issues.
Regards,
Pannee -
Printing Long text in Send Mail Task
Hi All,
My requirement is to print the long text of particular error message in the send mail task, which will be sent to outlook.
for this i have an activity beforr the mail task, where i have filled the multiline parameter called 'TEXT' and this is exported to workflow also.
In my send mail task, in the body of the message, using insert expression i have inserted the multiline container 'TEXT' with the option of line break, so it came &TEXT##&.
But once the WF is executed , i checked the WF log and found that the mail is sent and i have checked the container 'TEXT' in my previous activity where the TEXT container has 10 lines.
But when i checked the mail in SOST the contents of TEXT is not getting printed.
What will be the issue?
Thanks and Regards,
Swaminathan@Rick
How is TEXT defined in the container? Is it passed in via the binding?
I think if at all you want to use the container element in the mail then binding is not necessary from workflow to task.
@Swaminathan PJ
the multiline container 'TEXT' with the option of line break, so it came &TEXT##&.
Try to print the entire text continuosly with out line breaks then it works. -
Sending the task TS00008267 to an e-mail address
First of all Hi to all.
I'm e new users of this forum.
I'm from italy.
I have this problem.
In my travel workflow i use to send all e-mail and all work-item to the users.
The system forward all task and email to the e-mail address present on the e-mail present in the transaction SU01 filed e-mail.
We to the automatic forward and the system work's fine.
Now the client want to change the system and send the task directly by the e-mail saved on the infotype 0105 subtype 0010.
I have a function that find the e-mail and put there into the workflow contenitor in one field define like this:
WFSYST-INITIATOR.
i have try to define this field like SOXNA-FULLNAME but only the e-mail are process correctly, the work-item not.
This client use lotus notes to approve the task.
There is someone that had my problem?
Sorry for my english...
MassimoIf you use [email protected] instead of a valid agent your workflow will not necessarily crash, but it will not work as intented and you will just create additional work for the workflow administrator (which may happen to be yourself).
There are at least two possible outcomes if you try to pass an e-mail address as the agent.
1) the workflow ends in status error since no agents were found for the work item
2) the work item is sent to all possible users for the relevant task. If your task is a general task that means it will be available for all users in your system.
You do not have to navigate all the way to the user name. Several different types of agents are possible, including
"US<SAP user name>"
"P <employee number>" (since you have connection to user in infotype 0105)
"S <position>" (again, possible due to infotype 0105)
"A <work group>"
SAP will find out who the relevant users are if the agent that is determined is either an employee, position, work group or even an organization unit. With the exception of work groups you need to have infotype 0105 for this to work.
You can have a direct relationship from user name to work group, so you don't <u>have to</u> have infotype 0105 for work groups. -
Dynamic 'Include Text' syntax not working in Send mail task.
Hi all,
I want to send some dynamic text via send mail task to agents.
I tried creating a standard text in SO10. In send mail task in Descriiption tab added the below syntax to call inculde text.
"INCLUDE ZTEST OBJECT TEXT ID ST LANGUAGE EN". This works and i can see the text in mail in my sap inbox.
Now when I try to add text using a variable as below it simply display the sytax and not the text in ZTEST.
"INCLUDE &VAR1& OBJECT TEXT ID ST LANGUAGE EN" *Where VAR1 = ZTEST.
Please let meknow if i am missing something.
Thanks
Edited by: Sunny80 on Oct 20, 2009 11:02 AM
Edited by: Sunny80 on Oct 20, 2009 11:04 AMHello ,
Please provide the details as how it is resolved so that others can follow.
thanks
srinivas. -
Configure different contacts in Send mail task
Hi experts,
please help in below doubt
How to configure the send mail task to use different contacts in different environment with environment variable ?
Thankshi ,
You can set your Recipient list in one variable then in send mail use can set that variable value in expression for
TOLine.
You can use below link;
http://stackoverflow.com/questions/5075073/send-email-to-dynamic-recipient-ssis-send-mail-task
Thanks
Please Mark This As Answer or vote for Helpful Post if this helps you to solve your question/problem. http://techequation.com -
Script task to convert output from a sql query into send mail task body formatting
SSIS 2008R2 Version
Code from script task
Microsoft SQL Server Integration Services Script Task
Write scripts using Microsoft Visual C# 2008.
The ScriptMain is the entry point class of the script.
using System;
using System.Data;
using Microsoft.SqlServer.Dts.Runtime;
using System.Windows.Forms;
namespace ST_29dd6843bd6c4aee9b1656c1bbf55ba8.csproj
[System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
#region VSTA generated code
enum ScriptResults
Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
#endregion
public void Main()
Variables varCollection = null;
string header = string.Empty;
string message = string.Empty;
Dts.VariableDispenser.LockForWrite("User::gsEmailMessage");
Dts.VariableDispenser.LockForWrite("User::gsWebserviceName");
Dts.VariableDispenser.LockForWrite("User::gsNoOfCallsInADay");
Dts.VariableDispenser.LockForWrite("User::gsCalledBySystem");
Dts.VariableDispenser.GetVariables(ref varCollection);
//Set the header message for the query result
if (varCollection["User::gsEmailMessage"].Value == string.Empty)
header = "Hi, Count is greater then 50 :\n\n";
//header = "Execute SQL task output sent using Send Email Task in SSIS:\n\n\n";
header += "----------------------------------------------------------------------------------------------------------------------" + "\n";
header += string.Format("{0}\t\t\t\t{1}\t\t{2}\n", "WebService Name", "No Of Calls In A Day", "Called By System");
header += "----------------------------------------------------------------------------------------------------------------------" + "\n";
varCollection["User::gsEmailMessage"].Value = header;
//Format the query result with tab delimiters
message = String.Format("<HTML><BODY><P>{0}</P><P>{1}</P><P>{2}</P></BODY></HTML>",
varCollection["User::gsWebserviceName"].Value,
varCollection["User::gsNoOfCallsInADay"].Value,
varCollection["User::gsCalledBySystem"].Value);
varCollection["User::gsEmailMessage"].Value = varCollection["User::gsEmailMessage"].Value + message + "\n";
Dts.TaskResult = (int)ScriptResults.Success;
Above code will return data in below format and then i send this output in aemail using send mail task.
Hi, count is greater then 50 :
WebService Name
No Of Calls In A Day Called By System
WebServiceone 1
Internetbutiken
WebServiceGetdetailstwo 1
Internetbutiken
Servicenamethree 2
MOB
As you can see above code is not in align as if we service name is shorter then 2nd column get disallign and its not look good.I need output should be like below.
Hi, count is greater then 50 :
WebService Name
No Of Calls In A Day Called By System
WebServiceone 1
Internetbutiken
WebServiceGetdetailstwo 1
Internetbutiken
Servicenamethree 2
MOB
Please suggest something...
Thanks
SR_MCTSSee code explained here
http://microsoft-ssis.blogspot.in/2013/08/sending-mail-within-ssis-part-2-script.html
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
This will not help.As I am not creating smtp connectin ,send from ,send to in script task.I am just creating email body from sql output. -
Hello!
I'm trying to set up a send mail task, but even after setting the taks properties or/and the server settings (SMTP server, e-mail address), I still get the following error message:
Failed to connect to email server: null. Reason: Could not connect to SMTP host: localhost, port: 25: com.adobe.idp.dsc.email.ConnectionFailedException: Failed to connect to email server: null. Reason: Could not connect to SMTP host: localhost, port: 25
Does anyone have any idea?
Thanks!If you are using Send with Document, you do not need to configure your email settings in (Services> ES2 LiveCycle Process Management> Server Settings> Email Settings). These Email Settings are for sending task assignment notifications for Workspace users.
Instead, configure the settings on the "Connection Settings" tab of the Send with Document service. (NOTE: You will not see this tab unless you choose the "All" button at the top of the properties sheet).
Uncheck "Use Global Settings" and fill in the SMTP information on that tab.
If Gmail those settings are probably:
SMTP Host: smtp.gmail.com
SMTP Port Number: 587
Check the box for SMTP Authentication.
SMTP User: your email address
SMTP Password: your password
SMTP Transport security: SSL
Hope this helps!
Diana -
Is it possible to create a new task for the send mail step of the workflow instead of using the standard task TS45308726-send mail?
Hello Binil,
I can't see why you would want to create another task. This task should be able to provide you with all you need.
Any way, it is definitely possible. All you have to do is to create a method in a class that will send the desired e-mail. Inside this method you can call any send e-mail function module (for example, SO_SEND_OBJECT or SO_OBJECT_SEND - I'm not sure of the order, but you should be able to find it). After that generate a task that calls this method (using transaction PFTC).
After that, you can insert this newly created task into your workflow template.
Regards,
Abdullah
Maybe you are looking for
-
the blue light on top of the printer blinks very fast and intermitenly. i cannot install the printer with wireless. I tried with the CD that came with the printer but the green install bar just stops and freezes. I have a 4 month old Dell laptop.
-
Problem in reading csv file in servlet
Hi everyone, I m getting an ClassCastExeption while importing a .csv file to databse... It works fine in case of .xls... I m using jxl from Jakarta...and the code is as follows... Thanks in advance.. FileItemFactory factory1 = new DiskFileItemFactory
-
Adobe Reader Blocked in Safari
It's been a while, but ever since I upadated to Safari 7.0.1 (or maybe even the version earlier), I've been unable to open any PDF documents inside of Safari. When I click on a link on Google linked to a PDF document, a grey page shows up with the me
-
FH087 - Remove open item management to GL Accounts
Dear All, I need to remove open item management to few GL Accounts. The balance is Zero now. I removed the open item management and try to save the GL Account and the error meesage showing with FH087 - You cannot change Open Item setting. Reques
-
I upgraded to ios7 on my iphone 4s and now many of my apps are prompting me to connect to itunes for push notifications. In most cases, i can just click ok to this prompt and carry on, but it is still a real nuisance. However with the app dropbox and