Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


sending email from oracle procedure

Posted on 2014-01-30
Medium Priority
Last Modified: 2014-01-31
Every this works fine. My question is when I am sending email I am getting the email address for sub center

This helps me to send email to sub centers pertaining to donors who are donating in that particular donor center. But I want to add my email also there

   url :=
     (v_server_c || '?' || v_conn_str_c ||
       '&desformat=PDF&ENVID=' || v_report_db_c ||
       '&subject="WB Donors Eligible For Conversion"' ||
       '&destype=mail' ||
       '&FROM=someemail@mail.com&desname=' ||get_email_rec.subcenter_email||

like abc@gmail.com. How can I add that after get_email_rec.subcenter_email

[attachment deleted by Zone Advisor at the request of asker]
Question by:anumoses
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 74

Expert Comment

ID: 39820752
you could try simply appending it

 '&FROM=someemail@mail.com&desname=' ||get_email_rec.subcenter_email||'abc@gmail' ||

however, the web service you are using might not support it.
if that doesn't work, you'll need to contact the service host to determine what your options are.  You're not using an oracle feature, so it's not really something you can control from the oracle side.  You can only use the api provided.

If you want more control of sending email, you may have to do it yourself.
Fortunately, it's fairly easy to do so.


Author Comment

ID: 39821522
As you mentioned

you could try simply appending it

 '&FROM=someemail@mail.com&desname=' ||get_email_rec.subcenter_email||'abc@gmail' ||

does not work. Have to check with service host.
LVL 74

Expert Comment

ID: 39821549
I also wonder if it even makes sense to try what you have described.

By adding your address to the FROM line, you are trying to say the message is from two different addresses.

That doesn't make sense.  
You can send TO multiple addresses, but the message is only FROM one source

If you were sending TO multiple addresses, then maybe adding white space or a delimiter between each

||'  abc@gmail' ||


||',abc@gmail' ||
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.


Author Comment

ID: 39821559
&FROM=someemail@mail.com&desname=' ||'abc@gmail,xyz@gmail.com' ||

This works. But not the parameter
LVL 74

Accepted Solution

sdstuber earned 1000 total points
ID: 39821567
>>> This works. But not the parameter

I don't know what you mean by that

also, if you're doing to append addresses, your first address probably needs a delimiter too

 ||',abc@gmail,xyz@gmail.com' ||

Author Closing Comment

ID: 39824019

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question