Emailing with PL/SQL for multiple domains

Hey guys!
I've looked around within this forum and couldn't find the situation im trying to figure out. Im trying to build an email functionality within my dev laptop database instance. It seems like I need to have a email server set up. Is that correct? It makes me a little nervous if that is true. The database im working with will manage transactions from a few different internet companies, which will all have a different email server. I'm really hoping I will not have to set up an email server for each client this database handles.
Is there anyway to write an emailing procedure which will not use the database server's domain? Let me know. I've never dealt with email servers, so this is a bit confusing.
Thanks in advance!

did a little research and put in the code you had suggested. Now the execution is working with NO ERRORS!! The problem is, im not getting the email. Is there a way to debug the response from the SMTP? I dont think I got a message from it. Heres what im running, and im using 9i
create or replace procedure
e_mail_message
from_name varchar2,
to_name varchar2,
subject varchar2,
message varchar2
is
l_mailhost VARCHAR2(64) := 'mail.synapticdatabase.com';
l_from VARCHAR2(64) := '[email protected]';
l_to VARCHAR2(64) := '[email protected]';
l_subject VARCHAR2(64) := 'try it';
l_mail_conn UTL_SMTP.connection;
BEGIN
l_mail_conn := UTL_SMTP.open_connection (l_mailhost, 25);
utl_smtp.EHLO(l_mail_conn, l_mailhost);
utl_smtp.command( l_mail_conn, 'AUTH LOGIN');
utl_smtp.command( l_mail_conn, utl_raw.cast_to_varchar2( utl_encode.base64_encode( utl_raw.cast_to_raw( '[email protected]'))) );
utl_smtp.command( l_mail_conn, utl_raw.cast_to_varchar2( utl_encode.base64_encode( utl_raw.cast_to_raw( 'lalalala' ))) );
utl_smtp.mail (l_mail_conn, p_sender);
UTL_SMTP.rcpt(l_mail_conn, l_to);
UTL_SMTP.open_data(l_mail_conn);
UTL_SMTP.write_data(l_mail_conn, 'Date: ' || TO_CHAR(SYSDATE, 'DD-MON-YYYY HH24:MI:SS')||chr(13));
UTL_SMTP.write_data(l_mail_conn, 'From: ' || l_from || Chr(13));
UTL_SMTP.write_data(l_mail_conn, 'Subject: ' || l_subject || Chr(13));
UTL_SMTP.write_data(l_mail_conn, 'To: ' || l_to || Chr(13));
UTL_SMTP.write_data(l_mail_conn, '' || Chr(13));
FOR i IN 1 .. 10 LOOP
UTL_SMTP.write_data(l_mail_conn, 'This is a test message. Line ' || To_Char(i) || Chr(13));
END LOOP;
UTL_SMTP.close_data(l_mail_conn);
UTL_SMTP.quit(l_mail_conn);
END;

Similar Messages

  • Can't setup scan to email with google apps for your domain (HP Officejet Pro 8500 A910 Printer)

    Printer HP Officejet Pro 8500 A910
    Web interface (HPLIP installed on ubuntu 11.10, but problem is linked to web config.) 
    "The device could not send the test e-mail message. (EmailAccounts-timeout)" when going through the full setup, and "The device could not send the test e-mail message." when testing the account after creating it from the "Outgoing Email Profiles" tab. 
    No changes.
    I can't cofigure the printer to send emails out using the email adress we have created exclusively for it with our domain name in Google Apps for your domain. The settings test ok for the email alerts. 
    I'm using these settings: 
    Server: smtp.google.com
    Port: 587 (also tried 465)
    username: [email protected]
    good password, copied and pasted to make sure there are no typo's. 

    Welcome to the forums Joanda!
    I saw your post about the issues you are having with scanning and would like to help!
    Please let me know which model of printer you have:
    HP Officejet Pro 8500A e-All-in-One Printer - A910a
     HP Officejet Pro 8500A Plus e-All-in-One Printer - A910g
     HP Officejet Pro 8500A Premium e-All-in-One Printer - A910n
    Also let me know which operating system you are running on your computer.
    Thank you!
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • DNS for Multiple Domains

    I am trying to figure out the proper configuration for DNS that will support multiple domains. I have DSN working now for just one domain.
    My XServe has a static IP connected directly to cable modem and is the master nameserver. I also have an Ubuntu server with static IP connected directly to cable modem that is the secondary (slave) nameserver.
    On the XServe, I currently have a primary zone created for domain1.com. with:
    * an A record for domain.com. (Fully Qualified) and the same static IP as the XServe
    * an A record for ns1 (not fully qualified) and the same static IP as the XServe
    * Aliases for ftp, www and mail (not fully qualified) mapped to destination ns1.domain1.com. (Fully Qualified)
    Nameservers under the Primary Zone is ns1.domain1.com. and Mail Exchangers is ns1.domain1.com. with a priority of 10.
    The reverse zone is getting created appropriately for me as far as I can tell. I am able to access www.domain1.com just fine as well as mail and ftp.
    Now I want to add a new domain2.com to this master nameserver. I know that I will need a new Primary Zone for domain2.com. to be recognized and to setup it's aliases?
    Can I use the same static IP or do I have to have a unique static IP?
    Can I use the ns1.domain1.com. nameserver or does the new domain2.com need new nameservers?
    Does domain2.com have it's own A records?
    Does the mail exchangers need to be different for domain2.com?
    It seems like all the documentation and information that I can find are just for configuring one domain and not so much for multiple domains. Any help would be greatly appreciated.
    Spotted Dog

    Don't think of subsequent domains as being any different from the first domain.
    For every domain you need to provide certain information, including a list of the hostnames within that domain. There is no relationship between 'www' in domain1.com and 'www' in domain2.com (unless you point them to the same address, but that's a different issue).
    Any host record in the zone can either be an A record (where you specify an IP address) or a CNAME (where you specify another hostname that it maps to).
    In the case of your web server handling both domains you could set 'www.domain2.com' as an A record with the appropriate IP address, or you could set it as a CNAME with a value of 'www.domain1.com.' (essentially saying 'www.domain2.com has the same IP address of www.domain1.com, so go find that address').
    It's also possible to use cross-domain records for things like name servers and mail servers - in other words you can set your MX record for domain2.com to mail.domain1.com (essentially saying that domain2.com's email is handled by mail.domain1.com).
    Can I use the same static IP or do I have to have a unique static IP?
    That's not a question for DNS. What you're defining are the hostnames in that domain. If you have one server (e.g. a web server) that can handle multiple domains (e.g. one apache server handling web traffic for both domain1.com and domain2.com) then, sure, you can use the same IP address for both.
    If, on the other hand, you have specific services that cannot be multi-hosted (e.g. HTTPS) then you will need different IP addresses.
    Can I use the ns1.domain1.com. nameserver or does the new domain2.com need new nameservers?
    Sure, it's entirely possible to use domain1.com's name servers for domain2.com.
    Does domain2.com have it's own A records?
    It can do, or not, as you choose. If you're running www.domain2.com on the same server as www.domain1.com then you could use a CNAME record to point www.domain2.com to www.domain1.com.,or you could set an A record with the same IP address.
    The result would be the same, but the CNAME has the advantage that if your IP address changes you only need to change your DNS in one place (www.domain1.com) and all the other addresses would automatically follow.
    Does the mail exchangers need to be different for domain2.com?
    Not at all, if your mail server is configured to handle mail for both domains it's entirely possible to specify mail.domain1.com as the MX record for domain2.com.

  • Mailman v3 implementation of support for multiple domains

    Mailman has evolved to support listserve names for multiple domains (think VH for listserves). At what point can we see Apple roll this kind of management into the existing product? It would be fabulous to give VH clients the ability to have their own 'branded' listserve experience rather than one with our default domains
    Server Group -- please update Mailman when more pressing bug fixes are out of your way. Thank you!

    Alex,
    Thanks. I know that it can be done via the CLI, but once again we see where alterations done in the CLI will immediately require abandoning the SA as an admin tool. We're trying to encourage Apple to not create this paradox, or rather, to evolve the GUI admin toolset. I was recently at a Leopard Server tour seminar where the field engineer and I discussed this very feature. His comment to me was essentially 'many of the tools in the Server are based on open source projects, so you can simply download the latest update, compile it and configure it for the server ... but you won't be able to use the admin tools we provide." He's accurate, and if I was the only one admin'ing my machines, that might be a temporary solution to this particular small issue. But it immediately brings to mind the reflex question of 'so why did I buy Leopard server?
    This is a matter of Apple needing to provide sufficient resources to the Server group to grow the product. Whether that means some new hiring, or not pulling engineers off for other product lines, or a different management paradigm. We shouldn't purchase a server product that is touted as an enterprise-class solution when it may only have a bare framework for the offered toolsets. If growing the toolset to match what is already offered in the open source world (for that particular product) requires abandoning the server tools, then there's a bit of a vision problem with the Server product.
    Sorry, -- I didn't mean to get on a soap box. You and I are here to learn and help others. I know you aren't part of Apple any more than I am. I do hope Apple engineers are given some time to peruse this board and mine it for ideas, or gauge the effectiveness of their solutions based on the questions and solutions posed here.
    With Mailman 3 so far along in development (VH support was added in October), is Apple culling the very best from it for their user base (and adjusting the SA toolset accordingly)?

  • I did not keep the email with my registration for the free trial so I do not have a serial number as I have no products due to the fact that my trial has expired but I would now like to purchase a product and I cannot skip the serial number request.

    I did not keep the email with my registration for the free trial so I do not have a serial number as I have no products due to the fact that my trial has expired but I would now like to purchase a product and I cannot skip the serial number request in order to buy the product it's so irritating I'm about to just do a different product altogether... anyone know how to get or bypass the serial number request?

    You must first make the purchase, then you will receive the serial number you are asking about.  YOu do not acquire the serial number thru the software.  You acquire it thru the purchase, possibly via a follow-up confirmation  email.

  • Single login for multiple domains

    Can anyone point out a blog or post of a single login for
    multiple domains? For example, let's say I own asite.com and
    bsite.com.
    I want a user who logins to asite.com to also be logged into
    bsite.com if they visit that site. BSite.com is clearly a microsite
    of asite.com but we'd like to continue to use that domain if the
    visitor is on that site instead of redirecting them to keep login
    credentials
    Thanks

    If you're using cookie based login system, I'd imagine you
    could set a cookie to be valid for both of your sites.
    <cfcookie name="myAuthcookie" value="myAuthValue"
    domain=".asite.com;.bsite.com">
    That way both asite.com and bsite.com can read your cookie.
    Note the notation; always include the preceeding dot in the domain
    values. (two dots for top level domains, etc.)
    Strangely CFCOOKIE documentation doesn't mention anything
    about using semicolon separating multiple domains. It did in CF5
    documentation, but not since.

  • I just received an email with a receipt  for a purchase that i did not do

    i just received an email with a receipt  for a purchase that i did not do
    <Personal Information Edited by Host>

    Most of the people on these forums, including myself, are fellow users - you're not talking to iTunes Support here. I've asked the hosts to remove your email address and address from your post
    If you didn't make it and nobody else has access to your iTunes account then you can contact iTunes Support via this link and ask them for help : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • How to get Unique calid for users with same name in multiple domain env..

    I found we need to use "-k legacy" option for creating users in non-hosted setup..
    I had two domains default as xxxx.com and the one that I created as yyyy.com
    When I have users with same name in two of the domains as user1..
    The calid for both of them is... user1 ....so they share the same calendar
    When Im in valid SSO of yyyy.com I get the mail account for user1 as [email protected] .....but the calid .. common as user1
    How I can get unique calid for users under two domains..
    whether I need to set Hosted domain support...Then how the mailid's differ with out using hosted domain support..
    And I need to login UWC without using @domain.com...
    Help me on this...
    Ashik

    Do you have UWC and Cal configured at least for virtual domain support?
    basically.. for discussion.. let's say you have three domains on your server.. 1st domain is the default domain. other 2 domains are virtual domains.
    if all domains were created with mail and cal support (-S mail,cal).. you would use the following options when creating users:
    1) for the default domain.. you must use the "-k legacy" option when adding users.
    2) for the other two domains.. when you create the user.. do NOT use a "-k" option.
    If you do not use the "-k" option.. it defaults to "hosted" which will cause the user's calid to be [email protected]
    If you Do use the "-k legacy" option.. it will create the calid as just "userid"
    With regard to logging into UWC without the @domain.com part of a username in a hosted domain.. the easiest way to avoid this.. is to point a host name under the hosted domain to the server.
    if you point webmail.xxxx.com to the server... and then access it via:
    http://webmail.xxxx.com/uwc/
    any users in the xxxx.com hosted domain will NOT need to use @xxxx.com when logging in... they can just use "userid"
    This feature does not take any special configuration (aside from adding a DNS entry for the hosted domain)
    Hopefully that helps.

  • Emails for multiple domains

    Hi,
    I ve a problem with IMS 5.2 on Win 2K, I applied the patch Hotfix 1.
    I installed IMS to manage domain xxx.com but I also need to be able to create users for other email adresses routed on my server, like yyy.be. When I send an email with an adress @yyy.be, I can retrieve it with the correct adress (e.g. [email protected]), but when I send an email to this user [email protected] I receive an error : smtp;530 5.7.1 Relaying not allowed: [email protected]
    From the other side I can send and retrieve every mail from an adress @xxx.com.
    Some say I must create a domain Alias, like explained in the doc, but when I want to import a LDIF file, it doesn't want, sending error : 0 entries imported, 1 entry rejected, and the file reject contains : Error 32 .... Could someone explain me how and where to create such an alias because I am new to IMS and I am a bit lost at this time?
    Thank you in advance,
    a user who needs help !!!

    What behavior do you want? If you want the two domains to be separate, I would use Distributed Admin to create a new domain. That will create entries in o=internet and in your main tree. If you don't use iDA, the Provisioning Guide tells you what entries to create. I haven't tried it, but the manual suggests that "imadmin domain create" might do the job as well.
    If you want the second domain to be an alias for the first, the sleazy approach is add lines to imta.cnf. Here's an example for a server installed as rulink-mail.rutgers.edu, configured to receive mail for [email protected]:
    moltar.rutgers.edu $U%[email protected]
    This causes [email protected] to be treated the same as [email protected] I'm sure there are more elegant approaches. Of course this only causes mail sent to [email protected] to work. It doesn't make the system recognize moltar.rutgers.edu in other contexts (e.g. when users login).

  • Multiple Certs for multiple domains on one server

    Is it possible with WLS6 and WLCS3.5 to serve up multiple domains with their own certificates?
    i.e. https://www.foo.com and https://www.bar.com on the same box.

    Hi,
    for one WebLogic Server you can only specify one certificate. So to achieve
    this you will have
    to use different WLS instances for your domains - which is possible on the
    same box.
    Kind Regards
    Maria Salzberger
    Developer Relations Engineer
    BEA Support
    Mike Berger schrieb in Nachricht <3c21f5c3$[email protected]>...
    Is it possible with WLS6 and WLCS3.5 to serve up multiple domains withtheir own certificates?
    i.e. https://www.foo.com and https://www.bar.com on the same box.

  • Exchange setup for multiple domains

    We are planning to deploy Exchange server 2013, We have two companies and would like to create Email box for both the companies with same name.
    Example : [email protected], [email protected]
    We would like to have separte email boxes for the both companies. Please suggest us accordingly.

    That should be simple enough. Exchange can handle having multiple domains for sending / receiving and users can have multiple mailboxes configured in Outlook. The name field in Exchange doesn't need to be unique (the account name does obviously), so for
    instance there's no issue having "Fred Bloggs" <[email protected]> and "Fred Bloggs" <[email protected]> both setup.
    In a way the trickier part is setting it up in Outlook since different versions react differently. If you're using Outlook 2013 it should be quite straight forward. As you can see here
    http://technet.microsoft.com/en-us/library/ee815819.aspx the manual setup is easy enough for multiple exchange mailboxes, though auto mapping should work as well. If you're in a network AD
    environment (eg connecting using your local password), then realistically you'll want one mailbox to be primary which is associated to your network login, and then that login to have full access and send as permissions on the second mailbox.
    You may also need to deploy a reg key change to enable saving sent items from the second mailbox into that mailboxes sent items folder rather then the primary mailboxes (assuming you want to keep messages two and from both domains separate and in their own
    mailboxes). The reg key is listed here
    http://support.microsoft.com/kb/2843677 and is definitely needed in Outlook 2007 and 2010 but I'm not sure if it's still an issue if you're using Outlook 2013.

  • Issuing Multiple MYSAPSSO2 tickets for Multiple Domains

    Hi,
    I am having a problem understanding the SAP documentation on how to go about issuing SAP login tickets in multiple domains. In the documentation it states that in order to do so, you require either a IRJ or the SAP ISAPI Web Filter installed in on a server in the target Domain. I have now setup the IIS_SSO.dll ISAPI filter in the domain I require the SSO ticket to be issued in however when I make a request to that webserver I do not see the MYSAPSSO2 cookie being created in my browser, I do see in the ISAPI logs that the request has been filtered and the portal username extracted and set to the configured HTTP Header, but no new Cookie created in the DOMAIN.
    Can anyone help? Has anyone done something like this before?
    Basically I have a portal in the domain <b>myportal.subdomain.domain.com</b> and an ITS in the domain <b>myits.domain.com</b>. With this configuration the MYSAPSSO2 cookie is not sent to the ITS server as it is in a Super Domain. So what I want is to configure the portal to issue a Cookie in the super domain (domain.com) rather then subdomain.domain.com. I thought I could do this with the parameter login.ticket_recieving_hosts in the usermanagment.properties file (EP5) and the IIS ISAPI filter to SSO (IIS_SSO.dll) configured on a website in the super domain (domain.com).
    Any help would be greatly appriciated.
    Simon.

    I believe we had to set the domain relax level (ume.logon.security.relax_domain.level) but needed to make sure this was secure since it changes the domain scope of cookies that are valid for the system.
    See the following:
    http://scn.sap.com/thread/1534863
    http://help.sap.com/saphelp_nw70ehp3/helpdata/en/5e/473d4124b08739e10000000a1550b0/frameset.htm
    Hope this helps.

  • Autodiscover and outlook anywhere for multiple domains

    Hello
     I have exchange 2010 SP3 environment  which is currently in production. We have multiple domain names added to accepted domain and it’s working fine.
    I have two different public IP Address for MX (SMTP ) and OWA.
    following DNS records are created with ISP DNS Servers. Below find the example.
    MX Records
    Smtp.abc.com (10.1.202.10) (SMTP /MX)
    Smtp.zxc.com  (10.1.202.10) (SMTP /MX)- new domain
    Smtp.qwe.com  (10.1.202.10) (SMTP /MX) - new domain
    OWA and Autodiscover
    Mail.abc.com (10.1.202.2) (owa)
    Autodiscover.abc.com (10.1.202.2)
    Currently outlook anywhere and  outlook autodiscover  working for (mail.abc.com) domain without having any issues. All the other domain are failing errors when I’m testing the Remote connectivity Analyzer. When I’m trying configure the outlook
    profile it’s not resolving the domain name.
    OWA working for domain they also using the same url to access the OWA (https://Mail.abc.com/owa)
    Any idea how to resolve this issue.
    Aucsna

    Hi,
    Agree with Ed, generally, all names autodicover.SMTPAddressSuffix should be added in the certificate and Public DNS entries.
    Alternatively, you can refer to the following article to simplify the namespace in certificate:
    http://www.msexchange.org/articles-tutorials/exchange-server-2010/mobility-client-access/using-autodiscover-large-numbers-accepted-domains-part1.html
    Note: 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,
    Angela Shi
    TechNet Community Support

  • How can I set up SSL login authentication on one domain for multiple domains

    Our site currently runs in 22 countries with 22 different
    country domains:
    www.mysite.com
    www.mysite.co.uk
    www.mysite.fr
    etc
    We want to use SSL on our login pages but realise that the
    cost of certification for every domain is expensive. One solution
    would be to channel all login activity to a single domain, eg:
    www.mysite.com/login.cfm?site=fr which would then redirect to
    www.mysite.fr – this is how Google do it
    But, currently we are using encrypted cookies for login
    authentication so we would have the problem of having to transfer
    the cookie info across domains securely. Is there any way of going
    about this?
    Any other suggestions would be great, too. We do plan to move
    to session management for logins but this is a longer term project
    so we are hoping to sort out the SSL prior to that.

    Can you not pass the values you need as URL parameters?
    Encrypt them befor you send them and then decrypt them on the new
    domain. Then add them to whatever place you need (cookie, session,
    etc.)?

  • How to configure mail for multiple domains

    Hi There:
    I am the only Admin for a Mac Mini Lion Server, I have 3 Domains that I host, the DNS is done separate along with all records.
    I was able to get the Web Sites up and running.
    I need help to set up Separate E-Mail Accounts for each Domain, so each Domain receives it's own mail.
    Will you please give a hand, I am a beginner
    Thank YOU!!! in advance!!!!

    There is no default for those entries. you need to set it up manually by using the custom label.

Maybe you are looking for

  • Error when executing DBMS_ERRLOG pkg through Stored Procedures...

    Hi, We have TWO schemas like IDWH_ODS and IDWH_ERR running on Oracle 10g Rel.2. The schema IDWH_ERR has direct SELECT privilege on all the base tables in IDWH_ODS schema. (As Pl/sql doesn't support ROLE, we have granted direct SELECT on each of the t

  • Good pdf viewer with different functionalitites

    Hello folks, I am looking for a good pdf viewer (would be nice if it could support pdf editiing) to view same pdf document at the same time. Document viewer is good enough but when I want to view the same pdf file which is already open with Document

  • I Mac 21 post 2012 don not switch to Target Display Mode

    I connec a MiniDisplay to VGA adpter ion the Thunderbolt soket and connect it to a PC.Bur CMD+F2 does not switch my IMac to TDM Any hint? Thanks

  • Can not archive FCP files?

    Can anyone come up with a good reason why Final Cut Server won't archive a Final Cut Pro (FCP) project file? We have over 600GB worth of these files that have all been ingested and analyzed by FCSvr. Therefore the data is now a part of the database a

  • Currency to Non Leading Ledger

    Friends, I want ot give the USD currency to my non leading ledger. how should i do that? Please give me IMG path also. My co  code currency is INR. For my non leading ledger i want to give UDS currency. Right now posting in non leading ledgers are al