How do l procced this programming without ms outlook prompt this message?

l have programming in Powe Builder to send e-mail automatically In the application server. l has used microsoft outlook 2003. And to auto run my program l used software Solway's Task Schedular.
Ms outlook 2003 prompt 1 message before sending the email " A program is trying to automatically send e-mail on your behalf. Do you want to allow this? " and l must click button Yes and then the e-mail sending.
What must l do to stop this message alert and the email auto sending without prompt this message.
firzaAsked:
Who is Participating?
 
Malli BoppeConnect With a Mentor Commented:
You can use click yes program to stop prompting for yes
http://www.contextmagic.com/express-clickyes/
0
 
firzaAuthor Commented:
actually l already install Clickyes software on server application.
but when l suprise why  the clickyes software not auto run. if l log -in the server then the clickyes software execute the function.  
0
 
Malli BoppeConnect With a Mentor Commented:
You need to use ClickYes Pro
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
firzaAuthor Commented:
why l cannot used expressClickYes software coz this solftware also suport outlook 2003
0
 
Malli BoppeConnect With a Mentor Commented:
Look at the link that I sent to your .It compares pro and express tells what each one can do
0
 
firzaAuthor Commented:
is there any solution withour used ClickYes software?
0
 
firzaAuthor Commented:
l used power bulder in my programming.
due your code it that suitable for powerbuilder scripting?
mailsession lms_MAPISession
mailmessage lmm_Message
mailFileDescription mAttach
 
//string ls_email,ls_itadmin , ls_reminder
 
lms_MAPISession = CREATE mailsession
 
IF lms_MAPISession.MailLogon() = MailReturnSuccess! THEN
	// Mail Sesion is ok so Populate the Message
		
 
lmm_Message.Subject =  "Site Status - Asset No. : "  + is_assetno + "."
lmm_Message.NoteText = "Dear Sir / Madam," + "~r~n~r~n" + "Please be informed that the site investigation has been done for the following asset and the result is as follow : " + "~r~n~r~n" + "Status : COMPLETED " + "." + "~r~n~r~n" + "Asset No. : " + is_assetno + "." + "~r~n~r~n" + "Track No. : " + is_trackno + "." + "~r~n~r~n" + "DSS Reference No :" + is_iwkref + "." &
  + "~r~n~r~n" + "Takeover System Address for HQ user : http://iwkappeon:9988/takeover" + "~r~n~r~n" + "Takeover System Address for Unit Office user : http://172.20.3.33:9988/takeover" + "~r~n~r~n" + "IMPORTANT : DO NOT REPLY/FORWARD THIS EMAIL TO (TAKEOVER) EMAIL ADDRESS."
		
if isnull(is_emailtodss)=false and is_emailtodss<>"" then
        lmm_message.recipient[1].recipienttype=mailTo!
        lmm_Message.Recipient[1].Name = is_emailtodss
else
        lmm_message.recipient[1].recipienttype=mailTo!
        lmm_Message.Recipient[1].Name="takeover@iwk.com.my"
end if
							
lmm_message.recipient[2].recipienttype=mailCC!
lmm_Message.Recipient[2].Name = is_emailtoccdss
			
lmm_message.recipient[3].recipienttype=mailCC!
lmm_message.Recipient[3].Name = is_emailccuom
			
lmm_message.recipient[4].recipienttype=mailCC!
lmm_message.Recipient[4].Name = is_emailcccrd
				
lmm_message.recipient[5].recipienttype=mailCC!
lmm_message.Recipient[5].Name = "takeover@iwk.com.my"
			
IF lms_MAPISession.MailSend( lmm_Message ) = MailReturnSuccess! THEN
//	  Messagebox( 'Mail', 'Message was sent.' )
//update status in takeover_doc to 'Y'
	UPDATE EMAILTAKEOVER SET SENDSTATUS='Y' WHERE ID=:ii_id USING SQLCA;
			
	if sqlca.sqlcode=-1 then
	    rollback using SQLCA;
	else
            commit using SQLCA;
	end if
			
Else		  
//	  Messagebox( 'Mail', 'Sending mail failed.' )
END IF
	
lms_MAPISession.MailLogoff()
END IF
 
DESTROY lms_MAPISession

Open in new window

0
 
Malli BoppeConnect With a Mentor Commented:
The scipts that I provided are VB scripts so I don't think you can use them in your case.
0
 
firzaAuthor Commented:
it have a script in Power Builder?
0
 
johnellyConnect With a Mentor Commented:
Look at this Winsock powerbuilder example called EmailSMTP at www.topwizprogramming.com/freecode_emailsmtp.html 

It works directly via Winsock and so you don't get the pop ups
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.