Need help on possible scam email
Hey i received an email this morning saying that my security question and answer had been changed, but i havent personally changed them.
has anyone else got a similar email?
Thanks
Matt
You don't need to "install" the javamail API - just package the jar file in the lib directory of your war file.
If you really can't use javamail then two options spring to mind...
1. Call a command line mail application like sendmail using Runtime.exec()
(make sure your validate any user supplied parameters very carefully)
2. Write your own (or find someone elses) API to SMTP using java sockets. It might sound dawnting, but if you only want to send and email it's not difficult
Similar Messages
-
I need help to back up my current emails. I am trying to create an imap email account and i dont want to loose my emails in the process. Anyone???
Hi ricknz,
I suggest using Header and Footer rows, which are very useful in Numbers.
Say you start with this table:
Convert the first row to a header row:
Convert the last row to a Footer Row:
Add a sum formula in the Footer Row:
Then when you add values in the following rows the sum will adjust automatically and the table will expand as you add more data:
SG -
Day one of my new MacBook Pro & I desparately need help with calendar and email
It's day one of my new relationship with a Mac, and I need help! I'd like to use microsoft exchange to sync my calendars to iCal & my emails the way I currently do with my iPhone 4 and iPad 2. The problem is that all I get are error messages. They either say that communication with the server cannot be established or communication to ports 80 & 440 cannot be established. One account I'd an ssl and the others are gmail. Please advise!
anyone? please? i would appreciate any information.
-
Need help on switching my password recovery email because it is sending to my old email. Anyone know how to do this?
Hi Krebbo,
I apologize, I'm a bit unclear on exactly what the nature of your issue is. If you are talking about changing the Apple ID that your iPhone currently uses for services like the iTunes Store, you may find the following article helpful:
iOS: Sign in with a different Apple ID in the iTunes Store, App Store, and iBooks Store
http://support.apple.com/kb/ht1311
Regards,
- Brenden -
I need help with document in email
Need help with document from email
Have you updated to the latest version of Adobe Reader? Have you read the Help file in Reader about bringing PDFs from an email?
-
Need help in xml bursting email bodt contents based on condition
Dear All,
I have a requirement as below.
I am developing a xml publisher report with bursting functionality, i need to set a email body based on some condition, so please help me out how i can set the email body dynamically in xml bursting file.
Note:The email body may be huge. for ex:
Dear ${LINE_MANAGER_POSITION},<br/><br/>
The probationary period for ${FULL_NAME} holding Worker Number ${EMPLOYEE_NUMBER} will end on ${PROBATION_END_DATE}. Please be sure to assess the employee carefully and fill out the attached Probationary Period Report, sign it, and send it to your HR Business Partner ${HR_BP_EMP_NAME} before ${PROB_END_DATE_BEFORE}. <br/><br/>
Please note: <br/>
<ul> <li> The maximum probationary period allowed by UAE labor law is six months starting from the Hire Date. Probation extensions beyond six months are not permitted.</li> </ul>
<ul> <li> During the probationary period, the Employee has the right to end ${GENDER} employment contract with five working days notice period.</li> </ul>
<ul> <li> According to UAE labor law, the Employee is considered a permanent Employee with limited or unlimited contract if ${A_HE_SHE} is not notified that ${A_HE_SHE} is not suitable for the position ${A_HE_SHE} is assigned to. Dubai Petroleum Establishment Human Resources Division will consider the probationary period to be successful if you do not complete and sign the Probationary Period Evaluation form for ${FULL_NAME} before ${PROB_END_DATE_BEFORE}.</li> </ul>
<ul> <li> If the Employee passes the probationary period successfully and is subsequently deemed unsuitable for the assigned Position then the HR disciplinary process prevails.</li> </ul>
For more information on the Employee probationary period process and assessment approaches, please <a href="_http://dullap01/livelink/livelink.exe/open/29695955"> click here </a> or contact your Human Resources Business Partner ${HR_BP_EMP_NAME} at <a>${HR_BP_EMAIL}</a><br/><br/><br/>
Yours sincerely, <br/>
Human Resources Division </font>
Thnaks
Deblogo's should be pulling are the logo's directly embedded in format template?
Suggest you download and use the [Bursting Designer|http://bipublisher.blogspot.com/2009/09/bi-publisher-bursting-designer.html] and review the log file for errors. You will need to change your templates to point locally on your pc.
Ike Wiggins
http://bipublisher.blogspot.com -
Need Help: Submit form through email
I need to submit my form to an email address on single click of a button.
The submit type can be either XML or PDF. But i should neither get any warning nor it should open the Email Client.
And everything should happen within Adobe Reader 9.
Is this possible?
Thanks in Advance,
NithHi Nith,
I saw this question and was interested in what sort of database setup you've got etc. Im a bit new and was just starting to explore how or if you could establish a database to take and store the information directly from the forms
I know this is a bit off topic.... but any pointers would be appreciated. I have CS4 master suite (no other livecycle products or budget for them though) and Office 2007.
I had been using a custom xml parser to pull the info and put it into target files but this has no storage/reuse potential and is getting real "clunky" so im keen to learn about databases and livecycle.
cheers -
Need help setting up Comcast email through Exchange
I'm having trouble setting up my comcast email on my iPhone through the Exchange. It looks like everything is setup fine. I've even received some emails on my phone, but then they suddenly disappear and it says I have no mail. Another person in my office is having the exact same problem. Comcast Business sent our office an email that they had upgraded from Microsoft Exchange 2007 to Microsoft Exchange 2010. Any suggestions?
I have Comcast email through an Exchange account on all of my iDevices. I received the email that the service is going to be upgraded to MS Exchange 2010, but I have not received notice that it has officially changed yet.
Have you seen this? I don't think that the steps are any different than what they were for MS Exchange 2007, but take a look.
http://businesshelp.comcast.com/help-and-support/email/connecting-iphone-to-emai l-account/
This is copied from the FAQ website.
http://businesshelp.comcast.com/help-and-support/email/microsoft-exchange-2010-m igration-email-sharepoint#email
5. How do I configure mobile devices to access my Exchange account?
For mobile device configuration information, please see the mobile device setup articles for iPhone, iPad, Android,BlackBerry or Windows Phone. If after the migration to Exchange 2010 you cannot access your email through your mobile device only, you may need to re-configure your mobile-device access. -
I have been sending pictures to people while organizing my iPhoto. Usually it is one picture per email. Unfortunately, it ends up that the same picture is ending up on each email instead of the picutures that I am picking out. Usually the first picture that I send is the picture that is send in all the emails. HELP!
Launch iPhoto with the Option key held down and create a new, test library. Import some photos and check to see if the same problem persists. If it does try the following: make a temporary, backup copy (if you don't already have a backup copy) of the library and try the following:
1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
User/Home()/Library/ Preferences folder.
2 - delete iPhoto's cache file, Cache.db, that is located in your
User/Home()/Library/Caches/com.apple.iPhoto folder.
Click to view full size
3 - launch iPhoto and try again.
NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto. You'll also have to reset the iPhoto's various preferences.
If the problem doesn't appear in the test library do the following with your original library: make a temporary, backup copy (select the library and type Command+D) and apply the two fixes below in order as needed:
Fix #1
Launch iPhoto with the Command+Option keys held down and rebuild the library.
Select the options identified in the screenshot.
Fix #2
Using iPhoto Library Manager to Rebuild Your iPhoto Library
Download iPhoto Library Manager and launch.
Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
In the next window name the new library and select the location you want it to be placed.
Click on the Create button.
Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
OT -
Need help after being scammed on Craigslist
Well here's my story.. I bought an iPhone on Christmas Eve off Craigslist because I had found a great offer. The guy posted that he was selling an UNLOCKED iPhone 5 16gb with an otterbox, extra lightning cable, leather carrying case, screen protectors, with the box original accessories and all for just $500. It seemed like a great holiday deal and I just couldn't pass on it. I called the guy and picked it up. Didn't know much about esn and that kind of info(now I know so don't try and tell me how stupid I am, I know I messed up) and I trusted that was it was unlocked like he said. I even asked him and he confirmed that it was so I took his word for it. So then I go to tmobile and they tell me the phone isn't unlocked. I realized it was a complete scam and the guy wouldn't even pick up when I called him to see what's up. I try to sell it to get my money back, and when I finally get someone to buy it they check the esn and tell me it has bad esn and he almost called the police on me but luckily he let me explain myself.
Bottom line I'm stuck with a sprint iPhone 5 that's not unlocked and has bad esn. I don't have a receipt but could I go to the apple store and get some warranty help since the phone isn't even a year old and still in the warranty period? What kind of help could they offer me at the apple store? Any advice or tips on what to do or how to unlock the phone and clean the esn? I really need some help! Thanks in advanceYou can go along to the Apple store and have a chat with them and see if they can help you and what you should do, but they can't unlock the phone for you - only the previous carrier of the phone Sprint can unlock it for you and if you are not a customer or have not been a customer in the past, it is not that likely that they will.
The only thing that you could do is take out a contact with Sprint and use the phone on Sprint and then ask them to unlock it after a suitable time period has passed.
See if you can do this, but in the end you might have to kiss goodbye to $500. The phone is probably stolen too, so there is not really a lot that you can do. See if the Apple store can help you by tracing the original owner, but if it is stolen property, you might be better handing it over to the police and giving them the details of the guy who scammed you on Craiglist. -
Need help to update my email address in BB ID
My Blackberry paly book has been setupith my old email address and I forgot my password and after answering personal question the password reset submitted to my old email address which I don't have access to that and even though I registered again for Blackberry ID with my new email address still the information about my bBB Playbook shows my old email address and it does not let me to do anything. Please help me out to change me BBID profile so I can update my email addressn the BB ID. THanks.
Hi
In order to change the BlackBerry ID on your Playbook you will need to perform a security wipe.
KB26694 How to switch the BlackBerry ID account on a BlackBerry smartphone or BlackBerry PlayBook tablet
Thanks! -
Need help to update my email address in BB Playbook ID
My Blackberry paly book has been setupith my old email address and I forgot my password and after answering personal question the password reset submitted to my old email address which I don't have access to that and even though I registered again for Blackberry ID with my new email address still the information about my bBB Playbook shows my old email address and it does not let me to do anything. Please help me out to change me BBID profile so I can update my email address in the BB ID. THanks.
Hi
In order to change the BlackBerry ID on your Playbook you will need to perform a security wipe.
KB26694 How to switch the BlackBerry ID account on a BlackBerry smartphone or BlackBerry PlayBook tablet
Thanks! -
HT1920 I need help removing my old email address
I have a new email address and need to remove the old one can you help me with that?
Assuming that this is for your iTunes account, then on your iPad you can tap on your id in Settings > iTunes & App Store and log into the account and you should be able to update your account's primary email address - or you can do it via the Store > View Account menu option on your computer's iTunes or via http://appleid.apple.com
-
Need help to change user email id in table ADR6
Hi,
i want to update user email id in table adr6. i hv written following code but not working to change email in table adr6.
DATA lo_nd_email TYPE REF TO if_wd_context_node.
DATA lo_el_email TYPE REF TO if_wd_context_element.
DATA ls_email TYPE wd_this->element_email.
DATA lv_mail_id LIKE ls_email-mail_id.
navigate from <CONTEXT> to <EMAIL> via lead selection
lo_nd_email = wd_context->get_child_node( name = wd_this->wdctx_email ).
get element via lead selection
lo_el_email = lo_nd_email->get_element( ).
get single attribute
lo_el_email->get_attribute(
EXPORTING
name = `MAIL_ID`
IMPORTING
value = lv_mail_id ).
DATA:lv_bname TYPE BAPIBNAME-BAPIBNAME.
DATA:lt_return TYPE TABLE OF bapiret2.
DATA:PER_NO TYPE AD_PERSNUM,
ADDR_NO TYPE ADRC-ADDRNUMBER."AD_ADDRNUM.
DATA:SEARCH TYPE REF TO IF_WD_CONTEXT_NODE.
SEARCH = WD_CONTEXT->GET_CHILD_NODE( 'USER' ).
SEARCH->GET_ATTRIBUTE( EXPORTING NAME = 'BNAME'
IMPORTING VALUE = lv_bname ).
DATA:wa_address TYPE bapiaddr3.
DATA : CONS_NO TYPE AD_CONSNUM.
IF lv_mail_id IS INITIAL.
get message manager
DATA lo_api_controller TYPE REF TO if_wd_controller.
DATA lo_message_manager TYPE REF TO if_wd_message_manager.
lo_api_controller ?= wd_this->wd_get_api( ).
CALL METHOD lo_api_controller->get_message_manager
RECEIVING
message_manager = lo_message_manager.
report message
CALL METHOD lo_message_manager->report_error_message
EXPORTING
message_text = 'Please Enter Email Id'.
ENDIF.
DATA:l_addr type addr_keynr.
DATA:C_YES(1).
CLEAR:C_YES.
C_YES = 'X'.
TYPES: ty_comm_smtp TYPE adsmtp ,
ty_returncode TYPE SZAD_FIELD-RETURNCODE,
ty_error TYPE ADDR_ERROR,
adsuse TYPE ADSUSE.
DATA:EMAIL_ID TYPE AD_SMTPADR,
lt_comm_smtp TYPE STANDARD TABLE OF ty_comm_smtp, """"Data Object
lv_returncode TYPE STANDARD TABLE OF ty_returncode,
error_table TYPE STANDARD TABLE OF ty_error,
lt_adsuse TYPE STANDARD TABLE OF adsuse.
data:ls_comm_smtp like LINE OF lt_comm_smtp,
ls_returncode like LINE OF lv_returncode .
CALL FUNCTION 'SUSR_USER_ADDRESSKEY_GET'
EXPORTING BNAME = lv_bname
IMPORTING PERSNUMBER = l_addr-persnumber
ADDRNUMBER = l_addr-addrnumber
EXCEPTIONS ADDRESS_NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC = 0.
REFRESH: lt_comm_smtp.
CALL FUNCTION 'ADDR_PERS_COMP_COMM_GET'
EXPORTING
address_handle = ''
address_number = l_addr-addrnumber
person_handle = ''
person_number = l_addr-persnumber
DATE_FROM = '00010101'
LANGUAGE = SY-LANGU
table_type = 'ADSMTP'
iv_current_state = space "*981i
IMPORTING
returncode = ls_returncode
TABLES
comm_table = lt_comm_smtp
error_table = error_table
et_usage = lt_adsuse "*981i
EXCEPTIONS
parameter_error = 1
address_not_exist = 2
person_not_exist = 3
internal_error = 4
OTHERS = 99.
IF sy-subrc <> 0.
IF sy-subrc = 1 OR sy-subrc = 2 OR sy-subrc = 3.
raise_message 'AM' 'A' 885 'ADDR_PERS_COMP_COMM_GET' space
space space internal_error.
ELSE.
same_message_dia_a internal_error.
ENDIF.
ENDIF.
ENDIF.
CLEAR:ls_comm_smtp, email_id.
READ TABLE lt_comm_smtp INTO ls_comm_smtp INDEX 1.
EMAIL_ID = ls_comm_smtp-smtp_addr. """""""OLD EMAIL ID which we get from ADDR_PERS_COMP_COMM_GET
CONS_NO = ls_comm_smtp-CONSNUMBER.
CLEAR:ls_comm_smtp.
ls_comm_smtp-CONSNUMBER = CONS_NO.
ls_comm_smtp-FLGDEFAULT = 'X'.
ls_comm_smtp-HOME_FLAG = 'X'.
ls_comm_smtp-UPDATEFLAG = 'U'.
ls_comm_smtp-smtp_addr = lv_mail_id.
TRANSLATE email_id TO UPPER CASE.
ls_comm_smtp-smtp_srch = email_id.
REFRESH :lt_comm_smtp.
append ls_comm_smtp to lt_comm_smtp.
IF SY-SUBRC = 0.
CALL FUNCTION 'ADDR_PERS_COMP_COMM_MAINTAIN'
EXPORTING
address_handle = ' '
address_number = l_addr-addrnumber
person_handle = ' '
person_number = l_addr-persnumber
table_type = 'ADSMTP'
iv_time_dependence = C_YES "*981i
IMPORTING
returncode = ls_returncode
TABLES
comm_table = lt_comm_smtp
error_table = error_table
EXCEPTIONS
parameter_error = 1
address_not_exist = 2
person_not_exist = 3
internal_error = 4
OTHERS = 99.
IF sy-subrc <> 0.
EXIT.
ENDIF.
ENDIF.
IF sy-subrc = 0.
COMMIT WORK.
ENDIF.
i hv also tried second approch available on sdn CALL FUNCTION 'ADDR_COMM_MAINTAIN'. but in this fm person number we can't pass.
please help meHi Abhilesh,
You can use the following FM's to update the Email ID. There are many posts ADDR* FM using for updating Email ID. Please have a look if you have a doubt.
DATA: iadsmtp TYPE adsmtp OCCURS 0 WITH HEADER LINE.
"Retrieving Address Details
CALL FUNCTION 'ADDR_COMM_GET'
EXPORTING
address_number = addrnr
table_type = 'ADSMTP'
TABLES
comm_table = iadsmtp
EXCEPTIONS
OTHERS = 0.
READ TABLE iadsmtp index 1.
if sy-subrc is initial.
iadsmtp-SMTP_ADDR = 'new mail ID'. " Here pass your New Email ID
Modify iadsmtp.
Endif.
CALL FUNCTION 'ADDR_COMM_MAINTAIN'
EXPORTING
address_number = addrnr
table_type = 'ADSMTP'
substitute_all_comm_data = 'X'
TABLES
comm_table = iadsmtp
EXCEPTIONS
OTHERS = 0.
Then call FM 'ADDR_SINGLE_SAVE' to do the Commit. -
Need help in generatin report email to outlook address thought shellp script
Hi Gururs,
Am new to shell scripting .
Your help is greatly appreciated.
This is the shell script code as below, and this is called by the plsql procedure to run the rpeort and generate an email.
email.sh
if [ $# -ge 1 ]
then
RUN_ENV=$1
else
RUN_ENV="prod"
fi
if [ "$CES_ENV" = "" ]
then
CES_ENV=$RUN_ENV
fi
# Begin setup environment variables
# TRK 09/21/2009 START #
#. /home/cardnet/$CES_ENV/bin/environ.sh
if [ "$BIN_DIR" = "" ]
then
BIN_DIR=`dirname $0`
fi
echo $BIN_DIR
. $BIN_DIR/environ.sh
# TRK 09/21/2009 END #
# End setup environment variables
# Log file setup
LOGDATE=`date +%Y%m%d`
#LOGFILE=/home/cardnet/$CES_ENV/log/generic_email.$LOGDATE.op # TRK 09/21/2009 #
LOGFILE=$HOME_DIR/log/generic_email.$LOGDATE.op
# Accept the paramemeters and store them in a variable
PROCESSNAME=$1
PATHNAME=$2
EMAIL_INPUT_FILE=$3
EMAIL_GROUP_FILE=$3.emlin
SUBJECT=$4
echo PATHNAME $2
echo PROCESSNAME $1
echo EMAIL_INPUT_FILE $3
echo EMAIL_GROUP_FILE
echo SUBJECT $4
echo ' ' >> $LOGFILE
echo '************************** START *************************' >> $LOGFILE
echo ' ' >> $LOGFILE
echo 'date and time : ' `date` >> $LOGFILE
echo ' ' >> $LOGFILE
mail_log_file=`date +%Y%m%d.%H%M%S`.mail_log_file
cd $PATHNAME
if [ $? -gt 0 ]
then
echo "Process Name : $PROCESSNAME ">> $mail_log_file
echo "Path name : $PATHNAME ">> $mail_log_file
echo "MAIL Filename : $EMAIL_INPUT_FILE " >> $mail_log_file
echo "MAIL subject : $SUBJECT " >> $mail_log_file
echo 'Failed to change directory to $PATHNAME ' >> $mail_log_file
echo 'Failed to change directory to $PATHNAME ' >> $LOGFILE
# mail -s "FTP failed for process: $process_name" $ERROR_MAIL_GROUP < $mail_log_file >> $LOGFILE
exit
fi
echo Current directory is `pwd` >> $LOGFILE
echo "Process Name : $PROCESSNAME ">> $mail_log_file
echo "Path name : $PATHNAME ">> $mail_log_file
echo "MAIL Filename : $EMAIL_INPUT_FILE " >> $mail_log_file
echo "MAIL subject : $SUBJECT " >> $mail_log_file
echo ' '>> $LOGFILE
echo "input file is $EMAIL_INPUT_FILE " >> $LOGFILE
echo ' '>> $LOGFILE
if [ ! -f $EMAIL_INPUT_FILE ]
then
echo "File $EMAIL_INPUT_FILE to email not found" >> $mail_log_file
echo "File $EMAIL_INPUT_FILE to email not found" >> $LOGFILE
# mail -s "File $EMAIL_INPUT_FILE to email not found" $ERROR_MAIL_GROUP < $mail_log_file >> $LOGFILE
exit
fi
#Get the file size in KB
du -k $EMAIL_INPUT_FILE | cut -f1 | read EMAILFILESIZE
echo "$EMAIL_INPUT_FILE has filesize = $EMAILFILESIZE " >> $LOGFILE
# Compress the file if size is more than 100 KB
if [ $EMAILFILESIZE -gt 100 ]
then
echo "compressing the file" >> $LOGFILE
# tarfile=$EMAIL_INPUT_FILE.tar
# tar -cf $tarfile $EMAIL_INPUT_FILE >> $LOGFILE
# compress -f $tarfile >> $LOGFILE
# attach_file=$tarfile.Z
#compress -f $EMAIL_INPUT_FILE >> $LOGFILE commented by GEK on 11/03/2010
zip $EMAIL_INPUT_FILE # GEK 11/03/2010
#attach_file=$EMAIL_INPUT_FILE.Z commented by GEK on 11/03/2010
attach_file=$EMAIL_INPUT_FILE.gz # GEK 11/03/2010
else
attach_file=$EMAIL_INPUT_FILE
fi
if [ ! -f $EMAIL_GROUP_FILE ]
then
echo "Mail group file $EMAIL_GROUP_FILE not found" >> $mail_log_file
echo "Mail group file $EMAIL_GROUP_FILE not found" >> $LOGFILE
mail -s "Mail group file $EMAIL_GROUP_FILE not found" $ERROR_MAIL_GROUP < $mail_log_file >> $LOGFILE
exit
fi
cat $EMAIL_GROUP_FILE | read EMAIL_GROUP
[email protected]
echo "send mail to $EMAIL_GROUP" >> $LOGFILE
echo "input file is $attach_file" >> $LOGFILE
# Send the email
#( uuencode $attach_file $attach_file;cat /home/cardnet/tools/BASE/WORK_MAIL_FOOTER.txt ) | mail -s "$SUBJECT" $EMAIL_GROUP >> $LOGFILE # TRK 09/21/200
9 #
( uuencode $attach_file $attach_file;cat $TOOLS_DIR/BASE/WORK_MAIL_FOOTER.txt ) | mail -s "$SUBJECT" $EMAIL_GROUP >> $LOGFILE
echo "File mailing process completed successfully." >> $LOGFILE
echo ' ' >> $LOGFILE
echo '************************** END *************************' >> $LOGFILE
echo ' ' >> $LOGFILE
Plsql proc :
CREATE OR REPLACE PROCEDURE PROD.sample_PROC (process_id_in NUMBER, local_file_name_in VARCHAR2, tms_mail_flag VARCHAR2 DEFAULT NULL)
AS
nSystemReturn NUMBER;
BIN_DIR VARCHAR2(50) := NULL;
DB_NAME VARCHAR2(15);
logfile UTL_FILE.FILE_TYPE;
vFileDate VARCHAR2(8);
process_email_address VARCHAR2(1000) := NULL;
ftp_mode VARCHAR2(4) := NULL;
ws_sys_command VARCHAR2(1000) := NULL;
ws_sys_return NUMBER := 0;
ws_process_name VARCHAR2(30);
varFTPIPADDRESS VARCHAR2(25);
varFILEIDENTIFIER VARCHAR2(4);
varPROCESSNAME VARCHAR2(30);
varFTPUSERID VARCHAR2(15);
varFTPPASSWORD VARCHAR2(15);
varPATHNAME VARCHAR2(500);
varREMOTEDIRECTORY VARCHAR2(50);
varREMOTEFILENAME VARCHAR2(100);
varCOMPRESSYES CHAR(1);
varPROCESSID NUMBER(8);
varFTP_TRANSMISSION_TYPE VARCHAR2(50);
VARSPECIAL_REMOTE_COMMAND VARCHAR2(200);
varSASTRAILER_JOB VARCHAR2(100);
varRETRANSMISSION_INTERVAL NUMBER;
logfile_path varchar2(500) := NULL;
logfile_name VARCHAR2(100) := NULL;
ftp_input_file UTL_FILE.FILE_TYPE;
trl_input_file UTL_FILE.FILE_TYPE;
eml_input_file UTL_FILE.FILE_TYPE;
varSASTRAILER_SPECIAL_COMMAND PROCESS_REFERENCE.SASTRAILER_SPECIAL_COMMAND%TYPE;
varSUB_PROCESS_NAME PROCESS_REFERENCE.SUB_PROCESS_NAME%TYPE;
varDESCRIPTION PROCESS_REFERENCE.DESCRIPTION%TYPE;
varMARS_ALERT_CODE PROCESS_REFERENCE.MARS_ALERT_CODE%TYPE;
varTMS_MAIL_FLAG PROCESS_REFERENCE.TMS_MAIL_FLAG%TYPE;
varPROCESS_FLAG PROCESS_REFERENCE.TMS_MAIL_FLAG%TYPE;
varFTP_FLAG PROCESS_REFERENCE.FTP_FLAG%TYPE;
varKEEP_FILE_NAME VARCHAR2(100);
nProcess_ctr NUMBER(3) := 0;
vTMP_local_file_name_in process_reference.process_file_name%TYPE;
vDATE_FORMAT_FOR_FILE_NAME process_reference.DATE_FORMAT_FOR_FILE_NAME%TYPE;
varSASTRAILER_JOB_PATH_NAME VARCHAR2(700);-- 08/08/2011 SCH
varSASTRAILER_PATH PROD.PROCESS_REFERENCE.PATH_NAME%TYPE;
vSASTRAILER_JOB_NAME PROD.PROCESS_REFERENCE.SASTRAILER_JOB%TYPE;
varSASTRAILER_JOB_FILE_NAME PROD.PROCESS_REFERENCE.SASTRAILER_JOB%TYPE := NULL;
BEGIN
SELECT TO_CHAR(SYSDATE,'YYYYMMDD') INTO vFileDate FROM DUAL;
ws_process_name := 'PROCESS_NOTIFICATION_PROC';
BEGIN
SELECT PATH_NAME, replace(PROCESS_FILE_NAME,'<DATE>',TO_CHAR(SYSDATE,DATE_FORMAT_FOR_FILE_NAME))
INTO logfile_path, logfile_name
FROM prod.process_reference
where process_name = ws_process_name
AND file_identifier = 'LOG';
logfile := UTL_FILE.FOPEN (logfile_path,logfile_name, 'A');
EXCEPTION WHEN OTHERS
THEN
UTL_FILE.PUT_LINE(logfile,TO_CHAR(SYSDATE,'mm-dd-yyyy hh24:mi:ss')||'Error in fileopen : ' || SQLERRM );
GOTO EXIT_REPORT;
END;
UTL_FILE.PUT_LINE(logfile,TO_CHAR(SYSDATE,'mm-dd-yyyy hh24:mi:ss')||'- Starting for process : ' || process_id_in);
UTL_FILE.FFLUSH(logfile);
vTMP_local_file_name_in := local_file_name_in;
FOR allprocessesCur_rec IN
(SELECT process_id, process_name, file_identifier, path_name,
ftp_ip_address, ftp_user_id, ftp_password,
NVL(remote_directory ,'PWD') REMOTEDIR, remote_file_name, NVL(compress_yes,'N') COMPRESSYES,NVL(ftp_transmission_type,'ascii') FTPTRANTYPE,
NVL(special_remote_command,'NONE') SPLREMOTECMD ,NVL(sastrailer_job,'NOTRAILER') SASTRAILER,NVL(retransmission_interval,0) RETRANINTVL ,
SASTRAILER_SPECIAL_COMMAND,
NVL(DESCRIPTION,PROCESS_NAME) PROCESSDESC, NVL(MARS_ALERT_CODE,'NA') MARSCODE,
NVL(TMS_MAIL_FLAG,'N') TMSMAILFLAG ,NVL(PROCESS_FLAG,'Y') PROCESSFLAG,
NVL(FTP_FLAG,'N') FTPFLAG,
DECODE(KEEP_FILE_DATE_FORMAT, NULL,'NA',REPLACE(process_file_name,'<DATE>',TO_CHAR(SYSDATE,KEEP_FILE_DATE_FORMAT)) ) KEEP_FILE_NAME
,DATE_FORMAT_FOR_FILE_NAME
FROM prod.process_reference
WHERE process_id = process_id_in
OR parallel_process_id = process_id_in)
LOOP
varPROCESSID := allprocessesCur_rec.process_id;
varPROCESSNAME := allprocessesCur_rec.process_name;
varFILEIDENTIFIER := allprocessesCur_rec.file_identifier;
varPATHNAME := allprocessesCur_rec.path_name;
varFTPIPADDRESS := allprocessesCur_rec.ftp_ip_address;
varFTPUSERID := allprocessesCur_rec.ftp_user_id;
varFTPPASSWORD := allprocessesCur_rec.ftp_password;
varREMOTEDIRECTORY := allprocessesCur_rec.REMOTEDIR;
varREMOTEFILENAME := allprocessesCur_rec.remote_file_name;
varCOMPRESSYES := allprocessesCur_rec.COMPRESSYES;
varFTP_TRANSMISSION_TYPE := allprocessesCur_rec.FTPTRANTYPE;
varSPECIAL_REMOTE_COMMAND := allprocessesCur_rec.SPLREMOTECMD;
varSASTRAILER_JOB := allprocessesCur_rec.SASTRAILER;
varRETRANSMISSION_INTERVAL := allprocessesCur_rec.RETRANINTVL;
varSASTRAILER_SPECIAL_COMMAND := allprocessesCur_rec.SASTRAILER_SPECIAL_COMMAND;
varDESCRIPTION := allprocessesCur_rec.PROCESSDESC;
varMARS_ALERT_CODE := allprocessesCur_rec.MARSCODE;
varTMS_MAIL_FLAG := allprocessesCur_rec.TMSMAILFLAG;
varPROCESS_FLAG := allprocessesCur_rec.PROCESSFLAG;
varFTP_FLAG := allprocessesCur_rec.FTPFLAG;
varKEEP_FILE_NAME := allprocessesCur_rec.KEEP_FILE_NAME;
vDATE_FORMAT_FOR_FILE_NAME :=allprocessesCur_rec.DATE_FORMAT_FOR_FILE_NAME;
process_email_address := NULL;
IF varTMS_MAIL_FLAG = 'Y' THEN
FOR procnotifCur1 IN (SELECT email_address FROM prod.process_notification WHERE process_id = 0)
LOOP
process_email_address := process_email_address || ' ' || procnotifCur1.email_address;
END LOOP;
END IF;
FOR procnotifCur2 IN (SELECT email_address FROM prod.process_notification WHERE process_id = varPROCESSID)
LOOP
process_email_address := process_email_address || ' ' || procnotifCur2.email_address;
END LOOP;
IF process_email_address IS NOT NULL THEN
eml_input_file := UTL_FILE.FOPEN (varPATHNAME,local_file_name_in||'.emlin', 'W');
UTL_FILE.PUT_LINE(eml_input_file,process_email_address);
UTL_FILE.FCLOSE(eml_input_file);
END IF;
IF process_email_address is NOT NULL THEN
BEGIN
SELECT 'ksh '||
PATH_NAME ||PROCESS_FILE_NAME || ' ' ||'"'||
varPROCESSNAME ||'"'|| ' ' ||'"'||
varPATHNAME ||'"'|| ' ' ||'"'||
local_file_name_in ||'"'|| ' ' ||'"'||
varDESCRIPTION ||'"'
INTO ws_sys_command
FROM prod.process_reference
WHERE process_name = ws_process_name
AND file_identifier = 'SH3';
ws_sys_command := '(uuencode '|| varPATHNAME || local_file_name_in || ' log.txt ) | mail -s "' || TO_CHAR(SYSDATE,'YYYYMMDD') || '-' || varPROCESSNAME || '"' || process_email_address;
UTL_FILE.PUT_LINE(logfile,TO_CHAR(SYSDATE,'mm-dd-yyyy hh24:mi:ss')||' Executing command - '||ws_sys_command);
ws_sys_return := daemon.execute_system(ws_sys_command, process_id_in);
dbms_lock.sleep(1);
UTL_FILE.PUT_LINE(LOGFILE, 'command completed with returncode: ' || ws_sys_return);
UTL_FILE.FFLUSH(logfile);
IF ws_sys_return != 0
THEN
UTL_FILE.PUT_LINE(LOGFILE, 'Non ZERO system return received from daemon for SH1 ' || ws_sys_return);
UTL_FILE.FFLUSH(logfile);
END IF;
EXCEPTION
WHEN OTHERS THEN
UTL_FILE.PUT_LINE(LOGFILE, 'Error in executing daemon for mail: ' || ws_sys_return || 'AND SQL ERR: '|| SQLERRM );
UTL_FILE.FFLUSH(logfile);
END;
END IF;
END LOOP;
UTL_FILE.FCLOSE(logfile);
<<EXIT_REPORT>>
NULL;
END Sample_PROC;
sample table data :
PROCESS_ID
EMAIL_ADDRESS
499
[email protected]
TMS_SYS_COMMAND
PROCESS_IND
PROCESSED_FLAG
ksh /home/test/email.sh "REPORT_IAB_MERS_WITH_LAC_TIDS" "/home/test/rpts" "20140128.REPORT_TIDS.CSV" "REPORT_TIDS"
499
N
PROCESS_ID
PROCESS_NAME
FILE_IDENTIFIER
PATH_NAME
PROCESS_FILE_NAME
DATE_FORMAT_FOR_FILE_NAME
TMS_MAIL_FLAG
DEBUG_FLAG
499
REPORT_TIDS
OUT
/home/test/rpts
<DATE>.REPORT_TIDS.CSV
YYYYMMDD
Y
YThan perhaps you don't have your mail system configured properly, such as a missing "smart host" or missing smtp relay in your sendmail configuraiton, or perhaps security options on your smtp gateway, or a networking or DNS issue, etc, etc.
I suggest to try sending a normal e-mail and check the logs to make sure that it works, before troubleshooting the script.
Maybe you are looking for
-
What is the standard field in CRM to store the VAT number from ECC
Dear gurus, I am trying to find if we have "VAT number" as standard field in CRM. I tried finding in CRM but could not find. The requirement is to bring the "VAT number" data from ECC to CRM. So if there is any corresponding CRM field to store that t
-
Hi, my iBook G4 is troubling me. A few weeks ago the internal hard drive "crashed" but rebooting still has been possible by means of booting with command-c and the Tiger install disk inserted to fix the problem at each startup with disk first aid. Ye
-
HT4528 MY IMESSAGE WILL NOT ACTIVATE, THEREFORE I CANNOT GET ANY MESSAGES AT ALL
Just got my iphone5 replaced and the imessage will not activate..and i cannot recieve any text messages!! please help!!
-
Currency convertion in bex with user exit
Hi, In cube 0fiar_c03 we have documents where 0doc_number is 'USD' or 'ARS' we need to use differents currency when 0doc_num is 'USD' or 'ARS'... i am thinking use a virtual kf but i dont know where put the code when the user press convertion currenc
-
ORA-00904 OCCURS WHEN CALLING PL/SQL PACKAGED FUNCTIONS
Hi , When i try to execute SELECT P_GMT_FOLDER.F_GET_SEC_MTRTY_BUCKET(TO_DATE('16/04/2008','DD/MM/YYYY'),TO_DATE('16/04/2008','DD/MM/YYYY')) FROM DUAL it showing the error like in Production ORA-00904 invalid identifier. But in UAT is is wo