Sendmail gives Return Code 8 - Can't Get Past It - Ideas?

I used 'sendmail' function. It worked fine in 3 of my test environments but not a 4th. Environmental engineers have looked at SMTP setup & other configurations & recycled the trouble region to no help. If you have seen before or can suggest help, thanks!
I get return code 8 from the sendmail, which I find means some kind of 'platform dependent' error. Bear in mind that our test environments are all pretty much identical & this error only occurs in 1 out of 4.
I note in documentation for 'Pbooks 8.9' the following warning with the 'sendmail' function, which leads me to conclude Oracle recommends NOT to use sendmail:
"The flags parameter of this function and its return codes are platform dependent: the SMTP mail API ignores any additional flags. For this reason, SendMail should be used only in customizations that run on a known platform, if it is used at all. The preferred, platform-independent method for sending email from PeopleCode is to define an email routing as part of a business event, then trigger the business event using the TriggerBusinessEvent function."
Here is my sendmail code, embedded to a record SEd event(some parts of code not printed to save space):
Local SQL &EmailBodySQL;
Local string &EMMsgText;
Local number &msg_nbr;
Local number &email_return;
Local string &Email_From, &Email_Sep, &Reply_To, &EMSender;
&EmailBodySQL = GetSQL(SQL.KP_PC_EMAILBODY_SEL);
If Not &EmailBodySQL.Fetch(&EMMsgText, &msg_nbr) Then
MessageBox(0, "", 20100, 8, "No Message for Message Set 20100, number : :1", &msg_nbr);
&email_return = 99;
Else
%This.EmSubject = &EMMsgText | &projBU | " " | &projID;
&Email_From = %EmailAddress;
&Reply_To = %EmailAddress;
&EMSender = "";
&Email_Sep = ";";
&email_return = SendMail(0, &team_members, "", "", %This.EmSubject, &em_text_body, "", "", &Email_From, &Email_Sep, &Reply_To, &EMSender);
End-If;
&EmailBodySQL.Close();
Return &email_return;
&email_return = &KP_PC_Email.pcattach_email_send(&team_members, &email_body, &projBU, &projID);
If &email_return = 0 Then
MessageBox(0, "", 20100, 12, "Email sent for business unit :1 , project ID :2", &projBU, &projID);
Else
MessageBox(0, "", 20100, 11, "Email failed. Return status from sendmail = :1 ", &email_return);
End-If;
Edited by: 1001697 on Apr 22, 2013 1:52 PM
Edited by: 1001697 on Apr 22, 2013 1:53 PM

Try enabling logging by setting SMTP Trace parameter to 1 to get more info on the cause.
PeopleBooks > PeopleTools 8.52: System and Server Administration > Setting Application Server Domain Parameters
SMTPTrace
Enter 1 to enable the tracing of email details to the log file. Enter 0 to disable SMTP tracing.
LogFence should be set to 5.
The system writes the log information to SMTP<DDMM>.log in %PS_SERVDIR%/LOGS, by default, or the custom value set for Log Directory. For example:
PS_CFG_HOME\APPSERV\domain\LOGS\SMTP6_27.log

Similar Messages

  • I put a passcode on my iphone 5 and forgot the four digit code, how can i get past this to get on my phone?

    I forgot the four digit passcode to get on my iphone5 and its disabling my phone, how can i got past this to get on my phone?

    iOS: Forgotten passcode or device disabled after entering wrong ...

  • I've spent 6 hours trying to update my iPad, and it doesn't work. It can't get past trying to back up, and just stops and gives an error code. I've deleted the backup, re-synced, and tried again and still no luck. What do I do now?

    I've spent 6 hours trying to update my iPad, and it doesn't work. It can't get past trying to back up, and just stops and gives an error code. I've deleted the backup, re-synced, and tried again and still no luck. What do I do now?

    I am not running any antivirus software on my Mac, and I have the firewall shut off. Any other ideas? I have not problem downloading all other Apple software updates. I downloaded the latest iTunes software before starting the iPad update process.

  • My iphone 3g is in reset mode and i tunes will not reset. it pops an error message with no code. how can i get i tunes to rest my phone?

    my iphone 3g is in reset mode and i tunes will not reset. it pops an error message with no code. how can i get i tunes to rest my phone?

    No need to Double Post... It is considered impolite.
    https://discussions.apple.com/message/20652820#20652820

  • I have my redemption code but can't get the serial number for adobe photoshop elements 12 that I jus

    I'm trying to find out my serial number.  I have the redemption code but can't get the serial number for adobe photoshop elements 12 that I just purchased

    Hi KEsheppard
    Please refer the link below to get the help regarding redemption code and the serial number:
    http://helpx.adobe.com/x-productkb/global/redemption-code-help.html
    Let us know if it helps,
    Thanks!
    Gurleen Kaur

  • Just upgraded to MacBook Pro running 10.8.4.  Want to convert old movie files to put in Itunes.  Can't upgrade QT player preinstalled, so downloaded QT Player 7 and purchased QTPlayer 7 Pro registration code.  Can not get it to upgrade.  Called Apple 2x.

    Just upgraded to MacBook Pro running 10.8.4.  Want to convert old movie files to put in Itunes.  Can't upgrade QT player preinstalled, so downloaded QT Player 7 and purchased QTPlayer 7 Pro registration code.  Can not get it to upgrade.  Called Apple 2x.  If you have a fix, you can email me direct at [email protected]

    Want to convert old movie files to put in Itunes.
    What does "old movies" mean to you? File type, audio and/or video compression format(s)?
    Can't upgrade QT player preinstalled, so downloaded QT Player 7 and purchased QTPlayer 7 Pro registration code.  Can not get it to upgrade.
    Did you follow the instructions found here?
    If you have a fix, you can email me direct at [email protected]
    To which fix do you refer? Activatng QT 7 Pro or converting the files? Even with QT 7 Pro activated you may need to modify your QT codec component configuration depending on the file type and compression formats used to encode your "old movies." There may be many different problems here with each having one or more "fixes." Please try to be more specific regarding your questions. Converting a muxed VOB MPEG2/AC3 file would be very different different from converting an AVI DivX5/MP3 file depending on which application you are attempting to use.

  • I installed Lion OS, after restart it gives the startup screen with my user id but no window for password entry, no matter what I do I can't get past the opening screen.

    I installed Lion OS, after restart it gives the startup screen with my user id but no window for password entry, no matter what I do I can't get past the opening screen.

    MacBook Pro
    MacBook Pro Apple Support
    Apple Support Lion
    Lion Mac OS X Communities

  • I just bought Adobe Photoshop Elements 13, I have the redemption code, how can I get my serial number?

    I just bought Adobe Photoshop Elements 13, I have the redemption code, how can I get the serial number, you guys made so difficult.

    Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html
    -and https://forums.adobe.com/thread/1572504
    Photoshop Elements is not part of the Cloud, I will move this to that forum
    Photoshop Elements Forum http://forums.adobe.com/community/photoshop_elements
    If you still need help...
    Select a topic, then click I STILL NEED HELP to activate Photoshop Elements Online chat
    -http://helpx.adobe.com/contact.html?product=photoshop-elements or
    http://helpx.adobe.com/photoshop-elements/kb/troubleshoot-installation-photoshop-elements- premiere.html

  • Can not get past "Enter your system lock PIN code to unlock this MAC" I never had a PIN code can you help? I have tried the other  option that were posted. None of them worked!

    Can not get past "Enter your system lock PIN code to unlock this MAC" I never had a PIN code can you help?

    ExciteWalk wrote:
    I can't post the link here cause I'll probably get banned at this point. So help yourself and search rumors elsewhere
    That's not very helpful, why are you here?

  • HT1918 I have entered and re-entered my credit card information and it keeps telling me to enter a valid security code and I'm looking right at my card and the code is correct but I can't get past this step.

    I can't get past the entering my credit card info.

    See if the troubleshooting on this page helps : http://support.apple.com/kb/TS1646

  • My wireless mouse and KB are in discovery mode, but I can't get past the "enter password" screen because my Mouse and KB will not work...batteries have been changed.

    My Wireless KB and mouse are stuck in discovery mode, but I can't get past the "user password" screen because It won't allow me to enter characters.

    Should work if you enter the code and hit the return key.  Here is a step by step article.
    http://support.apple.com/kb/HT1809?viewlocale=en_US
    Captfred

  • Can't get past blue screen on XP install...help

    Can't get past the "Welcome to setup" screen while installing.
    I did get this to install once, but my mac. drivers CD apperantly had errors, so I decided to unistall everything and redo. Now, it won't work at all.
    Someone please give me a way around this. I'm tired of looking at this **** screen. It says to set up windows xp now, press enter. I think by now my return AND enter key will be broken by the number of times pressed.

    My mistake, Safe Mode disables DVD player...
    Perhaps re-installing 10.5.8 Combo Update while in Safe Mode might help.
    -mj

  • HT202649 Hello, I just bought a used iPhone 4S but can't get past the ID to continue set up. I went to iforgot as requested to reset my password to my existing account. Still can't get past the ID.

    Hello,
    I am having setup issues with a used 4S iphone. I can't get past the Apple ID step.
    First it said it was an existing ID and I should go to iforgot and reset my password.
    I did, but still keep getting the error message.
    Then I entered the serial number online support and it said the ID was another account. Would that be the seller?
    Do I need to get them to unregister under their name before I can proceed? Or...
    Please help. I start  new job on Monday that required me to have a smartphone. I need it up and running.
    Thank you
    R

    Yes, you have encountered Activation Lock (Find My iPhone Activation Lock - Apple Support). The only way that phone will ever be usable is if the owner the phone is locked to releases it (see: Find My iPhone Activation Lock: Removing a device from a previous owner’s account - Apple Support). If you are lucky the phone is locked to the seller, so you can ask them to unlock it. If the seller is merely a middleman and the previous owner is not the seller it gets much more complicated. It's even possible that you bought a stolen phone, in which case you will never be able to use it and you should return it for a refund.

  • Bought a used Mac Mini and can't get past security password Seller refuses to answer emails. is there a keyboard command to take it back to factory settings or do I need to buy a Disc set and OS???

    bought a used Mac Mini and can't get past security password Seller refuses to answer emails. is there a keyboard command to take it back to factory settings or do I need to buy a Disc set and OS???

    You can bypass the password and wipe the drive and return to the original facory installation if the seller included the orginal install DVDs with the Mac mini. If not you will need a retail version of Mac OS X.  To boot from the Install DVD restart the mini, immediately slip in the DVD and press and hold the C key.

  • Can't get past account informatio​n in App World

    I have tried everything but it just doesn't work.
    After I sign in it takes me right to my account information but then I can't get past that screen..its like an infinite loop.
    Having a balckberry without being able to use app world sucks. I'm tired of downloading everything ota
    PLEASE help! I will be eternally at your debt

    Darn -- that is exactly what it should do. If you could then navigate to MyWorld, it would present a screen saying it is resynchronizing with the AppWorld Servers, and this process has been known to clear up many other issues. Rats...
    See if this is helpful or at least correctly indicative of your symptoms:
    KB24200Screen loops when BlackBerry ID or PayPal authentication is verified in BlackBerry App World 2.0
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

Maybe you are looking for

  • Unable to start gdm xfce

    The power went out mid update and when I rebooted I am getting errors of missing libs and gdm/xfce4 fails to start. I have also tried pacman S-yu again plugged into ethernet, but said libs showed an error after that. I did find another post with simi

  • Changing from PC to Mac--which PS Elements should I get?

    I have been using PSE 7 on my pc, and it has done everything I need it to do, EXCEPT for including the llight blue guidelines that allow me to easily line up images. I have Wiindows 7 installed on my new iMac, and I suppose I could move PSE 7 from my

  • Problem while changing decimal places in SAP B1 2007

    Hi Experts, I want change the decimal places of Quantity type fields from 2 decimal places to 4 decimal places. But while changing it in Genral settings form ,it shows the error message "Cannot update while another user is connected to the company".

  • Cl_gui_alv_grid onf4 event handler

    Has anyone got a nice, tight, example of an ONF4 event handler using CL_GUI_ALV_GRID that they'd be willing to share? I'm trying to figure out the example in BCALV_EDIT_08. But, it's very difficult to follow. If BCALV_EDIT_08 is indicative of how muc

  • How do I begin payment for a webMarketing Business Catalyst subscription?

    Extreme frustration here.  I have a subscription to Muse, built an awesome website for my company, we have been testing it live under the "xxxx.businesscatalyst.com" option. I have looked everywhere and cannot find the place where I pay for a busines