Cannot send external emails from SAP
Hi,
I am trying to set up emails to external systems, but for some reason it is not working. I have checked the port number for the SMTP server with the administrator and it is the default one, the SMTP server name, and also in SCOT the INT portion has a * in it.
I am able to send emails to internal domain (our work email domain) but when sending it to external domains, it keeps coming back with the error message " recipient unknown".
I have some doubts but am not sure if these should / could be the problem.
1. Is there a job that need to run periodically for sending emails.
2. Should there be a * in SCOT in the INT part ? or should it be @.com or something else.
3. Is there anything else that I am missing?
Platform : ECC 6.0
Thanks,
Kunal
Hi Adam,
Thanks for your reply. Here is what I have set up for the instructions you provided me.
1. I<b>n SCOT, menu 'Settings' --> 'Default Domain'</b> I have my work domain set up.
Assume that I work for ebay.It is set up as ebay.com. I am able to send emails to [email protected] want to be able to send emails to other domains.
Question : Should I be setting up the name of the domain that I want to send emails to ? I dont think that this is feasible. But still I might be wrong.
2. <b>Your SMTP server should have added this SAP server into its auth list.</b>
Yes. I have checked on this with my SMTP administrator. The ip of that SAP server is in the authorization list.
3.<b>A periodic job ( 2 minutes? 5 minutes? etc) should be defined for sending Emails automatically</b>
I have the following jobs running when I go to jobs in SCOT
MAILSERVERSEND INT 5min 14:46:52
SAPCONNECT INT SEND 1 INT 10min 14:55:00
Is there any other job that needs to be running for this?
4.<b>A '*' should be defined in 'SCOT' -->'INT' --> 'Internet' --> 'Address areas'</b>
Yes, There is.
Thanks,
Kunal
Similar Messages
-
Sending external email from SAP with following requirements...
Hi All,
I need to send external emails from SAP by meeting following requirements.
1) With subject line more than 100 characters.
2) No attachments, only body which has specific format (blueprint/layout) and would be amended often, hence code shouldn't be touched during amendments.
3) Should be able to know the success/failure of mail sending at program level.Hi,
The code below demonstrates how to send an email to an external email address
*& Report ZSENDEMAIL *
*& Example of sending external email via SAPCONNECT *
REPORT zsendemail .
PARAMETERS: psubject(40) type c default 'Hello',
p_email(40) type c default '[email protected]' .
data: it_packing_list like sopcklsti1 occurs 0 with header line,
it_contents like solisti1 occurs 0 with header line,
it_receivers like somlreci1 occurs 0 with header line,
it_attachment like solisti1 occurs 0 with header line,
gd_cnt type i,
gd_sent_all(1) type c,
gd_doc_data like sodocchgi1,
gd_error type sy-subrc.
data: it_message type standard table of SOLISTI1 initial size 0
with header line.
*START-OF-SELECTION.
START-OF-SELECTION.
Perform populate_message_table.
*Send email message, although is not sent from SAP until mail send
*program has been executed(rsconn01)
PERFORM send_email_message.
*Instructs mail send program for SAPCONNECT to send email(rsconn01)
perform initiate_mail_execute_program.
*& Form POPULATE_MESSAGE_TABLE
Adds text to email text table
form populate_message_table.
Append 'Email line 1' to it_message.
Append 'Email line 2' to it_message.
Append 'Email line 3' to it_message.
Append 'Email line 4' to it_message.
endform. " POPULATE_MESSAGE_TABLE
*& Form SEND_EMAIL_MESSAGE
Send email message
form send_email_message.
Fill the document data.
gd_doc_data-doc_size = 1.
Populate the subject/generic message attributes
gd_doc_data-obj_langu = sy-langu.
gd_doc_data-obj_name = 'SAPRPT'.
gd_doc_data-obj_descr = psubject.
gd_doc_data-sensitivty = 'F'.
Describe the body of the message
clear it_packing_list.
refresh it_packing_list.
it_packing_list-transf_bin = space.
it_packing_list-head_start = 1.
it_packing_list-head_num = 0.
it_packing_list-body_start = 1.
describe table it_message lines it_packing_list-body_num.
it_packing_list-doc_type = 'RAW'.
append it_packing_list.
Add the recipients email address
clear it_receivers.
refresh it_receivers.
it_receivers-receiver = p_email.
it_receivers-rec_type = 'U'.
it_receivers-com_type = 'INT'.
it_receivers-notif_del = 'X'.
it_receivers-notif_ndel = 'X'.
append it_receivers.
Call the FM to post the message to SAPMAIL
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
exporting
document_data = gd_doc_data
put_in_outbox = 'X'
importing
sent_to_all = gd_sent_all
tables
packing_list = it_packing_list
contents_txt = it_message
receivers = it_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.
Store function module return code
gd_error = sy-subrc.
Get it_receivers return code
loop at it_receivers.
endloop.
endform. " SEND_EMAIL_MESSAGE
*& Form INITIATE_MAIL_EXECUTE_PROGRAM
Instructs mail send program for SAPCONNECT to send email.
form initiate_mail_execute_program.
wait up to 2 seconds.
if gd_error eq 0.
submit rsconn01 with mode = 'INT'
with output = 'X'
and return.
endif.
endform. " INITIATE_MAIL_EXECUTE_PROGRAM
Hope this helps.
Reward if helpful.
Regards,
Sipra -
To send external email from ABAP
How to send external email from ABAP Program and what are the settings to be done for the same ?
Please check..
Sending External email through SAP
What is the FM for sending the external email through SAP by attaching layout set to it?
These are the FM for sending external email :-
SO_DOCUMENT_SEND_API1
SAPoffice: Send new document with attachments via RFC
SO_NEW_DOCUMENT_ATT_SEND_API1
(In 4.6C only, You can go to SE37 and click the documentation on how to use it. A sample program is provided there.)
SAPoffice: Send new document with attachments via RFC
Note : If you are using FM SO_NEW_DOCUMENT_ATT_SEND_API1 then Export Parameter DOCUMENT_DATA-OBJ_DESCR contains the Subject.
SO_NEW_DOCUMENT_SEND_API1
SAPoffice: Send new document
How to send a report to an external mail-id?
Try this sample code :-
REPORT ZREPORT_TO_EMAIL NO STANDARD PAGE HEADING LINE-SIZE 200.
DATA : BEGIN OF ITAB OCCURS 0,
PERNR LIKE PA0001-PERNR,
ENAME LIKE PA0001-ENAME,
END OF ITAB.
DATA: message_content LIKE soli OCCURS 10 WITH HEADER LINE,
receiver_list LIKE soos1 OCCURS 5 WITH HEADER LINE,
packing_list LIKE soxpl OCCURS 2 WITH HEADER LINE,
listobject LIKE abaplist OCCURS 10,
compressed_attachment LIKE soli OCCURS 100 WITH HEADER LINE,
w_object_hd_change LIKE sood1,
compressed_size LIKE sy-index.
START-OF-SELECTION.
SELECT PERNR ENAME
INTO CORRESPONDING FIELDS OF TABLE ITAB
FROM PA0001
WHERE PERNR < 50.
LOOP AT ITAB.
WRITE :/02 SY-VLINE , ITAB-PERNR, 15 SY-VLINE , ITAB-ENAME, 50
SY-VLINE.
ENDLOOP.
Receivers
receiver_list-recextnam = '[email protected]'. "-->
EMAIL ADDRESS
RECEIVER_list-RECESC = 'E'. "<-
RECEIVER_list-SNDART = 'INT'."<-
RECEIVER_list-SNDPRI = '1'."<-
APPEND receiver_list.
General data
w_object_hd_change-objla = sy-langu.
w_object_hd_change-objnam = 'Object name'.
w_object_hd_change-objsns = 'P'.
Mail subject
w_object_hd_change-objdes = 'Message subject'.
Mail body
APPEND 'Message content' TO message_content.
Attachment
CALL FUNCTION 'SAVE_LIST'
EXPORTING
list_index = '0'
TABLES
listobject = listobject.
CALL FUNCTION 'TABLE_COMPRESS'
IMPORTING
compressed_size = compressed_size
TABLES
in = listobject
out = compressed_attachment.
DESCRIBE TABLE compressed_attachment.
CLEAR packing_list.
packing_list-transf_bin = 'X'.
packing_list-head_start = 0.
packing_list-head_num = 0.
packing_list-body_start = 1.
packing_list-body_num = sy-tfill.
packing_list-objtp = 'ALI'.
packing_list-objnam = 'Object name'.
packing_list-objdes = 'Attachment description'.
packing_list-objlen = compressed_size.
APPEND packing_list.
CALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
object_hd_change = w_object_hd_change
object_type = 'RAW'
owner = sy-uname
TABLES
objcont = message_content
receivers = receiver_list
packing_list = packing_list
att_cont = compressed_attachment. -
Cannot send an email from my alias Mobile Me account from the iPhone.
I have a Mobile Me email account which works perfectly on my Mac and iPhone. I created a an Alias Mobile Me Account on the web.
I am able to create a new email from the alias account on the Mac.
The iPhone will not recognize the alias account, I cannot add it or sync the account.
I cannot send an email from my alias Mobile Me account from the iPhone.To all frustrated MobileMe alias owners who want to send email from iPhone - please go to the feedback area of the apple.com and leave messages regarding this issue. I had a lengthy conversation with a tech support guy who agreed that this is a needed fix - he said to initiate a grass roots effort - and that by all of us leaving messages it will eventually get attention and fixed. Why would Apple give us the ability to create alias's, use them on mobileme website, on our mac mail programs, but NOT the iPhone, which is the MOBILE device. Silly. Please protest!! Thanks.
-
I cannot send an email from my iPad 2? No problem receiving, why does this happen? Have tried the suggestions for setting up email and after doing the sync mail through iTunes receiving worked great but still cannot send? Any help would be great!
The fact that you can receive means you have a valid e mail address, and have established the connection to the incoming server, so all of that works. Since the send does not work, that means your outgoing server is rejecting whatever settings you used formthe outgoing set up. Try them again.
Google your particular isp, and ipad and many times you will find the exact settings needed for your isp. Or tell us here, and soneone else may be on the same isp. Some mail services need you to change a port, or have a unique name for the outgoing server.
Kep trying. -
I cannot send Yahoo eMail from iPad or iPhone, but I can receive
I cannot send Yahoo eMail from iPad or iPhone, but I can receive.
iOS: Unable to send or receive email
http://support.apple.com/kb/TS3899
Can’t Send Emails on iPad – Troubleshooting Steps
http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
iPad Mail
http://www.apple.com/support/ipad/mail/
Cheers, Tom -
Since upgrading to IOS 8.1.2 on my iPad3, I cannot send/receive emails from either of my Apple or Verizon email accounts. I confirmed that my internet connection is working. Does anyone know how to fix this problem or how to go back to IOS 8.1.1?
Hi Milrclan,
Thanks for contributing to the Apple Support Communities.
If you're not able to send or receive email from the mail accounts on your iPad after updating iOS, start with these troubleshooting tips:
Get help with Mail on iPhone, iPad, and iPod touch - Apple Support
Best Regards,
Jeremy -
I want to send outbond email from SAP ERP to Gmail useing SBWP transaction , for that i want standered BADI or BAPI or RFC to send an outbond mail.i want to send a email from sbwp t-code in that t-code we have title text box and body text box and receipent and receipent type,after entering alll those values i want trigger my badi /bapi/rfc and also that mail goes to receipent Gmail indox and also sap user outbox in sbwp t-code
Moderator message: Welcome to SCN!
Moderator message: this is considered "spec dumping", please work yourself first on your requirement.
[Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
[Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
Edited by: Thomas Zloch on Jul 13, 2011 9:25 AMCheck note 455140 - Configuration of e-mail, fax, paging or SMS using SMTP
Markus -
I cannot send an email from my iphone
I have entered all of the information for my in-coming and outgoing server into my iphone 4s. However, I cannot send an email and the message reads as follows "The sender address XX.net was rejected by the server.
Did you check your user name and password in Settings>Mail,Contacts,Calendars...tap your email account, tap SMTP, then tap the primary server name. Make sure the settings there are correct.
-
I cannot send an email from my iPad?
I cannot send email from my iPad all of a sudden? I can receive them though
I have this same issue. Resetting does not affect the issue. I have tried syncing it with itunes. Turning the ipad off and restarting...
It says user name or password is incorrect. Strange. It has worked for over 6 months just fine. I reentered the info and still get the same response.Anyone have this same issue and find a solution?
Thanks -
Cannot send an email from within contacts on iPhone
I’m trying to send email from within my contacts list app on my iPhone but the send button will not highlight and therefore cannot be pressed to send the email. Sending email from the mall app works fine. Anyone know why this is happening?
That also occurs for me and looks like a bug. The problem seems to be that, although the "To" address appears in the draft email, the iPhone does not think that it is there and won't activate the Send button. If one simply touches the "To" field the address disappears.
Submit this as a bug at http://www.apple.com/feedback/iphone.html -
I cannot send gmail emails from Mail on my IMac.
I cannot send emails from Mail on my iMac using gmail. I get the following error message:
The SMTP server “relay.gradwell.net” rejected the password for user “succeed”
Neither of these have anything to do with my username or password, which I have checked are correctly entered in Accounts.Troubleshooting Apple Mail
What does Mail/Window/Connection Doctor Show? If the server is red, select it and look at the Show Details box.
Troubleshooting sending and receiving email messages
Troubleshooting sending email messages
SMTP servers keep going offline -
Sending external email from forms
Hello.
I want to send an email using a form and a report. The report is the attachment of the email. I run the report from form using this command
v_rep := RUN_REPORT_OBJECT(repid);
If i send the mail to an internal address, works properly. If i want to send the email to an external address i have this error:
FRM-41214
Error when running report ORA - 0000: normal, successful completion
I made a check with telnet on my computer and i managed to send an mail to an external address.
Anyone has any idea?
Thanks.I looked at the logs on the SMTP server, the extern mail doesn't even reach the SMTP server queue.
I enabled the trace for the report server and I get this error:
[2008/6/6 0:52:18:703] Exception 50152 (): Error while sending mail - Sending failed;
nested exception is:
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
javax.mail.SendFailedException: 550 5.7.1 Unable to relay for [email protected]
oracle.reports.RWException: IDL:oracle/reports/RWException:1.0
at oracle.reports.utility.Utility.newRWException(Utility.java:756)
at oracle.reports.server.MailService.send(MailService.java:492)
at oracle.reports.server.DesMail.sendFile(DesMail.java:186)
at oracle.reports.server.Destination.send(Destination.java:489)
at oracle.reports.server.JobObject.distribute(JobObject.java:1582)
at oracle.reports.server.JobManager.updateJobStatus(JobManager.java:2231)
at oracle.reports.server.EngineCommImpl.updateEngineJobStatus(EngineCommImpl.java:134)
at oracle.reports.server._EngineCommImplBase._invoke(_EngineCommImplBase.java:94)
at com.sun.corba.se.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:353)
at com.sun.corba.se.internal.iiop.ORB.process(ORB.java:280)
at com.sun.corba.se.internal.iiop.RequestProcessor.process(RequestProcessor.java:81)
at com.sun.corba.se.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:106)
Thanks -
When sending emails from iPad,I get message: email was rejected by server. I am receiving mail to rejected email address
Try going into Settings > Mail, Contacts, Calendars > select the account > account name , tap on SMTP (under the 'Outgoing Mail Server' heading) and then tap on your Primary Server and try entering your email account and password and see if it then works
-
Keep getting this message when trying to send a group email from the address book -"The size of the message you are trying to send exceeds a temporary size limit of the server. The message was not sent, try to reduce the message size or wait some time and try again. The server responded: 4.1.1... temporary failure."
Comcast has checked it - the issue is not the server they say. This problem just started 4 days ago. It appears other people have this problem on the thunderbird forum and it has not been resolved yet.The Comcast server is issuing the error message. Have them explain how this is not their problem.
Maybe you are looking for
-
How do I transfer the songs from my desktop to my iPad using the same iTunes account? I can only sync the other way. Thanks
-
After ios5 update, photos and safari cannot flip horizontally
It seems the function to flip horizontally has disappeared. It isn't only with photos and safari, but games or anything that had the ability to do so. Thanks!
-
How do I turn off back upp password?
How do I turn off back upp password?
-
Is It Necessary to Install Visual C++ before Oracle E-business suite Instal
Hi Gurus/Experts I have Downloaded all 45 Files. NoW Is it Necessary to Install Visual C++ before Oracle E-business Suite. And Also How much Space ORacle E-business suite will take After Installation.....I am Having 100 GB free space
-
Hi, My printer is the HP psc 1215 all-in-one the scanner,photocopying works fine.but when i plug in the cable to print something from my laptop,it says harware not recognized and i tried uninstalling and installing again but does not work.i also boug