[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 739
  • Last Modified:

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.
0
firza
Asked:
firza
  • 5
  • 5
6 Solutions
 
Malli BoppeCommented:
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 BoppeCommented:
You need to use ClickYes Pro
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
firzaAuthor Commented:
why l cannot used expressClickYes software coz this solftware also suport outlook 2003
0
 
Malli BoppeCommented:
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 BoppeCommented:
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
 
johnellyCommented:
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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now