You can use the SendMail PeopleCode function to send emails from within PeopleCode. You can also call this function from an Application Engine.
Note: Make sure your SMTP server is configured properly or the SendMail function will fail.
| Title | Under | Posted on |
|---|---|---|
| MD5 - SHA checksum of a file. | PeopleSoft Technical | 02/07/2012 - 5:29am |
| nVision Tabular Report through PIA with prompts | PeopleSoft Technical | 02/02/2012 - 10:07pm |
| Can we create an AE to mass update Position - Jobcode data? | PeopleSoft Technical | 01/18/2012 - 3:11am |
| Pay Components on job data can be defaulted and setup based on the rules? | PeopleSoft Functional | 01/05/2012 - 4:58am |
Comments
Failed to connect to the SMTP server at :25 (80,1)
Message Set Number: 80
Message Number: 1
Message Reason: Failed to connect to the SMTP server at :25 (80,1)
Application Engine program BIS_MAIL ended normally
i am getting this error when i run this program in App Engine. Can you pls help me how to resolve this.
Is your SMTP server configured properly? Try sending emails manually, follow this post.
I would also comment your variables in your application engine and try hard coding your values, like email address, cc, subject and so on. At this point, you just want to test the sendmail function and not your application engine.
Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog
I am working on a application that when employee submit a leave request, the superviser receives a e-mail alert.
1) What peoplecode on the Submit button? How to write?
2) How do I generically put supervisor's e-mail?
Please help.
Thanks!
Shannon
You can still use the same SendMail function to send your emial. Your PeopleCode will have an SQLExec function to get the supervisor email address.
FROM psoprdefn
WHERE oprid = (SELECT supervisor_id
FROM ps_employees
WHERE emplid = 'user-id-submitting-request');
You have all the info you need at this point, so just write your peoplecode to do the work.
Thanks for your help! 1) What peoplecode on the Submit button? How to write? SavePreChange?
I am getting this same error
Failed to connect to the SMTP server at :25 (80,1)]
on using the sendmail function
On using the peopelsoft delivered Notify, I dont get this error but the mail is also not delivered.
Please advise
is the smtp server up n properly configured for the system? any of the other notifications are working?
if not check with your ps admin.
In your peopleCode where sendmail fails, do you try to attach any URL to the email text?
If you use functions like GenerateComponentPortalURL inside your App Engine peoplecode, then there s chance for this to fail!
hi,
i need to send mail using app engine program but i want to us one table in Mail content.
can any body help me to find solution?
thanks in advance :-)
Hi ALL,
To fix the below error "Failed to connect to the SMTP server at :25 ", check the SMTP configuration is done in Process Schedular.
Mail Notification works fine, if SMTP is configured in App Server.
Mail Notification from Sendmail function (PeopleCode / App Engine) will not work when SMTP is not configured in Process Scheduler.
Regards,
Harsha
email:
I want to send mail at the submit button click with some attachment.
mail is going but the attachment is not.
the same code tried in app engine sends the attachment.
is thee some difference in restriction in sendmail function regarding its application engine or the peoplecode we are using it in ?
any help in this regard would be great.
thanks in advance !!!
try to run the same application Engine from front End.
Post new comment