Hi all,
I have a problem with the ult_smtp package. Let me explain how the structure of my code is
procedure------------
begin
declarations of variables and cursors
............... .........
............... ......
............... ..
for i in 1 ..3
loop
if i =1
capture the email of the HR in a variable
els if i =2
capture the email of supervisor in the same variable
else if=3
capture the email of the departmental manager in the same variable
else
capture the employee email
end if
utl_smtp.connec tion()
utl_smtp.rcpt()
-------- here wee call the utl _smtp package and send mail to all the four members
because it is inside the loop so the var captures all the four mail ids for each iteration of i
end loop
This was the code, but the problem is only the employee used to receive all the four mails.
Now i changed the code, such that the utl_smtp package is called inside the if condition so that all the persons recieve the mail and only once.
but none has received the mail at all.
what could be the problem. How should i make possible to do this such that all the four receive one mail each . will removing the for and if and writing a sequential code one after the other make this happen
thanks in advance
vamsi
I have a problem with the ult_smtp package. Let me explain how the structure of my code is
procedure------------
begin
declarations of variables and cursors
............... .........
............... ......
............... ..
for i in 1 ..3
loop
if i =1
capture the email of the HR in a variable
els if i =2
capture the email of supervisor in the same variable
else if=3
capture the email of the departmental manager in the same variable
else
capture the employee email
end if
utl_smtp.connec tion()
utl_smtp.rcpt()
-------- here wee call the utl _smtp package and send mail to all the four members
because it is inside the loop so the var captures all the four mail ids for each iteration of i
end loop
This was the code, but the problem is only the employee used to receive all the four mails.
Now i changed the code, such that the utl_smtp package is called inside the if condition so that all the persons recieve the mail and only once.
but none has received the mail at all.
what could be the problem. How should i make possible to do this such that all the four receive one mail each . will removing the for and if and writing a sequential code one after the other make this happen
thanks in advance
vamsi
Comment