Email addresses as parameters.
Hi,
I know this should really be in the SQL forum…but it is SQL in BIP, so I thought I would try it here first!
I have a report with a parameter for an email address, the parameter is referenced within the sql statement as a variable (&p_email_address). This however causes the query to fail:
SQLException java.sql.SQLException: ORA-04054: database link DOMAIN.COM does not exist
I have also wrapped the variable in quotes (‘&p_email_address’), this then returns &p_email_address in the output!
Can anyone shed some light on how to pass email addresses as parameters?
Regards
Carl
Hi Chris,
Just been playing around with it and it works now - should have been a bind variable! (:p_email_address instead of &p_email_address).
SELECT pvs.vendor_site_code supplier_site
, (SELECT pov.vendor_name
FROM ap_suppliers pov
WHERE pvs.vendor_id = pov.vendor_id) supplier_name
, (SELECT pov.segment1
FROM ap_suppliers pov
WHERE pvs.vendor_id = pov.vendor_id) supplier_number
, (SELECT aou.name
FROM hr_all_organization_units_tl aou
WHERE pvs.org_id = aou.organization_id) organisation_name
, pvs.org_id
, pvs.vendor_site_id
, :p_dist_email dist_email_address
FROM ap_supplier_sites_all pvs
WHERE ....................
Similar Messages
-
Cannot assign an email address to SharePoint group (distribution groups)
Hello,
I configured incoming email awhile back in our SharePoint 2010 environment and it works great. I can assign an email address to a list and the necessary contact is created in AD in the OU I configured for incoming email and of course the item emailed in
is added to the list. However, if I try to assign an email address to a SharePoint group to create a distribution group, the following happens:
The following error has occurred while attempting to contact the Directory Management Service: The request failed with HTTP status 401: Unauthorized.
From what I've found on Technet and other resources, if incoming email works as expected, assign an email address to a group should work without issue but this obviously isn't the case. I've dug around in the 14 hive and pretty much the same exact error
is found there (with just a little more detail):
System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Microsoft.SharePoint.DirectorySoap.SPDirectoryManagementProxy.CreateDistributionGroup(String Alias, String Name, String Description, String ContactCN, RequestInfo Info, DistributionGroupFlags Flags)
at Microsoft.SharePoint.SPGroup.CreateDMS(String dlAlias, String friendlyName, String description, String[] members, String requestor, String justification, Int32& jobId)
Any ideas what this could be? I'd imagine the timer service account has the appropriate permission on the OU as it can create objects for lists with incoming email enabled without issue.For the issue with group members who are not added during the creation process ...
I followed this Technet article : Configure
incoming email for a SharePoint 2013 farm
But in the paragraph "Configure AD DS to be used with Directory Management Service", I added
delegation of control for the following common tasks :
Create, delete and manage groups
Modify the membership of a group
The distribution group gets created in AD with members in SharePoint 2013 ! It should work with 2010 as well…
PS : Do not forget to set up these rights, not only for the Central Administration Application pool Identity account, but for all
your Web Applications! -
Creating a target group based on the BP email address only in CRM
Hi there,
I am currently trying to create a target group based on the business partner email address only.
I have a list of over 1000 email addresses - these email addresses equate to a BP in our CRM system, however I do not have a list of the equivalent business partner numbers, all I have to work on are the email addresses. With these 1000 BP email addresses I need to update the marketing attributes of each of these 1000 BP records in CRM.
What I need is a method to find the 1000 BP numbers based on the email addresses and then use the marketing expert tool (tx. CRMD_MKT_TOOLS) to change the marketing attributes on all of the 1000 BPs.
The issue I am having is how can I find the list of BP numbers just based on the BP email address, I tried creating an infoset based on table BUT000, BUT020 and ADR6 but I after creating attribute list & data source for this I am stuck on what to do next. In the attribute list the selection criteria does not allow me to import a file for the selection range. I can only enter a value but I have 1000 email addresses and cannot possibly email them manually in the filter for the attribute list. I also looked at imported a file into the target group but I do not have any BP numbers so this will not work.
Does anyone know a method where I can create a target group based on the email addresses only without having to do any code?
Any help would be most appreciated.
Kind regard
JoJoHi JoJo ,
The below report will return you BP GUID from emails that is stored in a single column .xls file and assign the BP to a target group.
REPORT zexcel.
* G L O B A L D A T A D E C L A R A T I O N
TYPE-POOLS : ole2.
TYPES : BEGIN OF typ_xl_line,
email TYPE ad_smtpadr,
END OF typ_xl_line.
TYPES : typ_xl_tab TYPE TABLE OF typ_xl_line.
DATA : t_data TYPE typ_xl_tab,
lt_bu_guid TYPE TABLE OF bu_partner_guid,
ls_bu_guid TYPE bu_partner_guid,
lt_guids TYPE TABLE OF bapi1185_bp,
ls_guids TYPE bapi1185_bp,
lt_return TYPE bapiret2_t.
* S E L E C T I O N S C R E E N L A Y O U T
PARAMETERS : p_xfile TYPE localfile,
p_tgguid TYPE bapi1185_key .
* E V E N T - A T S E L E C T I O N S C R E E N
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_xfile.
CALL FUNCTION 'WS_FILENAME_GET'
IMPORTING
filename = p_xfile
EXCEPTIONS
inv_winsys = 1
no_batch = 2
selection_cancel = 3
selection_error = 4
OTHERS = 5.
IF sy-subrc <> 0.
CLEAR p_xfile.
ENDIF.
* E V E N T - S T A R T O F S E L E C T I O N
START-OF-SELECTION.
* Get data from Excel File
PERFORM sub_import_from_excel USING p_xfile
CHANGING t_data.
SELECT but000~partner_guid FROM but000 INNER JOIN but020 ON
but000~partner =
but020~partner
INNER JOIN adr6 ON but020~addrnumber = adr6~addrnumber INTO TABLE
lt_bu_guid FOR ALL ENTRIES IN t_data WHERE adr6~smtp_addr =
t_data-email.
CLEAR: lt_guids,ls_guids.
LOOP AT lt_bu_guid INTO ls_bu_guid.
ls_guids-bupartnerguid = ls_bu_guid.
APPEND ls_guids TO lt_guids.
ENDLOOP.
CALL FUNCTION 'BAPI_TARGETGROUP_ADD_BP'
EXPORTING
targetgroupguid = p_tgguid
TABLES
return = lt_return
businesspartner = lt_guids.
*& Form SUB_IMPORT_FROM_EXCEL
* text
* -->U_FILE text
* -->C_DATA text
FORM sub_import_from_excel USING u_file TYPE localfile
CHANGING c_data TYPE typ_xl_tab.
CONSTANTS : const_max_row TYPE sy-index VALUE '65536'.
DATA : l_dummy TYPE typ_xl_line,
cnt_cols TYPE i.
DATA : h_excel TYPE ole2_object,
h_wrkbk TYPE ole2_object,
h_cell TYPE ole2_object.
DATA : l_row TYPE sy-index,
l_col TYPE sy-index,
l_value TYPE string.
FIELD-SYMBOLS : <fs_dummy> TYPE ANY.
* Count the number of columns in the internal table.
DO.
ASSIGN COMPONENT sy-index OF STRUCTURE l_dummy TO <fs_dummy>.
IF sy-subrc EQ 0.
cnt_cols = sy-index.
ELSE.
EXIT.
ENDIF.
ENDDO.
* Create Excel Application.
CREATE OBJECT h_excel 'Excel.Application'.
CHECK sy-subrc EQ 0.
* Get the Workbook object.
CALL METHOD OF h_excel 'Workbooks' = h_wrkbk.
CHECK sy-subrc EQ 0.
* Open the Workbook specified in the filepath.
CALL METHOD OF h_wrkbk 'Open' EXPORTING #1 = u_file.
CHECK sy-subrc EQ 0.
* For all the rows - Max upto 65536.
DO const_max_row TIMES.
CLEAR l_dummy.
l_row = l_row + 1.
* For all columns in the Internal table.
CLEAR l_col.
DO cnt_cols TIMES.
l_col = l_col + 1.
* Get the corresponding Cell Object.
CALL METHOD OF h_excel 'Cells' = h_cell
EXPORTING #1 = l_row
#2 = l_col.
CHECK sy-subrc EQ 0.
* Get the value of the Cell.
CLEAR l_value.
GET PROPERTY OF h_cell 'Value' = l_value.
CHECK sy-subrc EQ 0.
* Value Assigned ? pass to internal table.
CHECK NOT l_value IS INITIAL.
ASSIGN COMPONENT l_col OF STRUCTURE l_dummy TO <fs_dummy>.
<fs_dummy> = l_value.
ENDDO.
* Check if we have the Work Area populated.
IF NOT l_dummy IS INITIAL.
APPEND l_dummy TO c_data.
ELSE.
EXIT.
ENDIF.
ENDDO.
* Now Free all handles.
FREE OBJECT h_cell.
FREE OBJECT h_wrkbk.
FREE OBJECT h_excel.
ENDFORM. " SUB_IMPORT_FROM_EXCEL
Just copy paste the code and run the report select any local xls file with emails and pass the target group guid.
snap shot of excel file:
Let me know if it was useful. -
Pick one of the multiple email address of a contact!
Hi,
In the current app that I am working on, the user is presented with the address book. Let's say the contact that is selected has multiple email addresses - Home, Work1, Work2 (in this order).
How can the app know which one the user picks? Let's say the user wants to select the Work2 address.
The code below has a for-loop that cycles thru all the values. I want to compare the value of mobileLabel to the value that the user selected in the AddressBook picker - how is that passed on to the app?
ABMultiValueRef emailProperty = ABRecordCopyValue(person, kABPersonEmailProperty);
NSString* email=@"";
NSString* mobileLabel;
for (CFIndex i = 0; i < ABMultiValueGetCount(emailProperty); i++)
mobileLabel=(NSString*)ABMultiValueCopyLabelAtIndex(emailProperty, i);
NSLog(@"mobileLabel = <%@>", mobileLabel);
// if ([mobileLabel isEqualToString:@"_$!<Mobile>!$_"])
// if ([mobileLabel isEqualToString:@"_$!<Home>!$_"])
email=(NSString*)ABMultiValueCopyValueAtIndex(emailProperty,i);
NSLog(@"email: <%@>", email);
self.emailFromPicker = email;
break;
[email release];It's given to you in the delegate method.
- (BOOL)personViewController:(ABPersonViewController *)personViewController shouldPerformDefaultActionForPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifierForValue
Parameters
personViewController
The sender.
person
The person personViewController is displaying.
property
The property whose value the user selected.
valueIdentifier
When property is a multivalue property, the value the user selected.
See the +ABPersonViewControllerDelegate Protocol Reference+.
Message was edited by: xnav -
How to send an email with an attachment to the customers email address.
Hi friends,
How to send an email with an attachment to the customers email address.
the attachment will be in doc format.
Having an Header
the data which i am sending must be in a TABLE format
with 5 columns.
and each column must have a column heading
Please guide me.
Thanks in Advance,
Ganesh.*& Report ZEMAIL_ATTACH *
*& Example of sending external email via SAPCONNECT *
REPORT ZEMAIL_ATTACH .
TABLES: ekko.
PARAMETERS: p_email TYPE somlreci1-receiver .
*Here get the values of mail from the table adn6 for the customer address.
TYPES: BEGIN OF t_ekpo,
ebeln TYPE ekpo-ebeln,
ebelp TYPE ekpo-ebelp,
aedat TYPE ekpo-aedat,
matnr TYPE ekpo-matnr,
END OF t_ekpo.
DATA: it_ekpo TYPE STANDARD TABLE OF t_ekpo INITIAL SIZE 0,
wa_ekpo TYPE t_ekpo.
TYPES: BEGIN OF t_charekpo,
ebeln(10) TYPE c,
ebelp(5) TYPE c,
aedat(8) TYPE c,
matnr(18) TYPE c,
END OF t_charekpo.
DATA: wa_charekpo TYPE t_charekpo.
DATA: it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
WITH HEADER LINE.
DATA: it_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
WITH HEADER LINE.
DATA: t_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
t_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
t_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
t_object_header LIKE solisti1 OCCURS 0 WITH HEADER LINE,
w_cnt TYPE i,
w_sent_all(1) TYPE c,
w_doc_data LIKE sodocchgi1,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
*START_OF_SELECTION
START-OF-SELECTION.
Retrieve sample data from table ekpo
PERFORM data_retrieval.
Populate table with detaisl to be entered into .xls file
PERFORM build_xls_data_table.
*END-OF-SELECTION
END-OF-SELECTION.
Populate message body text
perform populate_email_message_body.
Send file by email as .xls speadsheet
PERFORM send_file_as_email_attachment
tables it_message
it_attach
using p_email
'Example .xls documnet attachment'
'DOC'
'filename'
changing gd_error
gd_reciever.
Instructs mail send program for SAPCONNECT to send email(rsconn01)
PERFORM initiate_mail_execute_program.
*& Form DATA_RETRIEVAL
Retrieve data form EKPO table and populate itab it_ekko
FORM data_retrieval.
SELECT ebeln ebelp aedat matnr
UP TO 10 ROWS
FROM ekpo
INTO TABLE it_ekpo.
ENDFORM. " DATA_RETRIEVAL
*& Form BUILD_XLS_DATA_TABLE
Build data table for .xls document
FORM build_xls_data_table.
CONSTANTS: con_cret TYPE x VALUE '0D', "OK for non Unicode
con_tab TYPE x VALUE '09'. "OK for non Unicode
*If you have Unicode check active in program attributes thnen you will
*need to declare constants as follows
*class cl_abap_char_utilities definition load.
*constants:
con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB,
con_cret type c value cl_abap_char_utilities=>CR_LF.
CONCATENATE 'EBELN' 'EBELP' 'AEDAT' 'MATNR'
INTO it_attach SEPARATED BY con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach.
LOOP AT it_ekpo INTO wa_charekpo.
CONCATENATE wa_charekpo-ebeln wa_charekpo-ebelp
wa_charekpo-aedat wa_charekpo-matnr
INTO it_attach SEPARATED BY con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach.
ENDLOOP.
ENDFORM. " BUILD_XLS_DATA_TABLE
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
Send email
FORM send_file_as_email_attachment tables pit_message
pit_attach
using p_email
p_mtitle
p_format
p_filename
p_attdescription
p_sender_address
p_sender_addres_type
changing p_error
p_reciever.
DATA: ld_error TYPE sy-subrc,
ld_reciever TYPE sy-subrc,
ld_mtitle LIKE sodocchgi1-obj_descr,
ld_email LIKE somlreci1-receiver,
ld_format TYPE so_obj_tp ,
ld_attdescription TYPE so_obj_nam ,
ld_attfilename TYPE so_obj_des ,
ld_sender_address LIKE soextreci1-receiver,
ld_sender_address_type LIKE soextreci1-adr_typ,
ld_receiver LIKE sy-subrc.
ld_email = p_email.
ld_mtitle = p_mtitle.
ld_format = p_format.
ld_attdescription = p_attdescription.
ld_attfilename = p_filename.
ld_sender_address = p_sender_address.
ld_sender_address_type = p_sender_addres_type.
Fill the document data.
w_doc_data-doc_size = 1.
Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle .
w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR w_doc_data.
READ TABLE it_attach INDEX w_cnt.
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle.
w_doc_data-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = pit_attach[].
Describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = 'RAW'.
APPEND t_packing_list.
Create attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = ld_format.
t_packing_list-obj_descr = ld_attdescription.
t_packing_list-obj_name = ld_attfilename.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
t_receivers-receiver = ld_email.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
APPEND t_receivers.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
Populate zerror return code
ld_error = sy-subrc.
Populate zreceiver return code
LOOP AT t_receivers.
ld_receiver = t_receivers-retrn_code.
ENDLOOP.
ENDFORM.
*& Form INITIATE_MAIL_EXECUTE_PROGRAM
Instructs mail send program for SAPCONNECT to send email.
FORM initiate_mail_execute_program.
WAIT UP TO 2 SECONDS.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ENDFORM. " INITIATE_MAIL_EXECUTE_PROGRAM
*& Form POPULATE_EMAIL_MESSAGE_BODY
Populate message body text
form populate_email_message_body.
REFRESH it_message.
it_message = 'Please find attached a list test ekpo records'.
APPEND it_message.
endform. " POPULATE_EMAIL_MESSAGE_BODY
regards,
venkat. -
SapScript Form by email: Using output medium 5 - several email address
Hello, ppl
I've been doing some developing concerning the send of correspondence by email.
I've used output medium 5, and have have build email recipient parameters as follow:
Getting email address:
CLEAR address.
SELECT SINGLE smtp_addr FROM adr6
INTO address
WHERE addrnumber = p_adrnr
AND persnumber = space
AND flgdefault = 'X'.
IF address IS INITIAL.
p_device = 'PRINTER'.
EXIT.
ENDIF.
create recipient
swc_create_object lo_recipient 'RECIPIENT' space.
swc_set_element lt_container 'SendAsACopy'
'X'.
swc_set_element lt_container 'AddressString'
address.
swc_set_element lt_container 'TypeID'
'U'.
swc_call_method lo_recipient 'CreateAddress' lt_container.
swc_object_to_persistent lo_recipient p_persistent_recipient.
create sender (current user)
swc_create_object lo_sender 'RECIPIENT' space.
swc_set_element lt_container 'AddressString'
sy-uname.
swc_set_element lt_container 'TypeID' 'B'.
swc_call_method lo_sender 'CreateAddress' lt_container.
swc_object_to_persistent lo_sender p_persistent_sender.
And have called open_form as follows:
CALL FUNCTION 'OPEN_FORM'
EXPORTING form = xformular
language = ekko-spras
OPTIONS = itcpo
archive_index = toa_dara
archive_params = arc_params
device = xdevice
dialog = xdialog
mail_sender = p_persistent_sender
mail_recipient = p_persistent_recipient
EXCEPTIONS canceled = 01.
IF sy-subrc NE 0.
PERFORM protocol_update USING '142' ekko-ebeln space space space.
retco = sy-subrc.
EXIT.
ENDIF.
Everything works fine ... problem is i need to send the email to several adresses and also add some as CC: instead of TO: in the email parameters.
Is this possible?
As far as i know mail_ricipient only allows one email reference ...
Please, provide some help.
Thanks,
MárioLOOP AT <receiver_table>.
w_email = <receiver_table-mailid.
*-- Create persistent send request
send_request = cl_bcs=>create_persistent( ).
*--Add document to send request
CALL METHOD send_request->set_document( document ).
*-- Get sender object
sender = cl_sapuser_bcs=>create(<Sender mailid / userid ).
*--Add sender
CALL METHOD send_request->set_sender
EXPORTING
i_sender = sender.
recipient = cl_cam_address_bcs=>create_internet_address( w_email ).
RECIPIENT = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS( P_RECVR ).
*--Add recipient with its respective attributes to send request
CALL METHOD send_request->add_recipient
EXPORTING
i_recipient = recipient.
*--set send immediately flag
send_request->set_send_immediately( 'X' ).
*--Send document
CALL METHOD send_request->send( ).
COMMIT WORK.
endloop. -
A work flow to extract email address from mail
Can anyone help me. I have a bunch of emails that contain text information including an email address. I want a Automator workflow that will extract the email addresses from the emails and then save them as a comma separated text file.
Hi,
Try this workflow:
1) Get Selected Mail Items
2) Run AppleScript
In the "Run AppleScript", paste the following in:
on run {input, parameters}
set the output to {}
repeat with i from 1 to count of the input
set theMessage to item i of the input
set theContent to ""
tell application "Mail"
set theContent to the content of theMessage
end tell
if theContent is not equal to "" then
set output to (output & theContent)
end if
end repeat
return output
end run
3) Run Shell Script
In "Run Shell Script", select "/usr/bin/perl" in the shell popup and "to stdin" in the pass input popup. Then paste the following in:
$input = join("", );
@emails = ($input =~ /\b[A-Z0-9._%-]@[A-Z0-9.-]\.[A-Z]{2,4}\b/ig);
while( @emails > 1 ) {
print shift(@emails) . ", ";
print @emails[0];
4) New TextEdit Document
If you select the mail messages that have the email information in them, then you can run the workflow and hopefully it does the right thing.
Hope it helps! -
Need a way to verify from SAP if an email address really exists
Hi Guru,
I need a way to verify from SAP if an email address really exists.
Thanks in advance
SoufieneHello,
Try the following code. It gives an option of using a webservice to validate an email address. This piece of code may help in solving your query.
PARAMETERS: p_mail(100) LOWER CASE. " E-Mail id to be verified
DATA: http_client TYPE REF TO if_http_client .
DATA: w_string TYPE string ,
w_result TYPE string ,
r_str TYPE string .
DATA: result_tab TYPE TABLE OF string.
START-OF-SELECTION .
CLEAR w_string .
CONCATENATE
'http://www.webservicex.net/ValidateEmail.asmx/IsValidEmail?Email=' p_mail
INTO
w_string .
CALL METHOD cl_http_client=>create_by_url
EXPORTING
url = w_string
IMPORTING
client = http_client
EXCEPTIONS
argument_not_found = 1
plugin_not_active = 2
internal_error = 3
OTHERS = 4.
CALL METHOD http_client->send
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2.
CALL METHOD http_client->receive
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3.
CLEAR w_result .
w_result = http_client->response->get_cdata( ).
REFRESH result_tab .
SPLIT w_result AT cl_abap_char_utilities=>cr_lf INTO TABLE result_tab .
READ TABLE result_tab INTO r_str INDEX 2.
IF r_str+44(1) = 't'.
WRITE:/ 'Valid email address'.
ELSE.
WRITE:/ 'Invalid email address'.
ENDIF.
Regards,
Sachin -
Prblem in report distribution to email address
Thanks for the response for my last question. I need one more help to ask. I am trying to send output file to email address.
When I am giving values in url itself , it is working
http://bryxh91:8889/reports/rwservlet?report=devlopersuit/reports/test.jsp&userid=anju/[email protected]&desformat=pdf&destype=mail&desname=[email protected]
But this one is not working
http://bryxh91:8889/reports/rwservlet?report=devlopersuit/reports/test.jsp&userid=anju/[email protected]&DISTRIBUTE=YES&destination=devlopersuit/reports/dis_test.xml
Now my changed xml file is
<destinations>
<mail id="test1"
to="[email protected]"
from="[email protected]"
subject = "abc">
<body srcType="text">
This is the body of the message.
</body>
<attach format="pdf" name="abc2.pdf" srcType="report"
instance="all">
<include src="mainSection"/>
</attach>
</mail>
</destinations>
It is not giving any error but not sending file to my email address, while with first url I am getting file in my mail box.
looking forward for your helpHi Karthik,
To solve this issue plz follow the following steps.
1. Create a new job like Report_Email with mail type job definition with following parameters.
a.Mail_To
b.REPORT_ID
c.SUBJECT
d.REPORT_TITLE
4.EMAIL_DESCRIPTION
SOURCE
<HTML>
<BODY>
<H2>${REPORT_TITLE}</H2>
${EMAIL_DESCRIPTION}
</BODY>
</HTML>
[Attachments]
@{Name}=Job ${REPORT_ID}:*.csv
[Headers]
#set the reply-to address
subject=${SUBJECT}
reply-to=${Mail_To}
[Body]
Content-Type=text/html; Charset=UTF-8
2. Create a Job chain.
3. In step 1 add the job whose out put is in CSV file.
4 In step 2 add Report_Email add fill the parameters details.
5. Run the chain.
6 . U will receive the Email with.csv file to receipient
Please revert if any issues -
ERROR: Your web form must capture customer name and email address.
Hi,
I keep receiving this error message when trying to checkout and submit a payment.
ERROR: An error occurred. Your web form must capture customer name and email address. Please fix this issue and re-insert your web form on your web page.
The strange thing is it's only happening in chrome. It works perfectly in IE and firefox, the form submits and takes me to the order confirmation page. I've tested it on multiple PCs so it's definitely a chrome issue. Does anyone have any advice as to what could be causing this issue with chrome?
Thanks,
PeteCheck your eCommerce web form in the admin has the ID - 211729
This is what the form ID is, if you have deleted it and made a new one it will not Marry up
The things you normally look for with this error is The first name and last name along with email fields have the right ID and name parameters on the input. The javascript is picking those up so it looks like that is working.
So next is the form in the admin marrying up with the form on the page or in this case the Registration Buy layout. -
CSV file for users who have one-time password email address
Hi Guys,
I am trying to extract the list of users who have one-time password email address in FIM or users who have registered with one-time password reset authentication workflow. I need to get their email addresses in CSV file.
Regards
Sarwar
SarwarTake a look at:
http://social.technet.microsoft.com/wiki/contents/articles/3616.how-to-use-powershell-to-export-all-users-who-have-registered-for-self-service-password-reset-sspr.aspx
The script queries a WorkFlow called "Password Reset AuthN Workflow" and returns its ObjectID, then uses it to do a new query searching for "Users" with these parameters:
AuthN WorkFlow Registered = ObjectID of "Password Reset AuthN Workflow"
The script exports these details to a CSV.
Also, all OTP email addresses should be stored in the "msidmOneTimePasswordEmailAddress" attribute in the FIM Portal. -
Hiding email address in a newsletter
Hi...
We send out newsletters to our mailing list and have an
individual's email
id on that mail. (The email id on our mail is not constant
and changes
according to the subject.) No problem there as there's not
much chance of
spam being generated from this route. The problem, however,
lies with the
newsletter available from the website. (The usual : "If this
mail does not
display properly, please click here".)
Hence, for someone accessing the mailer via the website, the
contact email
is open to spam. We do have php forms on the website and
email addresses on
the forms are protected via the php. However, in this case we
don't want to
use forms but have the receipient:
1/ Able to reply either through his email client or
2/Through his web based email
Sure, i guess that we could have a form open each time
someone clicked the
email link but the hassle with that would be the need to
create a special
form for each mailer and we'd soon have a plethora of
forms!!!
Any suggestions?
Cheers and TIA,
JJOn 11 Mar 2009 in macromedia.dreamweaver, Jay Jay wrote:
> "Joe Makowiec"
>> On 11 Mar 2009 in macromedia.dreamweaver, Jay Jay
wrote:
>>
>
>> Why would you need one page per recipient? One of
two things:
>> - You say you have a code for each newsletter
recipient; just
>> include that in a hidden field in the form using URL
parameters.
>> It would work like this: when you generate the link
to the contact
>> form, you'd do it something like:
>> <a href="contactform.php?user=<?php echo
$_GET['emailid'];
>> ?>">Contact us</a> where emailid comes
from the link to the 'view
>> this page online' link you've included in the email.
>> - Let the recipient include his/her own contact
information.
>
> Joe...
>
> Not sure what you mean... but this is present
scenario...
>
> Newsletter/s has/have the following at the end:
>
> 1/ Postal address
> 2/ Phone & Fax
> 3/ Email address
> 4/ Website
>
> In the newsletters, the only common factor is the
website. Often the
> postal addresses vary and so do the phones and email ids
depending
> on the cities and the respective people (contacts).
Currently, in
> the newsletter we have the subject coded in, so all the
responder
> has to do is click on the email link and his/her email
client opens
> with subject and addressee already in place and all they
really have
> to do is hit the send button. Using forms would mean:
>
> 1/ The creation of a special form for each newsletter -
otherwise we
> wouldn't know what the responder was referring to.
> 2/ Additionally, an extra effort from the responder to
at least
> enter his/her email id.
>
> What i was kind of hoping was we could have the various
email ids
> concealed in a formmail (adding new ones - if neccessary
- is not a
> big deal), and clicking the link opens the responders
email client
> where his address and the subject are already entered.
Like you get
> with the (mailto:[email protected]?subject=Seminar on ZZZZ
You've been around this forum long enough to know that mailto
links
are, at best, a crapshoot. They won't work for most people
who use
webmail clients (Hotmail, Yahoo!mail, gmail...); also,
standalone email
clients may or may not be able to recognize, say, entered
subjects.
From your description, I gather that you are generating the
emails from
some kind of database which contains, at a bare minimum, the
recipients' names and email addresses. So when you create the
email,
you also include the code which allows you to key back into
that
database to retrieve the user's name and email. The link to
the
contact form would thus be:
<a href="contactform.php?userid=xxyyzz12345">Contact
Us</a>
And the contact form uses $_GET['userid'] to query the
database and
retrieve the user's information. Likewise, you could add
mailing
information
<a
href="contactform.php?userid=xxyyzz12345&mailing=664">Contact
Us</a>
and using $_GET['mailing'], go to a database of mailings to
set the
subject. All this is transparent to the user.
Joe Makowiec
http://makowiec.net/
Email:
http://makowiec.net/contact.php -
Trying to set an email address
I am using Oracle 9i and SQL*Plus on Windows XP.
I am trying to set an email address in my object table using an object method.
I have the following types:
CREATE OR REPLACE TYPE student_type AS OBJECT
(FirstName varchar2(15),
LastName varchar2(15),
Address address_type,
Contact contact_type,
DateOfBirth date,
Nationality varchar2(15),
AttendanceMode varchar2(15),
StudentNo varchar2(15),
Userid varchar(15),
FeeStatus varchar2(25))
create type contact_type as object
(home_tel_no number(14),
mobile number(14),
email varchar2(25))
and have created a method to set an email address:
MEMBER FUNCTION setEmail (self IN OUT student_type, em varchar2) RETURN number,
PRAGMA RESTRICT_REFERENCES (setEmail, WNPS, RNPS)
along with all of the other necessary code which works OK.
I have implemented it with the following code but am not sure if it is correct:
MEMBER FUNCTION setEmail (SELF IN OUT student_type, em varchar2) RETURN NUMBER IS
BEGIN
SELF.CONTACT.EMAIL := em;
RETURN 1;
END;
but when I try to run it, i get the following error:
SQL> SELECT S.SETEMAIL('[email protected]') FROM STUDENT_TABLE S WHERE FIRSTNAME = 'Sammy';
SELECT S.SETEMAIL('[email protected]') FROM STUDENT_TABLE S WHERE FIRSTNAME = 'Sammy'
ERROR at line 1:
ORA-06572: Function SETEMAIL has out arguments
Any help with this would be great.
JamesSELECT S.SETEMAIL('[email protected]') FROM
STUDENT_TABLE S WHERE FIRSTNAME = 'Sammy'
ERROR at line 1:ORA-06572: Function SETEMAIL has out arguments
er...that'll be because your member function has an OUT parameter, self:
MEMBER FUNCTION setEmail (self IN OUT student_type, em varchar2) RETURN number,(1) You need to reference all parameters in the function, so you need two arguments in your call - but...
(2) we cannot use methods with OUT parameters in SELECT statements, because that's the law.
Do you need to pass SELF into your method? If so you'll have to use PL/SQL to do this instead.
Looking at your code again, I see you are actually using a SELECT statement to alter the data iin the database. This is not allowed at all. SELECT statements are, must be, read only.
Cheers, APC -
I have 2 email addresses from .mac.
One moved over fine and has been running with icloud. The other is stuck in a loop.
i try to sign into icloud with the second account. It says "to sign in, move the account to icloud. i click 'get started" It sends me to mobile and it says closed. it auto bounces me to a page that says "Congratulations!" you can now use *********@me.com and mac.com but it's my OTHER working icloud account NOT the email address i am trying to add an icloud account for.
I cannot see any way to add it to my existing icloud account.
I tried to delete it from my mac and re-add it as an icloud account. It tells me to move it..... (i did)
Do I make an icloud account for the second .mac address as well, or somehow add it to my current working icloud account?
i also have an ipad and iphone waiting for proper configuration. Everything worked on all devices untim mobilme shut down
Thank You,
SGYou mention that you're using 2 computers, are they running different OSX ? The OSX v 10.7...
must be okay I'd assume. The System Requirements for older than Leopard ( OSX v 10.4 thru
10.5 ) may be problematic. I'm having that particular problem. When you log onto .me or .mac
seeking iCloud ( or direct URL) and encounter that " moved" sign, there is a Status button in
the far left corner of your screen. Click there and determine your Online Status, if that's fine
you've done the right thing during your update. It could be that your older Browser, Email settings
or simply the OS does not sync to deliver ino to your (?) older Mac/OS. Keep trying here for a
expert opinion as I am here for my quiry but edit your question above to include those
parameters ( settings, syst req, etc ). Someone more knowledgeable will help. -
How to send messages to "incorrect" email addresses?
Hi everyone
I hope, I'm not repeating a topic that was discussed before...
My problem:
I need to send emails to a email to facs gateway to have them delivered to the recipient by facs. The sytax for the gateway (product name Faxination) is
[fax:username@faxnumber] or
[fax:faxnumber]
and will be parsed by the facs gateway.
Of course, such email addresses are illegal in terms of RFC822 and thus cannot be parsed correctly into InternetAddress objects.
To ommit the parsing of the address, I subclassed javax.mail.internet.InternetAddress to be able to access the protected member directly to inject my addresses into a derived object of InternetAddress. So far, everything worked, but unfortunately the Transport.send() method checks all recipients by calling the static method InternetAddress.parse(String) on them for reasons I cannot really follow...
The problem is: subclassing is inadequate here because I cannot override static methods.
I would have been nice from the designers of JavaMail and the standard mail provider from Sun to allow a user to reasonably subclass InternetAddress to provide the means to allow illegal addresses to be handled without checking them first.
Does anyone know a solution to that problem?
Any hint is appreciated.
DanielReading through the JavaDoc for JavaMail 1.3 I found the following constructor for InternetAddress.
InternetAddress
public InternetAddress(java.lang.String address,boolean strict)
throws AddressExceptionParse the given string and create an InternetAddress.
If strict is false, the detailed syntax of the address isn't checked.
Parameters:
address - the address in RFC822 format
strict - enforce RFC822 syntax
Throws:AddressException - if the parse failed
Since: JavaMail 1.3
http://java.sun.com/products/javamail/1.3/docs/javadocs/javax/mail/internet/InternetAddress.html
Maybe you are looking for
-
How do you retrive your content downloaded on apple tv to your computer
so i rented a movie that i have not finished and i would like to but im not home how do i retrive it to watch it im signed in on my accounts and all i tryed to download all purchesed content for this account option and it says everything has been do
-
I have set up links with success but when I try to format them I am having a problem. I select the link and on link inspector choose format. The options are greyed out. Help suggested opening the colour palate but no good. I am using blank pages with
-
Acrobat X Pro won't print but other applications do
I have a Samsung CLP-680ND printer running off the network. I am using iMacs OS 10.6.8. I'm having trouble printing to this printer from Acrobat Pro, but can print perfectly well from any other application, including Acrobat Reader. The Print dialog
-
Termination error when accessing resource tab in project template
Hi, i am getting error when i am trying do resource in the project template. i have structured the project structure in the template. and i am trying to add roles for the project template but it is showing termination error when i click on "resource
-
Hi everyone, We've already developped applications with prior release (it means HTML-DB 1.6) Now, we are insterested to use also APEX 4.0 to run other applications. Is it possible to have two different releases HTML-DB 1.6 and APEX 4.0 in the same da