Sending an SMS or Mail to mobiles  through Oracle

hi,
We have created a proc through which we can send a mail to our MailId. but my requirement is we need to send this mail as an SMS to mobiles through oracle.
Our code goes some thing like this:
CREATE OR REPLACE PROCEDURE "EMAIL_ALERT" (v_From VARCHAR2,
v_Recipient VARCHAR2,
               v_Subject VARCHAR2,
v_Mail_Host VARCHAR2,
v_message VARCHAR2) AS
v_Mail_Conn utl_smtp.Connection;
crlf VARCHAR2(2) := CHR(13)||CHR(10);
v_Recipient1 VARCHAR2(50):='[email protected]';
v_Recipient2 VARCHAR2(50):='[email protected]';
v_Recipient3 VARCHAR2(50):='[email protected]';
BEGIN
v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host,25);
utl_smtp.helo(v_Mail_Conn,v_Mail_Host);
utl_smtp.Mail(v_Mail_Conn, v_From);
utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
utl_smtp.Rcpt(v_Mail_Conn, v_Recipient1);
utl_smtp.Rcpt(v_Mail_Conn, v_Recipient2);
utl_smtp.Rcpt(v_Mail_Conn, v_Recipient3);
utl_smtp.DATA(v_Mail_Conn,
'Date: ' || TO_CHAR(SYSDATE, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf ||
'From: ' || v_From || crlf ||
'Cc:' ||v_Recipient1|| crlf ||
'Cc:' ||v_Recipient2|| crlf ||
'Cc:' ||v_Recipient3|| crlf ||
'Subject: '|| v_Subject || crlf ||
'To: ' || v_Recipient || crlf || crlf ||
'Hi,'|| utl_tcp.crlf
||' '||CHR(13)||
v_message|| utl_tcp.crlf
||' '||CHR(13)||
'Thanks and Regards'|| utl_tcp.crlf||
utl_tcp.crlf
utl_smtp.Quit(v_mail_conn);
EXCEPTION
WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error THEN
RAISE_APPLICATION_ERROR(-20000, 'Unable To Send Mail: '||SQLERRM);
END Email_Alert;
Assuming the mobile number to be 9197016944444 where 91 represent the country code . please advice.
Regards
Edited by: vine on Apr 16, 2010 5:24 AM

vine wrote:
EXCEPTION
WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error THEN
RAISE_APPLICATION_ERROR(-20000, 'Unable To Send Mail: '||SQLERRM);
END Email_Alert;Ugly. What you are doing here is taking a meaningful exception and making it meaningless. The caller knows that the send mail fail. It is after all getting a raised exception in response.
What is important for the caller is to evaluate the error. Determine a) what happened and then b) determine what to do about it.
The what happened is determined from the exception error code. Only, you now went and changed the meaningful application error code to -20000.
Do not make exceptions meaningless!
>
Assuming the mobile number to be 9197016944444 where 91 represent the country code . please advice.Advice exactly what? You cannot send a SMS via e-mail.
What you can do is send a specially formatted e-mail (specific recipient/subject) to a mail server, where this mail server has special code/plug-ins/processes that can reformat the e-mail as a SMS and then forward it to a SMS gateway server that can pass it to the cellular provider's network for processing and delivery.
Do you have such a mail server? Does it interface with a SMS Gateway (or similar) server?

Similar Messages

  • TS3899 When sending email from the Mail App or through other Apps, my default From: address will change when I enter a To: address.  This sometimes leads me to send the email from the wrong outgoing email account.  It is frustrating and poor design.

    When sending email from the Mail App or through other Apps on my iPad, my default From: address will change when I enter a To: address.  This sometimes leads me to send the email from the wrong outgoing email account.  It is frustrating and poor design, especially since I had already checked the From: address.
    iPad 4 running iOS 8.1.3

    3rd party email addresses have to be deleted on every synmced mac product, although I have 1and1.co.uk and my imac updatetes the mails in that account from mac mail.
    Yahoo etc is a 2 step deleting process but good to get your emails pushed when on the go.
    LJ
    http://www.facebook.com/The.Cowboy.Party

  • Can't send OVI IMAP e-mails from mobile phone or o...

    Since a few weeks, I can't send OVI e-mails (IMAP) from my Nokia mobile phone, or Outlook express. Receiving e-mails works fine. So, I can only work using the webmail interface.
    - Settings I am using on Outlook express:
    Incoming email:
    User name: [email protected]
    Password: *****
    Incoming mail server: imap.mail.ovi.com
    Mailbox type: IMAP 4
    Security (ports) SSL/TLS
    Port: Default
    Outgoing email:
    My email address: [email protected]
    User name: [email protected]
    Password: *****
    Outgoing mail server: smtp.mail.ovi.com
    Security (ports): SSL/TLS
    Port: Default
    - Settings I am using on my mobile phone:
    imap.mail.ovi.com
    smtp.mail.ovi.com
    IMAP 4
    SSL/TLS: 993
    SSL/TLS: 465
    If you have experience with this issue, thank you in advance for sharing your knowledege.

    Hi Mitch_2012,
    Thank you for your post and welcome to the forums!
    We would advise you try the following SMTP server on your Outlook Express:
    ovi.smtp.mail.yahoo.com, SSL port 465
    When entering your username, please be sure to include your complete @ovi.com email address (For example [email protected]).
    You did not mention your phone model in your message. So, try to reset your phone to factory settings by following the instructions in your phone's user guide. This will clear all settings and mailboxes on your device, after that just set up your OVI mailbox again by following these instructions. 
    Let us know if this helps,
    Puigchild
    If you find this post helpful, a click upon the white star at bottom would always be appreciated.
    If it also solves your problem, clicking ACCEPT AS SOLUTION below it will benefit other users!

  • '?' Character in mail body sent through oracle

    Hi,
    I have a stored procedure(oracle 9i) which sends out the mail to people using utl_smtp. but when the mail is recieved, some characters like '-', ' are replaced with '?' in the mail body.
    Plz let me know how can i correct it. Any help is greatly appreciated.

    If you are not doing already you could try writing the data as raw text
    eg
    utl_smtp.write_raw_data(c,utl_raw.cast_to_raw(utl_tcp.CRLF||mail_text));
    This tends to keep french accents intact - so may work

  • CCMS alert notification - sending an SMS on a mobile number.

    Hi,
    We have set up central  CCMS  alert monitoring for the systems in our landscape.
    Now we want an auto reaction  method  which can send an SMS  to a specific mobile number.
    Can it be done  using any existing auto reaction method  or we need to develop a program in ABAP
    specifically to achive this functionality ... ?
    We want some reaction method which can respond to the color change in the CCMS alert monitoring attributes .
    For eg - as soon as the  color value in the alert  is set as red , the sms should be triggered.
    has anyone achieved this type of functionality .
    It would be realy helpful.
    Thanks in advance.
    Regards
    Prince .

    SAP Alert Management (ALM) functionality comes into play when business-critical problems occur. Within ALM, conditions for critical situations are predefined. When an alert is triggered in ALM that meets these conditions, responsible or interested parties are determined and informed immediately you need to configure SCOT accrodingly. please check this link:http://help.sap.com/saphelp_nw2004s/helpdata/en/3f/81023cfa699508e10000000a11402f/content.htm
    Scenario 1)
    As of Release 6.20, you can send and receive fax and SMS or paging messages using SMTP. These are packed in e-mails for this purpose. please check Note 455140 - Configuration of e-mail, fax, paging or SMS using SMTP
    Scenario 2)
    Starting with the SAP Web Application Server 6.20, it is possible to transfer pager and SMS messages via HTTP to a third-party software or to a pager/SMS service provider please check Note 455142 - SAPconnect: Configuration paging/SMS via HTTP.
    Note 455127 - E-mail (SMTP) in different SAP releases
    Note 455129 - Paging/SMS in different SAP releases
    Thank you,
    Shyam

  • Why do I get an "unable to connect - There may be a problem with the mail server or network." message from iCloud.  I have verified the settings.  I can access my iCloud account online but can't send or receive e-mail via the mail account.

    Text limits to the "Question" link prevents a full explanation:
    This is a long-time problem.  I have tried to resolve it with Apple but their "Customer Support" is merely a name.
    I can go online and access my e-mail but when I try to send or receive e-mail via iCloud through my internet server (Google fiber now but the same situation existed with my prior service), I receive "There may be a problem with the mail server or network.  Verify the settings for 'Apple Email' and try again.
    "The server returned the error:  The server 'p0-imap.mail.me.com' refused to allow a connection on port 143."
    Well, I have verified the setting and tried again and again and …
    Well, you get the idea …

    JungleTaxi Cabbie wrote:
    Csound1: iCloud: Configuring Mail with Mac OS X v10.6 or iOS 4
    Enter your Incoming Mail Server, User Name, and Password using the following settings:
    Incoming Mail Server: mail.me.com
    User Name: Your iCloud email address (excluding @me.com)
    Password: Your password
    Last Modified: Jun 27, 2013
    Maybe you should test these things before calling people out, because these settings do function perfectly well.
    iCloud is not supported on Snow Leopard or lower, why bother to mention it?
    The OP has an iCloud account, and that can not be opened without Lion or Mountain Lion (on a Mac), IOS5 or 6 (on an iPhone/iPad)
    The document I linked to is Apples documentation for iCloud on current devices,I don't care whether you believe that you know better than they do, but it will affect the people who follow your advice as it won't work
    JungleTaxi Cabbie wrote:
    Also, if you're not running Lion or Mountain Lion, there is no "Mail, Contacts & Calendars" prefpane.
    I never said that there was, perhaps you imagined it.

  • Send sms to mobile through forms 6i

    Dear sirs, I want to send sms on mobile through forms 6i
    it is avalible? and how to do it?
    pls help me
    Thanks in advance
    Yasser

    You need a service provider to get the sms to the telecom companies. If you have a deal with a telco they will tell you how to send an sms via them.
    If you are not sending too many sms messages, you can connect your smartphone to your PC and use the phone's sms service. This can be costly if you want to send many messages. There is standard software for that, e.g.
    http://www.sendgroupsms.com/
    Google for "sms gateway" for more info.

  • Can We Send SmS To Any Mobile, Without Using Gsm Modem, Through Oracle

    Can We Send SmS To Any Mobile, Without Using Gsm Modem, Through Oracle ?
    suppose you don't have mobile connected to ur com port.

    is this helps?
    http://inside-apex.blogspot.com/2007/05/sending-sms-to-mobile-phone.html or
    Re: Send Message From Oracle To Mobile Device

  • Send sms e-mail

    Hello folks, with all my nokia phones (nokia 6230, nokia 6300 and many other models with s40) ive had an option to send sms e-mail that is very usefull to me cause i have a 4000 sms monthly plan.
    Now i bought a nokia e51 and i cant find this option... all of the mail options are done via the email app and i cant use that because it uses gprs, edge, 3g or wifi data and that is very expensive for me.
    Examples of send sms email
    http://www.mobile-review.com/review/image/nokia/6230/part2/pic34-5.jpg
    http://www.mobile-review.com/review/image/nokia/6233/scr05-3.jpg
    So is there any way of doing this? via another aplication ?maybe? Thanks in advance

    Had a chance to play with the 6700 and stumbled on the answer. You can send an image or similar to an e-mail address without connecting to the internet or having e-mail set up in your phone as follows:
    Open contacts. Select names. Scroll to the contact you want to send the image to and press 'details'.
    Select options, then add detail, and move right using menu key. You should then have a sub-page that says 'number' and 'internet' and 'multimedia' and 'personal information'.  Scroll to 'internet' and move right again.
    Then another page appears saying 'Web address' and E-mail address'.
    Scroll to e-mail address.and then 'select'.
    You should be back in the contacts page and have the option to add an e-mail address to the contact details. Do this and press 'save'.
    Close the contacts list and select 'Messaging'.
    Start to create a text message to the same person. Enter their name and leave the next text entry box blank unless needed.
    Under the text entry box should be a left and right scroll box. Scroll down to this using the menu key and highlight 'image'. The option above the menu key should have changed from 'send' to 'insert'.
    Select 'insert' and that should show the Gallery menu. Find the image wherever it is, the memory card in my case, so Open that, then select images until you find the picture required. Select 'insert'.
    It will then say ' message changed to multimedia.'
    The 'send' option should have returned above the menu key.Press it.
    Match the entry if needed to make sure you have the correct recipient.
    Once that's done, you should have the option at the bottom of the screen to either scroll to the phone number or the e-mail address.
    Scroll to the e-mail address and then press select. Add any text if needed and press send.
    Job done!
    Disclaimers- this was done on a factory unlocked Nokia 6700 with no Operator programmes installed. O2 include an MMS message as 4 texts from the allowance but your Network may charge you.
    I use Windows Mail. When you receive the message, there is no attachment shown for the image. To find it, right click on the message title and select open. You'll find the link there.

  • How to send any laguage msg to mobile through java

    Hello friends ,
    i need to send msg which will may be in any language.
    can i do so through java ?
    also is it jms is helpful for this ? or i need to use other package ?

    You'll need to find some sort of online SMS gateway that will inject a SMS message into the mobile phone network for you. I have no experience of these. The mobile phone network is not the internet: you can't access it directly.
    Such a service may or may not be free, and may only support specific telecom networks.
    Try searching for "web service to send sms" using your favourite search engine. When I tried this it came up with several companies offering this service, using a "web service" API (i.e. XML over HTTP).
    You can certainly access web services using Java; there are APIs designed for this purpose. Some are listsed at
    [http://java.sun.com/webservices/|http://java.sun.com/webservices/]
    Nigel

  • Server script to send sms from pc to mobile

    hey can anybody help me how to develop a server side script which can send sms to a mobile, what all things to consider....please guide me in this.

    If you know the carrier then the easiest way to send a sms is send the email to the phone. The email address will be phonenumber@carrierspecific address. You can get the list of carrier specific email address at their website or search at google.
    Other way is to subscribe to a sms server like smsxchange and use their apis to send email.
    Third way is to connect a gprs modem/ phone to the pc and send the sms through the phone.
    Easiest and free is the email and next best if ready to pay is subscribe to an sms exchange provider.

  • HR: Need to Send the Paysilp as a PDF file through Mail to Employees

    Dear All ,
           Need to Send the Paysilp as a PDF file through Mail to Employees.
           can anyone please suggest any Standard Function Modules which takes the Payslip Form as input and convert it into PDF and can send it through mail to the concern employees.
          Can anyone please explain the procedure in detail.
    Thanks in Advance,
    Regards.

    venu,
    below is code which helps to generate pdf ,,,,hope u know how to use the mail sending function
    data:
    fm_name TYPE RS38L_FNAM, "Smart Forms: FM Name
    sf_name TYPE TDSFNAME
    value 'YOUR_FORM_NAME', "Smart Forms: Form Name
    P_OUTPUT_OPTIONS TYPE SSFCOMPOP,
    P_JOB_OUTPUT_INFO TYPE SSFCRESCL,
    P_CONTROL_PARAMETERS TYPE SSFCTRLOP,
    P_LANGUAGE TYPE SFLANGU value 'E',
    P_E_DEVTYPE TYPE RSPOPTYPE.
    data:
    P_BIN_FILESIZE TYPE I,
    P_BIN_FILE TYPE XSTRING,
    P_OTF type table of ITCOO,
    P_DOCS type table of DOCS,
    P_LINES type table of TLINE,
    name type string,
    path type string,
    fullpath type string,
    filter type string,
    guiobj type ref to cl_gui_frontend_services,
    uact type i,
    filename(128).
    GET SMARTFORM FUNCTION MODULE NAME ---
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    FORMNAME = sf_name
    IMPORTING
    FM_NAME = fm_name
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
    EXPORTING
    I_LANGUAGE = P_LANGUAGE
    I_APPLICATION = 'SAPDEFAULT'
    IMPORTING
    E_DEVTYPE = P_E_DEVTYPE.
    P_OUTPUT_OPTIONS-XSFCMODE = 'X'.
    P_OUTPUT_OPTIONS-XSF = SPACE.
    P_OUTPUT_OPTIONS-XDFCMODE = 'X'.
    P_OUTPUT_OPTIONS-XDF = SPACE.
    P_OUTPUT_OPTIONS-TDPRINTER = P_E_DEVTYPE.
    P_CONTROL_PARAMETERS-NO_DIALOG = 'X'.
    P_CONTROL_PARAMETERS-GETOTF = 'X'.
    ****...................................PRINTING.........................
    CALL FUNCTION fm_name
    EXPORTING
    CONTROL_PARAMETERS = P_CONTROL_PARAMETERS
    OUTPUT_OPTIONS = P_OUTPUT_OPTIONS
    (....) <--- your form import parameters
    IMPORTING
    JOB_OUTPUT_INFO = P_JOB_OUTPUT_INFO.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    P_OTF[] = P_JOB_OUTPUT_INFO-OTFDATA.
    ****...................................CONVERT TO PDF...............
    CALL FUNCTION 'CONVERT_OTF_2_PDF'
    IMPORTING
    BIN_FILESIZE = P_BIN_FILESIZE
    TABLES
    OTF = P_OTF
    DOCTAB_ARCHIVE = P_DOCS
    LINES = P_LINES
    EXCEPTIONS
    ERR_CONV_NOT_POSSIBLE = 1
    ERR_OTF_MC_NOENDMARKER = 2
    OTHERS = 3.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    now you can mail the pdf.
    Reward points if helpful
    Regards,
    jinesh

  • How to send E-Mail Notification executing through workflow?

    hi All
    I want to send E-Mail Notification executing through workflow in MDM Data Manager?
    I have tried it, But still i am unable to send E-Mail Notification?
    i will explain, how i have tried?
    1) I have created the simple workflow with the following components
        they are in sequence
          start--> process-> notify--->stop
    2)  owner of the workflow is Admin and launcher of the workflow is Admin and i have given email id to the Default Admin user in the console.
    3) i have created another user (i.e. User2) with default roles as like as Admin and i have assigned User2 to the process component in workflow and I have created e-mail address for the User2 in the console.
    4) i have created another user(i.e.User1) with default roles as like as Admin. and give e-mail address,under the notify component User1 is selected in To Field.
    5) stop component as usual
    coming to configuration part about the SMPT server in MDS.ini file
    1) in mds.ini file for the MailServer=, I have given SMTP Server name once and restarted the server and executed the workflow, but not worked
    2)in mds.ini file for the MailServer=, i have given SMTP Server IP Address and checked the port,and we have configured the host file also and restarted the server and executed the worflow , but not worked
    In all the ways i have executed and tried to send E-Mail Notifications through workflow, But I didn't
    can any one help where i have went wrong, so i can rectify  it
    what actually we have to give in mds.ini file? is any other cofiguration required for it?
    if any one have any solution for it , can you please explain me in step by step
    Thanks in Advance
    bharat.chinthapatla

    Hi Bharat,
    your steps seems to be correct. Just try to ping your mail server, to verify if your mail server is running up, besides note that mdm go throw port 25 for sending emails, so please check if you are able to send emails using port 25 in your network.
    Regards,
    Vito

  • I bought my iPhone in December and it has worked until today (3/15/15).  Now it will not send or receive e-mail, access Yahoo Weather, or go online through Safari.  I suspect that it is a Verizon problem.  Any help?

    I bought my iPhone in December and it has worked well until today (3/15/15).  Now, I cannot send or receive e-mail, access Yahoo Weather, or go online through Safari.  I suspect that it is a Verizon problem.  Any help?

    Did you reboot the phone by holding the home and sleep/wake buttons together at same time for 10 seconds?

  • Send mails with csv file as an attachment through oracle(SQL SCripts / Stor

    Hello Everybody,
    I have recently come across a requirement in which I am supposed to send mails with csv file as an attachment through oracle(SQL SCripts / Stored Procedure) .
    The contents of the csv file are to be retreived from the Database as well as the content of the mail and to whom it needs to be sent has also to be picked up from the database.
    Can somebody suggest me with a suitable code for the same?
    Would be of great help..!!
    Thanks & Regards,
    - VR
    Edited by: user646716 on Dec 18, 2009 10:44 AM

    read below links
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:255615160805
    http://www.orafaq.com/wiki/Send_mail_from_PL/SQL#Send_mail_with_UTL_TCP_-withattachments
    How to send csv file as an attachment

Maybe you are looking for

  • Best Practice for Downgrading J2EE/Portal Patch Version

    Hello all, We're trying to determine the best path to follow and would appreciate any advice.  We have an existing Portal implementation with ESS/MSS which has been live for almost a year.  It is on NW2004s (i.e., 7.0) and in production it is on ERP

  • SA PASSWORD from SQL Server Reports in TMG Threat Forefront Gateway

    Dear friends. I have a question and the technical support did not resolve it. I need to know which is the SA password when you install the Forefront TMG because i need to made querys into the SQL Server management studio installed in the server. Than

  • How to configure the virtual path with our web listener

    Oracle Apps Version: 11.5.10.2 Oracle database: 10.2 platform: Windows server 2003 while applying developer 6i patch ( 61954129 ) i got following error which says configure the following virtual path for your web listener following is the output of f

  • SAP Solution Manager 7.0 Update into EHP1

    Dear experts, i'm planning to update a SAP Solution Manager SP15 into EHP1. From the SAP Service Marketplace : service.sap.com/swdc, SAP Support Packages, Entry by Application Group, SAP Technology Components, SAP Solution Manager, SAP Solution Manag

  • Can't start server -- Fatal error: Cannot connect to user group ldap server

    After installing iCS 2.1, iCS 2.1p1, and iCS 2.1p3, a user will receive the following error message when trying to start the server: <P> Fatal error: Cannot connect to user group ldap server. <P> In addition, the Directory Server access logs will con