Internal & external email
Hi Experts,
Please help me...
I need to create email through my program(Module-pool program) on click on a push button a internal(external) email should be generate .
How can i do it ?
If you have any program please send me that will become more helpful for me.
Thanks in advance.
Ankur Garg.
HI,
DATA : l_wa_content TYPE solisti1,
l_wa_recieve TYPE somlreci1.
*Local internal table
DATA : l_it_content TYPE STANDARD TABLE OF solisti1,
l_it_recieve TYPE STANDARD TABLE OF somlreci1.
*in contents you can add the body of the mail
CLEAR l_wa_content.
l_wa_content-line = 'Dear Customer,'.
APPEND l_wa_content TO l_it_content.
CLEAR l_wa_content.
APPEND l_wa_content TO l_it_content. *appending blank line
CONCATENATE 'TEST' 'MAIL!' 'How r u' INTO l_v_text
SEPARATED BY space.
l_wa_content-line = l_v_text.
APPEND l_wa_content TO l_it_content.
*Reciptents Mail Ids
l_wa_recieve-receiver = 'your mail id'.
l_wa_recieve-rec_type = 'U'. "this is for internet
APPEND l_wa_recieve TO l_it_recieve.
clear l_wa_recieve.
*If you need tyo send to you sap inbox TCODE SBWP (you can check mail in SBWP) do this
l_wa_recieve-receiver = 'your user id of SAP'.
l_wa_recieve-rec_type = 'B'. "for SAP user
APPEND l_wa_recieve TO l_it_recieve.
clear l_wa_recieve.
*Heading of the mail
l_wa_document-obj_name = 'TEST MAIL'.
l_wa_document-obj_langu = sy-langu.
*this FM send mail..
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
document_data = l_wa_document
document_type = 'RAW'
put_in_outbox = c_x
commit_work = c_x
TABLES
object_content = l_it_content
receivers = l_it_recieve
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.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
THe above parameters are enough for sending mail
Any doubts can be posted
regards,
nazeer
Similar Messages
-
SCOT configuration for internal & external email system in EP.
Hi,
I want to add SCOT configuration for internal & external email system in SAP EP 7.0 ?
What all steps I need to do ? any good documents on this ?Hi Haider,
I have read the link you have given me to configure SCOT. I have 3 doubt plzz clarify.
Doubt No. 1:
In that link its mentioned that I have to add 2 profile parameter in the transaction RZ10 namely icm/server_port_<>* and is/SMTP/virt_host_<>*
My question is Can I put any value which i like in place of * like can I add either icm/server_port_2 OR icm/server_port_3 OR icm/server_port_4 in icm parameter AND ALSO
Can I put any value which i like in place of * in is/SMTP/virt parameter like can I add either is/SMTP/virt_host_0 OR is/SMTP/virt_host_1 OR is/SMTP/virt_host_2 .
Doubt No. 2:
What port value I have to put in the profile parameter icm/server_port_2 in RZ10. Can I put any port value ? and automatically that port will work? say suppose I addded this profile parameter in RZ10
icm/server_port_2 = PROT=SMTP,PORT=25000,TIMEOUT=180 so automatically 25000 port will work ? or will it give error?
Doubt No. 3:
When I go to SMICM transaction and go to services , I get the following:
No. Log Service name/port Host name Keep Alive Proc TimeOut Active
1 HTTP 8000 epv.sopm.com 30 60 Yes
2 SMTP 0 epv.sopm.com 30 60 Yes
3 HTTPS 8001 epv.sopm.com 30 180 Yes
This means that HTTP port is 8000, HTTPS port is 8001. My question is why in SMTP its showing 0, why no port is shown?
I have not added any profile parameter like icm/server_port_2 = PROT=SMTP,PORT=25000,TIMEOUT=180 for SMTP in RZ10 as of now.
Is this the reason for this ? -
Outgoing Internal/External Email
We are using B1 2005A SP01PL04. We have had continuous problems with the email. Users are able to email Purchase Orders OR Sales Orders, but not both. Our Purchasing Manager for example can email S/O's through SAP, but not P.O's. I've uninstalled and reinstalled the SBO Mailer to no effect. All the settings are correct in the configuration, and the email addresses are entered in the BP Data. Has this happened to anyone else, and does anyone have any suggestions on how to fix this problem? Thank you.
Hi Steve,
You can access the following B1 tables to check whether the email has been created for it.
1).OALR :main table for alter.
2).ALR1 :to check the recipt's address.
if no records,then the Purchasing Manager doesn't create the entries for it.
if it is the wrong address or wrong attachment,check what's created by purchase Mgr. your problem may be here.
hope it help you to locate the problem.
regards
yatsea -
Exchange 2013 not receiving internal and external emails ..
I have a coexistence of exchange 2007 and exchange 2013 ..2013 mailboxes where able to receive and send mails (internal and external) but suddenly the mail flow has stopped.
Mail flow status
2013 to 2007 = OK
2013 to internet = OK
2013 to 2013 = OK
2007 to 2013 = FAIL
Internet to 2013 = FAIL
incoming internet mails return the NDR below
Diagnostic information for administrators:
Generating server: mydomain.com
[email protected]
Remote Server returned '< #4.4.7 smtp;400 4.4.7 Message delayed>'
What could be a possible reason for this?
Cheers guys ..
..forever is just a minute away*Hi Richard,
Thank you for your question.
When there is a coexistence of Exchange 2007 and Exchange 2013, external email will be sent and received by Exchange 2013.
4.4.7 means message expired, message wait time in queue exceeds limit, potentially due to remote server(your Exchange server ) being unavailable.
If your organization has correct MX record in ISP. We could refer to the following link to check if MX record is correct:
http://technet.microsoft.com/en-us/library/aa998082(v=exchg.65).aspx
If we could telnet Exchange server by the following command: telnet mail.domain.com 25
If there is a receive connector on Exchange 2013 to receive Internet emails, we could create a receive connector to receive message from the Internet by the following link:
http://technet.microsoft.com/en-us/library/jj657447(v=exchg.150).aspx
If there are any questions regarding this issue, please be free to let me know.
Best Regard,
Jim -
Exchange 2010 - Cannot receive external emails, only internal.
Hello, this is my first time setting up Exchange 2010, I have set up exchange 2010 on Windows Server 2008 R2, I can receive internal emails but every time I send out an external email I get a bounce back. I have a domain controller on a separate VM I have
my exchange on, I have tried going through different courses of action but no success.
Any help would be much appreciatedHi,
Please also check whether you have been blocked by others via following link:
http://mxtoolbox.com/blacklists.aspx
Disclaimer:
Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure
that you completely understand the risk before retrieving any suggestions from the above link.
Thanks
Mavis
Mavis Huang
TechNet Community Support -
Hello,
I can't seem to figure out what the problem is, but my new mailboxes cannot receive external email. The sender receives an NDR stating the following:
The error that the other server returned was: 550 550 No such user - psmtp (state 13).
Internally, the affected mailboxes can send and receive mail, and the mailboxes have no trouble sending mail out of the organization. I do not see an anti-spam solution installed on the exchange server, and I have confirmed that DNS resolved to the WAN IP
of this server.
Can anyone help me? The message tracker didn't appear to have recorded the NDR's that it sent, but it's possible I didn't view the logs correctly.
Thank you!
Paul
My environment contains two servers:
Server A: Domain Controller, Server 2008 R2, Exchange 2010 Standard
Server B: Domain Controller, Server 2008 R2On Wed, 30 May 2012 02:01:19 +0000, Relion Support Inc wrote:
>
>
>Hello,
>
>
>
>I can't seem to figure out what the problem is, but my new mailboxes cannot receive external email. The sender receives an NDR stating the following:
>
>The error that the other server returned was: 550 550 No such user - psmtp (state 13).
>
>
>
>Internally, the affected mailboxes can send and receive mail, and the mailboxes have no trouble sending mail out of the organization. I do not see an anti-spam solution installed on the exchange server, and I have confirmed that DNS resolved to the WAN
IP of this server.
>
>
>
>Can anyone help me? The message tracker didn't appear to have recorded the NDR's that it sent, but it's possible I didn't view the logs correctly.
Is your Exchange server exposed to the Internet or do you have some
3rd-party device that does spam filtering? If you have something out
in front of Exchange that only periodically refreshes its cache of
valid SMTP addresses from the AD then you need to adjust the refresh
rate.
That "550 No such user" isn't a status code that Exchange returned.
Rich Matheisen
MCSE+I, Exchange MVP
--- Rich Matheisen MCSE+I, Exchange MVP -
Restrict email attachments if more than 1mb for internal and 250kb for external emails
Hi,
Restrict email attachments if more than 1mb for internal and 250kb for external emails ?
Can any one help me in this issue
Thanks
Deepan.THi Deepan,
You can use transport rule to restrict the attachment size.
I use the following transport rule to reject the attachment size over 2MB with "5.7.1" information returned.
New-TransportRule "block large attach" -AttachmentSizeOver 2MB -RejectMessageEnhancedStatusCode "5.7.1"
For more information, here is an article for your reference.
New-TransportRule
http://technet.microsoft.com/en-us/library/bb125138(v=exchg.141).aspx
Hope it helps.
Best regards,
Amy
Amy Wang
TechNet Community Support -
Unable to send or recive email Internal & Externa ... Exchange 2013
Hi all
duo to some previse problem I hade to recover the server hard drive with a backup image.
I recover the server with the windows installation cd & backup image that I stored on external HD
the recover was done successfully & fix this issue and return the server to the time that the image was taken
now after recovering the server unable to sent or receive e-mail from
Internal & External
for all users
outlook is connected Internal & External for all users
the web app is working Internal & External for all users
all Exchange services are started and running
the Exchange Server is on a one machine
the domain is on another machineall server
at the same network
all servers is behind TMG server
Thank you allAmy Wang
thank you for your organized steps
sure I disconnected all server
that are not using with Exchange from the beginning.
and I also reconfigure the DNS Server\<Exchange server name>
and I recheck the reverse lookup zone.
as I said before the exchange was working fine until a power loss make me unable to open the ECP
witch lead me to recover the server from a backup image
PS. the recover was made at 8/10/2014 & the image that I use to recover was taken on 8/2/2014
the domain server is another machine & did not recovered to that date 8/2/2014 couse it has no problem
could this effect the relation between the domain & the exchange
knowing that the recovering is made by windows installation cd
first format the HD than recopy the image that was taken on 8/2/2014
thank you -
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. -
Unable to send to external email recipients - Multi Tenant Exchange 2013 - MultiRole servers in DAG
Greetings all, I hope someone can help.
I have created a Exchange 2013 multi-tenant organization, with two servers, both multi-role - CAS and Mailbox roles.
Internal mail flow is fine (external email addresses can send to the domain).
External firewall port forwards ports 443 and 25 to the Internal DAG IP address.
There are two multi-role Exchange servers that are members of the DAG.
I am able to connect to OWA and ECP via https://externalIP/OWA and https://alias.domain.com/OWA
No SSL certificates have been purchased or installed yet.
Exchange URLs have not been changed since default configuration at install.
OWA and ECP works both internal and external.
External DNS works with SPF and PTR records correctly configured
Exchange RCA - Send test only fails with one Spam Listing (this Blacklist provider now flags all domains and you cannot ask to be removed)
Send Connectors are the default ones created during install. Receive connector is standard configuration with - * -
When sending email to an external address, I receive a failure notice
ServerName.test.corp.int gave this error:
Unable to relay
Your message wasn't delivered due to a permission or security issue. It may have been rejected by a moderator, the address may only accept email from certain senders, or another restriction may be preventing delivery.
More Info -
ServerName.test.corp.int
Remote Server returned '550 5.7.1 Unable to relay'
I have been troubleshooting this for many hours with no progress.
I have created new Send Connectors for the server that is advising that it is unable to relay, but they have all failed.
I have tried setting the Internal IP address for Exhange Server 1 (Exchange Server 2 reports failure), with most combinations of Security (Anonymous, Exchange Users, etc).
I have also tried with the IP range 192.168.11.0/24 to allow the whole the subnet, I still receive the unable to relay failure notice.
I have tried this guide - hxxps://glazenbakje.wordpress.com/2012/12/30/exchange-2013-how-to-configure-an-internal-relay-connector/ - with different combinations, still no resolution.
I am at a loss as to why I can't send out with the default configuration. I would assume that email would flow out without any changes, but this does not happen.
Can someone please assist before I lose my sanity.
Thanks in advance,
TerryGreetings all, I hope someone can help.
I have created a Exchange 2013 multi-tenant organization, with two servers, both multi-role - CAS and Mailbox roles.
Internal mail flow is fine.
Incoming mail from external senders is also fine. -
external email addresses can send to the domain).
External firewall port forwards ports 443 and 25 to the Internal DAG IP address.
There are two multi-role Exchange servers that are members of the DAG.
I am able to connect to OWA and ECP via https://externalIP/OWA and https://alias.domain.com/OWA
No SSL certificates have been purchased or installed yet.
Exchange URLs have not been changed since default configuration at install.
OWA and ECP works both internal and external.
External DNS works with SPF and PTR records correctly configured
Exchange RCA - Send test only fails with one Spam Listing (this Blacklist provider now flags all domains and you cannot ask to be removed)
Receive Connectors are the default ones created during install. Send connector is standard configuration with - * -
When sending email to an external address, I receive a failure notice
ServerName.test.corp.int gave this error:
Unable to relay
Your message wasn't delivered due to a permission or security issue. It may have been rejected by a moderator, the address may only accept email from certain senders, or another restriction may be preventing delivery.
More Info -
ServerName.test.corp.int
Remote Server returned '550 5.7.1 Unable to relay'
I have been troubleshooting this for several days with no progress.
I have created new Receive Connectors for the server that is advising that it is unable to relay, but they have all failed.
I have tried setting the Internal IP address for Exhange Server 1 (Exchange Server 2 reports failure), with most combinations of Security (Anonymous, Exchange Users, etc).
I have also tried with the IP range 192.168.11.0/24 to allow the whole the subnet, I still receive the unable to relay failure notice.
I have tried this guide - hxxps://glazenbakje.wordpress.com/2012/12/30/exchange-2013-how-to-configure-an-internal-relay-connector/ - with different combinations, still no resolution.
Even more info - Further troubleshooting -
I found my one of my Exchange servers had an extra NIC. I have since added a second NIC to the other server, so now both Exchange servers have dual NICs. I removed the DAG cleanly and recreated the DAG from scratch, using this link -
hxxp://careexchange.in/how-to-create-a-database-availability-group-in-exchange-2013/
The issue still exists, even with a newly created DAG. I also found that the Tenant Address Books were not 'applied'. I applied them but still no resolution
I think the issue is related to multi-tenant configuration even though the error says that it can't relay. The unable to relay message can appear when sending from a domain that the Organization does not support. Like trying to email as [email protected]
when you domain name is apple.com - But through extensive research I still can't resolve the issue.
Can someone please assist before I lose my sanity.
Thanks in advance,
Terry -
Mail server no longer receiving external emails
After a disastrous upgrade to Lion & then a full TIme Machine restore back to Snow Leopard, I've had some mail server issues. (Web services not working but fixed with this method). Now noticed my server is now not receiving mail from external accounts...
Lots of posts suggested DNS problems but DNS does seem to be pointing some services to my server:
- Webmail page is working but on login returns an error: Error connecting to IMAP server: localhost. 61 : Connection refused
- Mail Client log in works (but not with the 'mail.' prefix) & can send email both internally & externally. External mail sent in to my server is returned with the error: Host or domain name not found. Name service error type=A: Host found but no data record of requested type
I'm guessing it might be an IMAP problem but I'd be very grateful if anyone could suggest what could be happening here.
Details:
Domain & DNS Web Log Errors postconf -n ps U postfix .Yikes... Time machine doesn't back up mail.
http://docs.info.apple.com/article.html?path=ServerAdmin/10.6/en/asafc284c9.html
You may be out of luck. OS X Server shouldn't be backed up using time machine unless you've configured it specifically to back up things within it's limitaitons.
Personally I use TM to back up user home folders and Shared Drives. Then use retrospect to back up Mail and OD. Lastly I use a script that runs a MySQL dump every night to take care of the web server. -
Send mails with attachment to external email id
Hi Folks,
I have an ALV report, the output of which needs to be sent as an excel attachment to an external email id. Can I use SO_NEW_DOCUMENT_ATT_SEND_API1 in this case? What about the SAP Connect settings? Any documents/help files/code samples describing the same will be useful.
/SagarHI,
If you want to send the ALV output as it is then you need send it to Spool and then convert it to a PDF then send it via email as an attachment,
or else, if you want to send the data of the output you can send it by the final internal table i mean by using the final Internal table you can send the data by passing this final interanl table to <b>'SO_NEW_DOCUMENT_ATT_SEND_API1'</b>
<u>example for your understanding:</u>
DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
DATA: OBJHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
DATA: OBJBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: OBJTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE.
DATA: DOC_CHNG LIKE SODOCCHGI1.
DATA: TAB_LINES LIKE SY-TABIX.
DATA L_NUM(3).
Creation of the document to be sent
File Name
DOC_CHNG-OBJ_NAME = 'SENDFILE'.
Mail Subject
DOC_CHNG-OBJ_DESCR = 'Delivered Mail'.
Mail Contents
OBJTXT = 'Object text'.
APPEND OBJTXT.
DESCRIBE TABLE OBJTXT LINES TAB_LINES.
READ TABLE OBJTXT INDEX TAB_LINES.
DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
Creation of the entry for the compressed document
CLEAR OBJPACK-TRANSF_BIN.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 0.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'RAW'.
APPEND OBJPACK.
Creation of the document attachment
LOOP AT ITAB_DATA.
CONCATENATE ITAB_DATA-PRODUCTOR
ITAB_DATA-VBELN
ITAB_DATA-POSNR
ITAB_DATA-MATNR INTO OBJBIN.
APPEND OBJBIN.
ENDLOOP.
DESCRIBE TABLE OBJBIN LINES TAB_LINES.
OBJHEAD = 'ORDERS'.
APPEND OBJHEAD.
Creation of the entry for the compressed attachment
OBJPACK-TRANSF_BIN = 'X'.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 1.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'TXT'.
OBJPACK-OBJ_NAME = 'WEBSITE'.
OBJPACK-OBJ_DESCR = 'ORDERS.TXT'.
OBJPACK-DOC_SIZE = TAB_LINES * 255.
APPEND OBJPACK.
Completing the recipient list
target recipent
clear RECLIST.
RECLIST-RECEIVER = '[email protected]'.
RECLIST-EXPRESS = 'X'.
RECLIST-REC_TYPE = 'U'.
APPEND RECLIST.
copy recipents
clear RECLIST.
RECLIST-RECEIVER = '[email protected]'.
RECLIST-EXPRESS = 'X'.
RECLIST-REC_TYPE = 'U'.
RECLIST-COPY = 'X'.
APPEND RECLIST.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOC_CHNG
TABLES
PACKING_LIST = OBJPACK
OBJECT_HEADER = OBJHEAD
CONTENTS_BIN = OBJBIN
CONTENTS_TXT = OBJTXT
RECEIVERS = RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
ENDFORM. " SEND_MAIL -
Order output send with attachment to external email recipient
Hello,
We have a requirement that we should be able to send an email with an orderconfirmation attached (like BA00) to specific contact persons (maybe one, maybe multiple contact persons) But this should be not the email in the customer master general data. This email is not internal, we need to send external emails with the document attached (PDF).
Also this requirement should be also for invoices (RD00), it could be that this is an other person than the contact person for the order confirmation.
Our first thought was to use the contact persons and create 2 new entries, order confirmation recipient and invoice recipient. In this contact person we can add an e-mail address .
First, we created a condition record for output BA00 in VV12. We use standard communication strategy CS01 and with partner function CP (Contact Person) and add the number of the contact person (which is found in customer master).
Only then we get the following messages:
Message no. AM016
Please enter an address number
Message no. SVN000
Communication type cannot be used
Ok, this is due to that CP is missing in partner functions, so we add this then the output is send to the contact person. This is fine and working.
But the problem is that we want to have this for multiple recipients, so for example 2 contact persons. You cannot create the same condition record for two recipients, so you can leave the partner empty in VV12. But when you enter an order, you get a popup for which CP you want to create this order. So only one is possible.
Now we saw that there is a partner function MA (Mail partner address) is available. I have looked and searched but cannot find the exact function of this partner function. Like the MP (Mail partner) is internal, I expect this one to be external mail.
But the only problem is with this partner function, we cannot add this to the partner determination for customer master.
So how are we able to set this up? Any suggestion is appreciated and when usable also awarded.Read note 191470 - Purchase order as an e-mail.pdf
-
Forward PO as pdf attachment from Services for Object to external emails.
Hi, I am trying to forward PO to external email address from PO services for objects. I could not send as pdf document to external email address. SAP users are receving as SAP object in inbox. I can achieve this trough Message Determination for vendors. However my requirement is to forward to muliple external parties and internal users who do not have SAP access. Please advise any configuration or development need to be carried out to forward PO as pdf attachment. Advance thanks for your valuable inputs.
check answer given by Soumyaprakash in below thread:
http://forums.sdn.sap.com/thread.jspa?threadID=2111142 and
also have a look at below thread
http://forums.sdn.sap.com/thread.jspa?threadID=1324971
but i would like to know why you need to send PO to anybody but supplier?
yogesh
Edited by: Yogesh Lohiya on Feb 8, 2012 7:25 PM -
ICal Server external Email Invitations Not working for names with umlauts!!
Hi,
I was testing external email invitations with iCal Server on Lion Server and encountered that if a Name that can Be resolved via iPhone or mac addressbook or even the sending iCal Account contains an umlaut something like this show up in iCal Server error log:
2011-09-26 17:01:18+0200 [-] [mailgateway] 2011-09-26 17:01:18+0200 [-] [twext.web2.server#error] [Failure instance: Traceback: <type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xc3 in position 90: ordinal not in range(128)
2011-09-26 17:01:18+0200 [-] [mailgateway] /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/internet/defer.py:388:errback
2011-09-26 17:01:18+0200 [-] [mailgateway] /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/internet/defer.py:455:_startRunCallbacks
2011-09-26 17:01:18+0200 [-] [mailgateway] /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/internet/defer.py:542:_runCallbacks
2011-09-26 17:01:18+0200 [-] [mailgateway] /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/internet/defer.py:1076:gotResult
2011-09-26 17:01:18+0200 [-] [mailgateway] --- <exception caught here> ---
2011-09-26 17:01:18+0200 [-] [mailgateway] /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/internet/defer.py:1018:_inlineCallbacks
2011-09-26 17:01:18+0200 [-] [mailgateway] /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/python/failure.py:350:throwExceptionIntoGenerator
2011-09-26 17:01:18+0200 [-] [mailgateway] /usr/share/caldavd/lib/python/twistedcaldav/resource.py:310:renderHTTP
2011-09-26 17:01:18+0200 [-] [mailgateway] /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/internet/defer.py:1018:_inlineCallbacks
2011-09-26 17:01:18+0200 [-] [mailgateway] /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/python/failure.py:350:throwExceptionIntoGenerator
2011-09-26 17:01:18+0200 [-] [mailgateway] /usr/share/caldavd/lib/python/twext/web2/static.py:127:renderHTTP
2011-09-26 17:01:18+0200 [-] [mailgateway] /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/internet/defer.py:1018:_inlineCallbacks
2011-09-26 17:01:18+0200 [-] [mailgateway] /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/python/failure.py:350:throwExceptionIntoGenerator
2011-09-26 17:01:18+0200 [-] [mailgateway] /usr/share/caldavd/lib/python/twext/web2/resource.py:109:renderHTTP
2011-09-26 17:01:18+0200 [-] [mailgateway] /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /twisted/internet/defer.py:1020:_inlineCallbacks
2011-09-26 17:01:18+0200 [-] [mailgateway] /usr/share/caldavd/lib/python/twistedcaldav/mail.py:334:http_POST
2011-09-26 17:01:18+0200 [-] [mailgateway] /usr/share/caldavd/lib/python/twistedcaldav/mail.py:958:outbound
2011-09-26 17:01:18+0200 [-] [mailgateway] /usr/share/caldavd/lib/python/twistedcaldav/mail.py:1199:generateEmail
2011-09-26 17:01:18+0200 [-] [mailgateway] ]
2011-09-26 17:01:18+0200 [-] [caldav-1] [AuthorizedHTTPGetter,client] [twistedcaldav.scheduling.imip#error] Could not do server-to-imip request : <twistedcaldav.scheduling.imip.ScheduleViaIMip object at 0x103c65ed0> 500 Internal Server Error
2011-09-26 17:01:18+0200 [-] [caldav-1] [AuthorizedHTTPGetter,client] [twistedcaldav.scheduling.scheduler.ScheduleResponseQueue#error] Error during PUT for mailto:someemailaddress@yourdomain: iMIP request failed
And No Email is send!
If changing the Umlaut ü to something like ue in the Sender or Receiver Name everything is alright!
Thank you Apple for obviously Not testing Lion Server for international use :-/
Maybe this help someone else who is using umlauts with iCal Server external Email invitations
Regards
EldrikHello Daryn,
Thinks for commenting. I am very upset that Apple just said "No" when I asked for this to be fixed. There appears to be no way to submit this as an official bug that keeps ical from running.
Apple actually had me reinstall my whole server and the issue was still there and then they just said "Oh, well I will email someone about it.".
This is the first time Apple has stunk it up in my books. This is bad support for Server.
Brad
Maybe you are looking for
-
Hi experts, I am having the export dump for the whole database but i have to import into another database without any data in the tables... can any one guide me
-
IMovie app not installed properly?
I have iMovie installed on my iPad2 and it often appears to be installing updates when I haven't asked it to (the icon on the home screen goes grey and waiting appears) no other apps do this? Help?
-
Cannot download pre-ordered album
After using the link in the iTunes Email i received, or using the 'search for available downloads' options in the store menu: it tries to connect to the store. After a while it stops and says 'the connection to the store was broken, try again later.'
-
Buttons getting disabled in INBOX page of ICWC
Hi All, We are trying to add a new column in INBOX result view of ICWC, AuiItem.htm. Now for this we have inherited the standard ITERATOR class and created a Z class and wrote the code for fetching the data for newly created column. Now when we are r
-
Upgrading Powerbook G4 from USB 1 to USB 2
Can someone tell me is it possible to upgrade a Powerbook G4 15" which is fitted with two USB1 ports to USB2, please? I would probably take it to an Apple Store rather than attempt it myself. Thank you.