How to send mails to external maild like yahoo
I am using 'SO_NEW_DOCUMENT_ATT_SEND_API1'
funtion module to send mails to internal office mail ids and working correctly .
Not the requirement changed . I need to send mail to external mail id like
per at the rateyahoo dot com also.
What can I do to send mail to external mailids like yahoo.
Do I need to use flag some thing ?
THANSK IN ADVANCE.
Hi,
Hi,
It is posible to send the mail to external address usign the above FM . But some configurations have to be maitnaied in SCOT Tcode for INT (Internet) ->SMTP protocal. we need to give the Mail Host and Mail Port all this information is usually done by the BASIS. Please approach them for these settings and try again with the FM. Here we have to configure it to Yahoo so that we can send the mail.
Regards
Lekha
Similar Messages
-
Problem in workflow sending mails to external domains like yahoo,gmail etc.
hi
i have one probs in my workflow that when i am sending mail to an external id it is not going to gmail,yahoo or hotmail etc.
it is being send to a particular domain say XYZ
but outside it ,no mail is send
and error is coming that recepient is unknown
we have firewalls being placed on smtp
and each and every setting in SCOT has been checked thorughly
but still mail except to one domain is not going outside
i have came across the info that since SAP doesn have any user id authentication but SMTP does has ,so when mail is being send outside the mail sending is failed,one option could be to disable the authentication at SMTP but thats doesn come inside the policy of client
so i think there must be a way out in SAP to deal with this
please suggest how can i send the mails externally,i ahve checked each and every thing inside my SMTP configuration ,adress is defined as * here but still mail is being send to internal domain of the client in which i am working ,but not at all to the external domains like gmail,yahoo etc.
any help will be highly appreciated
best regards
ashishHi Ashish,
I think you will need to check with your exchange guys because probably the exchange server will not relay the messages form the SAP server to external e-mail domains.
Regards,
Martin -
WorkFlows:How to send mail to external address
Hi all,
I am new to workflows, I want to send mail to my outlook form workflow. I have added mail id in Tcode: SO13 in Automatic Forwarding Tab. when I excute the workflow by adding mail step. the mail is going to sap inbox but it is not going to my outlook. Can anybody please explain.
Thanks in Advance.
Edited by: Ranjith Reddy on Feb 20, 2009 11:32 AMHi,
The 'SendMail' activity is failing in my workflow if I give the Recipient type 'E-mail Address' and hard code the email id. I tried the other way of giving expression also, both have resulted in error halting the workflow.
Is there any other configuration need to be done to send mail to external system (mail server) ? Please help .
Regards,
Gowri.S -
How to send Mail to external system - Check the program ?
Hi all,
The following is a ABAP Program to Send a mail to external mail id. this program is not showing error but when executed it say "No message sent"
what i've to do to overcome this hurdles. if any solution or prerequisites then '
please give me a solution.
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
Thanks in Advance,
ManianHi,
I can get the idea but i'm asking u about the prerequisites such as SCOT - sap connect or something else has to be done before executing the program.
if i need any pls let me know?
I've tried the program but it say " No Message sent" and i didn't get any mail to mail id.
thanks in advance,
Manian. -
How to send mail to external email within workflow
Hi Expert,
I know this question has been questioned before in the forum but that is quite different from what i want. After researching in this forum i found out that forwarding was the way to move the inbox into the external mail (using scheduled job) but what i want is to include send mail activity within the workflow that directly send email into the external email ( so no scheduled job). The logic is perhaps:
1. get the email address
2. use send mail activity
3. Assign the element defined to E-Mail Address.
4. send the email.
But I'm unable to retrieve the email address, store it and pass it into the email (as element). Can somebody help me with this?
Many Thanks.Use the below code(rule(fm)), hope it works for you.
I have placed the SAP user id's in custom table & inserted e-mailid's to them in su01.
FUNCTION ZMANI_GET_PLANNER.
*"*"Local Interface:
*" TABLES
*" AC_CONTAINER STRUCTURE SWCONT OPTIONAL
*" ACTOR_TAB STRUCTURE SWHACTOR
*" EXCEPTIONS
*" NOBODY_FOUND
INCLUDE <cntn01>.
TYPES : BEGIN OF ty_users.
INCLUDE STRUCTURE ZMANI_AGENT_MAST.
TYPES : END OF ty_users.
DATA: org_agent LIKE wfsyst-agent,
lt_holders TYPE STANDARD TABLE OF swhactor,
lwa_holders TYPE swhactor,
* lt_users TYPE STANDARD TABLE OF ty_users,
lwa_users TYPE ty_users,
v_len TYPE i,
* v_bname LIKE ztest_users-bname,
num_lines TYPE i.
** Read values assigned to the rule criteria
swc_get_element ac_container 'org_agent' org_agent.
* Get the superior
SELECT SINGLE *
FROM ZMANI_AGENT_MAST
INTO CORRESPONDING FIELDS OF lwa_users
WHERE MMC = 'Y'.
IF NOT lwa_users IS INITIAL.
REFRESH lt_holders[].
lwa_holders-otype = 'US'.
lwa_holders-objid = lwa_users-BNAME.
APPEND lwa_holders TO lt_holders.
APPEND LINES OF lt_holders TO actor_tab.
ENDIF.
DESCRIBE TABLE actor_tab LINES num_lines.
IF num_lines IS INITIAL.
RAISE nobody_found.
ENDIF.
ENDFUNCTION. -
How to send mails to External Email-ID.
I have simple Workflow which I have Created to Just Send Mail to SAP-B WorkSpace on execution of the WF.
Can Anyone tell me how to Many populate the Workflow to Send this mail to External Email-ID.
Regards,
ShashankHello,
In the sendmail step of the workflow, use the option of email address for 'Recipient type' and provide the workflow container element which has the external mail address of the user to whom the mail is to be sent or directly the email address directly. Then contact the basis people to check for any scheduled background job to send the mail from SAP to external mail address. If there is no job present, advise them to create one.
Hope this will help.
Regards,
Samson -
How to send mail to external system
Dear WF Experts,
I have done all the work flow setting in project system module , so that if budget exceeds bya certain %, then mail should go to concern person and its working fyn.
Now i want that same mail to go to some external MS-outlook id.
I tried by putting the mail address in Setting->office setting->automatic forwarding and entered the address.
But the mails are not getting transfered and in SOST transaction i can see the error message like 'Message cannot be transferred to node SMTP due
connection error (final)'
can anybody suggest, where may b d mistake.
thnx in adv.
ashisHi Ashis,
This is a very common problem and if you search the forums thoroughly you would find some very good replies to it.
The error that you are getting is because there is some error in the SMTP connectivity established in the system. Ask your basis team to check the SCOT settings.
Check if the correct SMTP host and port been specified in the SCOT settings.
Also check if OSS note 455140 has been applied to your system.
Regards,
Saumya -
How to send sapmails to external mail systems
Hi,
how to send sapmails to external mail systems....
like if we want to mail a purchase order from SAP System to *@yahaoo.com or @.com.
TY.hi manish,
u can do it.
chk this .
chk this code
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.
*& Form f_send_mail
text
--> p1 text
<-- p2 text
FORM f_send_mail .
*store the vendor name, vendor email id , employee name and employee
*email id in the internal table int_crb
Creation of the document to be sent
CLEAR doc_chng.
REFRESH objpack.
REFRESH objhead.
REFRESH reclist.
REFRESH objtxt.
File Name
doc_chng-obj_name = 'SHIPMENT'.
Mail Subject
CONCATENATE 'Shipment Document No.' int_crb_mail-shipdocnum
'Cleared.'
INTO doc_chng-obj_descr SEPARATED BY ' '.
Mail Contents
objtxt-line = 'Hi,'.
APPEND objtxt.
objtxt-line = ' '.
APPEND objtxt.
CONCATENATE 'Shipment Document Number ' int_crb_mail-shipdocnum
' cleared for move.' INTO objtxt-line SEPARATED BY ' '.
APPEND objtxt.
objtxt-line = ' '.
APPEND objtxt.
CLEAR objtxt.
objtxt-line = 'Regards '.
APPEND objtxt.
objtxt-line = ' '.
APPEND objtxt.
objtxt-line = 'SAP '.
APPEND objtxt.
CLEAR objtxt.
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.
Completing the recipient list
target recipent
CLEAR reclist.
reclist-receiver = int_crb_mail-empperid. "employee email ID
"wf_empperid.
reclist-express = 'X'.
reclist-rec_type = 'U'.
APPEND reclist.
copy recipents
CLEAR reclist.
reclist-receiver = int_crb_mail-smtp_addr."vendor email id
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.
COMMIT WORK.
SUBMIT rsconn01
WITH mode = 'INT'
WITH output = ' '
AND RETURN.
ENDFORM. " f_send_mail
for any clarifiaction pls mail me.
pls reward points, if this helped u.
regards,
anversha.
[email protected] -
Sending Mails to external domains
Hi,
Scenario:
--I am having OCS 10g 10.1.2.3.0 on a singlebox RHEL ES Rel3 (taroon update4)
--I have an Exchange Server on another box with Microsft Exchange Server
--There is one more Proxy Server Box with firewalls having a proxy port to access the internet
I was able to send mails from Oracle Workspaces to the OCS local domain but not to the external domains like yahoo.com, hotmail.com
I was not able to ping the yahoo mail server or hotmail mail server, since the intenet connection is not a direct connection.
Can i have any workaround for this.. or how can i configure the current system to facilitate sending mails from OCS to other email domains also..?
Many Thanks in advance..,
Regards,
PrasantHi,
We are having the same problems (mail to external domains). I didn't catch what was done to correct the problem. Could you please repeat what was set.
Thanks much,
Kim -
Problem while sending mail to external mail ids
Hi All,
while trying to send mail to external mail ids through some custom program, i'm facing an error as "recipient not in address management".
Can anyone giude me why this is occuring and actually what is this Address management?
Thanks & Regards,
Anil.Hi,
Check this sample code..
http://www.sapdevelopment.co.uk/reporting/email/email_mbody.htm
* Add the recipients email address
clear it_receivers.
refresh it_receivers.
<b> it_receivers-receiver = p_email.
it_receivers-rec_type = 'U'.
it_receivers-com_type = 'INT'.</b>
it_receivers-notif_del = 'X'.
it_receivers-notif_ndel = 'X'.
append it_receivers.
what Fm you are using..?are you specifying like above for e-mail address..
Regards
vijay -
How to send mail in html format in jsp???
Hello everybody,
I have two jsp pages.In one page I have the heading like Date,Transaction.I am retriving data from my second jsp page.And I hae included the second jsp page to my first jsp page.How to send mail this content in html format.
Thanks
SrikantMimeMessage m = new MimeMessage(session);
BodyPart messageBodyPart = new MimeBodyPart();
messageBodyPart.setContent(content, "text/html");this if u need to send a mail content as html -
Failed to send mail to external domain via portal
Hi Gurus,
By following the configuraion instructions in <b>SAP library - Collaboration - Groupware - Installing and Configuring E-Mail Connectivity</b>, I managed to send mail to recipients who reside in same domain e.g. <b>[email protected]</b> via portal.
However, I failed to send mail to external domain e.g. <b>[email protected]</b>. I got the following error message:
The mail could not be sent to the specified recipients com.sap.ip.collaboration.gw.impl.transport.javamail.exception.MailSendException: The mail could not be sent to the specified recipients
at com.sap.ip.collaboration.gw.impl.transport.javamail.JavaMailTransport.sendMail(JavaMailTransport.java:183)
--------- exception is chained. Original exception ------------
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
javax.mail.SendFailedException: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:804)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:320)
Please help.
Thanks alot.Hi Ajey,
Thanks for your reply. I had tried your suggestion but same problem occurred with same error output.
Actually, I encounterred this error message before in my <b>Microsoft Outlook</b>, where System Admin returned me a mail saying that, my mail was undeliverable with the same error message. But this can be solved by applying the <b>Internet Email Account Setting - Outgoing Server - My outgoing server (SMTP) require authentication</b>.
So I am wondering,
1) This problem is caused by SMTP server?
2) Is there any workaround (like the Outlook Setting) I can configure in Portal?
Do you have any idea?
Thanks,
HauChee -
How to send mail to distribution list ?
Hi Everybody,
Pls let me know how to send mail to distributed list???
Thanks & Regards,
raju<b></b>Hi ,
Use Function Module 'SO_NEW_DOCUMENT_SEND_API1'.
U need to pass Distribution list to Receiver and 'C' to receiver type refer the below code for clarification.
Determine the Distribution List.
gv_rec_list-receiver = gv_distribution.
gv_rec_list-rec_type = 'C'.
APPEND gv_rec_list.
Check if Distribution List is deleted.
SELECT SINGLE objnam
FROM soid
INTO lc_objnam
WHERE objnam = gv_rec_list AND
dlitp = lc_dli.
IF sy-subrc = 0.
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
document_data = gv_doc_data
document_type = 'RAW'
put_in_outbox = 'X'
TABLES
object_content = gv_obj_cont
receivers = gv_rec_list
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4.
CASE sy-subrc.
WHEN '1'.
message i001(as) with 'TOO MANY RECEIVERS'.
EXIT.
WHEN '2'.
message i001(as) with 'DOCUMENT NOT SENT'.
EXIT.
WHEN '3'.
message i001(as) with 'DOCUMENT TYPE DOES NOT EXIST'.
EXIT.
WHEN '4'.
message i001(as) with 'OPERATION NO AUTHORIZATION'.
EXIT.
ENDCASE.
Hope this might have helped you.
Thanks,
Prashanth -
How can send mails using hotmail/rediffmail domain name?
I have used the below code to send a mail using javamail API?Even when I am sending my application does not have notified any of error/exceptions,But the message is not reached to I have given receipient's address in the to field.
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
public class Sendmail1 extends HttpServlet {
private String smtpHost;
// Initialize the servlet with the hostname of the SMTP server
// we'll be using the send the messages
public void init(ServletConfig config)
throws ServletException {
super.init(config);
smtpHost = config.getInitParameter("smtpHost");
//smtpHost = "sbm5501";
smtpHost = "www.rediffmail.com";
public void doGet(HttpServletRequest request,HttpServletResponse response)
throws ServletException, java.io.IOException {
String from = request.getParameter("from");
String to "[email protected]";
String cc = "[email protected]";
String bcc ="[email protected]";
String smtp ="www.rediffmail.com";
String subject = "hai";
String text = "Hai how r u";
PrintWriter writer = response.getWriter();
if (subject == null)
subject = "Null";
if (text == null)
text = "No message";
String status;
try {
// Create the JavaMail session
java.util.Properties properties = System.getProperties();
if (smtp == null)
smtp = "www.rediffmail.com";
properties.put("mail.smtp.host", smtp);
Session session = Session.getInstance(properties, null);
//to connect
//Transport transport =session.getTransport("smtp");
//transport.connect(smtpHost,user,password);
// Construct the message
MimeMessage message = new MimeMessage(session);
// Set the from address
Address fromAddress = new InternetAddress(from);
message.setFrom(fromAddress);
// Parse and set the recipient addresses
Address[] toAddresses = InternetAddress.parse(to);
message.setRecipients(Message.RecipientType.TO,toAddresses);
Address[] ccAddresses = InternetAddress.parse(cc);
message.setRecipients(Message.RecipientType.CC,ccAddresses);
Address[] bccAddresses = InternetAddress.parse(to);
message.setRecipients(Message.RecipientType.BCC,bccAddresses);
// Set the subject and text
message.setSubject(subject);
message.setText(text);
Transport.send(message);
//status = "<h1>Congratulations,</h1><h2>Your message was sent.</h2>";
} catch (AddressException e)
status = "There was an error parsing the addresses. " + e;
} catch (SendFailedException e)
status = "<h1>Sorry,</h1><h2>There was an error sending the message.</h2>" + e;
} catch (MessagingException e)
status = "There was an unexpected error. " + e;
// Output a status message
response.setContentType("text/html");
writer.println("<title>sendForm</title><body bgcolor= ><b><h3><font color=green><CENTER>CALIBERINFO.COM</CENTER></h3>Your message was sent to recepient(s).<br><font color=red>"+"\n"+to);
writer.println("<br><br><a href=e:/mail/javamail/mail.html>back to compose</a>");
writer.close();
Please any one help me out from this probs.
Awaiting for yours reply,
or give me a reply to: [email protected]
Regards,
@maheshkumar.kHi,
how can send mails using hotmail/rediffmail domain name?In your java application,you specified www.rediffmail.com as your
smtp server.But that is the address of that website.Try will a smtp
server instead.For a list of free smtp servers,please visit http://www.thebestfree.net/free/freesmtp.htm
Hope this helps.
Good Luck.
Gayam.Srinivasa Reddy
Developer Technical Support
Sun Microsystems
http://www.sun.com/developers/support/ -
Error while sending mail to external id
Hai all,
I am trying to send mail to external mail id using the FM SO_NEW_DOCUMENT_ATT_SEND_API1. After executing when i check in sost i m getting an error 'Cannot process message, no route from sapuserto external mail id.
Can anyone help me resolve this issue pls.
Thanks in advance,
NeelaHi,
You have to fill the tables parameter 'PACKING_LIST'.
try with these values
wa_objpack-TRANSF_BIN = space.
wa_objpack-HEAD_START = 1.
wa_objpack-HEAD_NUM = 0.
wa_objpack-BODY_START = 1.
wa_objpack-DOC_TYPE = 'RAW'.
APPEND wa_objpack to it_objpack.
Regards,
Daz.
Maybe you are looking for
-
Safari quit unexpectedly on my Macbook Air, help please
Hi, Today my Macbook Air quit unexpectedly on my McBook Air and it won't load, it keeps giving me the same error message and the option to reload, which it doesn't, but only gives me the same message. I sent the report to Apple, but I need to use my
-
LIVECYCLE Acrobat Pro 9 Data Collection
HELP!! I have created a PDF form using Livecycle Design and I intend to distribute the form to various users; and collect the responses back with the in-built feature in adobe pro 9 ( there is this file called RESPONSE FILE (after I distributed the f
-
Help-connect as sysdba from client
Hi All, I'm using oracle 8i, win2k, and set the parameter remote_login_passwordfile=exclusive SQL> select * from v$pwfile_users; USERNAME SYSDB SYSOP INTERNAL TRUE TRUE SYS TRUE TRUE But when I tried to login from client(sqplus release 8.0.6.0.0 from
-
Display of certificate when accessing a signed applet
HI I have a signed applet which obviously displays a Certificate whenever it is Accessed.Now i would like the certificate to be displayed only once ie. ONLY when the applet is accessed for the first time and the user accepts(trusts) the certificate.T
-
Hello, I've been working on a large-scale design project in Photoshop CS4 involving 3D models. I tried the Photoshop CS5 demo, and it works great. However, whenever I make any changes to one of the 3D layers in renders in horribly with no anti-aliasi