Email from developer

Hi All
i'm using forms6 and want to send email to any address ,for exaample [email protected] with an attachment for example test.txt.
plz do help me regarding this, i will be very thankful to u. i need code
best regards!
softdesire

Here is what we use. Sorry, it's quite messy, but it's only a prototype and we plan to "clean" it only in a few weeks.
I left the comments so you can see what else you can use if you want to.
Hope it helps...
-------- beginning of the code --------
PROCEDURE P_SEND_MAIL (par_to IN VARCHAR2 := NULL,
par_cc IN VARCHAR2 := NULL,
par_bcc IN VARCHAR2 := NULL,
par_sujet IN VARCHAR2 := NULL,
par_texte IN VARCHAR2 := NULL,
par_attach1 IN VARCHAR2 := NULL,
par_attach2 IN VARCHAR2 := NULL,
par_attach3 IN VARCHAR2 := NULL) IS
     t_prn          varchar2(20);
/*declaration of the Outlook Object Variables*/
application ole2.OBJ_TYPE;
hMailItem ole2.OBJ_TYPE;
hRecipients ole2.OBJ_TYPE;
recipient ole2.OBJ_TYPE;
/*declaration of the argument list*/
args OLE2.LIST_TYPE;
msg_attch OLE2.OBJ_TYPE;
attachment OLE2.OBJ_TYPE;
des VARCHAR2(80) := 'blo';
attch VARCHAR2(80) := 'C:\sqlnet.log';
Visible OLE2.OBJ_TYPE;
BEGIN
/*create the Application Instance*/
     application:=ole2.create_obj('Outlook.Application');
     args:=ole2.create_arglist;
     ole2.add_arg(args,0);
     hMailItem:=ole2.invoke_obj(application,'CreateItem',args);
     ole2.destroy_arglist(args);
     msg_attch := OLE2.GET_OBJ_PROPERTY(hMailItem,'Attachments');
--     Visible := OLE2.INVOKE_OBJ(hMailItem,'Display');
     -- Attach the 1st file
     IF (par_attach1 IS NOT NULL) THEN
          attch := par_attach1;
          args := OLE2.CREATE_ARGLIST;
          OLE2.ADD_ARG(args, attch);
          attachment := OLE2.INVOKE_OBJ(msg_attch,'Add',args);
          ole2.destroy_arglist(args);
          OLE2.SET_PROPERTY(attachment,'name',des);
--          OLE2.SET_PROPERTY(attachment,'position',1);
--          OLE2.SET_PROPERTY(attachment,'type',1);
          OLE2.SET_PROPERTY(attachment,'source', attch);
--          args := OLE2.CREATE_ARGLIST;
--          OLE2.ADD_ARG(args, attch);
--          OLE2.INVOKE(attachment,'ReadFromFile',args);
--          OLE2.DESTROY_ARGLIST(args);
     END IF;
     -- Attach the 2nd file
     IF (par_attach2 IS NOT NULL) THEN
          attch := par_attach2;
          args := OLE2.CREATE_ARGLIST;
          OLE2.ADD_ARG(args, attch);
          attachment := OLE2.INVOKE_OBJ(msg_attch,'Add',args);
          ole2.destroy_arglist(args);
          OLE2.SET_PROPERTY(attachment,'name',des);
--          OLE2.SET_PROPERTY(attachment,'position',1);
--          OLE2.SET_PROPERTY(attachment,'type',1);
          OLE2.SET_PROPERTY(attachment,'source', attch);
--          args := OLE2.CREATE_ARGLIST;
--          OLE2.ADD_ARG(args, attch);
--          OLE2.INVOKE(attachment,'ReadFromFile',args);
--          OLE2.DESTROY_ARGLIST(args);
     END IF;
     -- Attach the 3rd file
     IF (par_attach3 IS NOT NULL) THEN
          attch := par_attach3;
          args := OLE2.CREATE_ARGLIST;
          OLE2.ADD_ARG(args, attch);
          attachment := OLE2.INVOKE_OBJ(msg_attch,'Add',args);
          ole2.destroy_arglist(args);
          OLE2.SET_PROPERTY(attachment,'name',des);
--          OLE2.SET_PROPERTY(attachment,'position',1);
--          OLE2.SET_PROPERTY(attachment,'type',1);
          OLE2.SET_PROPERTY(attachment,'source', attch);
--          args := OLE2.CREATE_ARGLIST;
--          OLE2.ADD_ARG(args, attch);
--          OLE2.INVOKE(attachment,'ReadFromFile',args);
--          OLE2.DESTROY_ARGLIST(args);
     END IF;
/*Get the Recipients property of the MailItem object:
Returns a Recipients collection that represents all the Recipients for the Outlook item*/
args:=ole2.create_arglist;
hRecipients:=ole2.get_obj_property(hMailItem,'Recipients',args);
ole2.destroy_arglist(args);
     IF (par_bcc IS NOT NULL) THEN
     /*Use the Add method to create a recipients Instance and add it to the Recipients collection*/
          args:=ole2.create_arglist;
          ole2.add_arg(args, par_bcc);
          recipient:=ole2.invoke_obj(hRecipients,'Add',args);
     /* put the property Type of the recipient Instance to value needed (0=Originator,1=To,2=CC,3=BCC)*/
          ole2.set_property(recipient,'Type',3);
          ole2.destroy_arglist(args);
     END IF;
     IF (par_cc IS NOT NULL) THEN
     /*Use the Add method to create a cc Instance and add it to the Recipients collection*/
          args:=ole2.create_arglist;
          ole2.add_arg(args, par_cc);
          recipient:=ole2.invoke_obj(hRecipients,'Add',args);
     /* put the property Type of the cc Instance to value needed (0=Originator,1=To,2=CC,3=BCC)*/
          ole2.set_property(recipient,'Type',2);
          ole2.destroy_arglist(args);
     END IF;
/*Use the Add method to create a bcc Instance and add it to the Recipients collection*/
     args:=ole2.create_arglist;
     ole2.add_arg(args, par_to);
     recipient:=ole2.invoke_obj(hRecipients,'Add',args);
/* put the property Type of the bcc Instance to value needed (0=Originator,1=To,2=CC,3=BCC)*/
     ole2.set_property(recipient,'Type',1);
     ole2.destroy_arglist(args);
/*Resolve the Recipients collection*/
     args:=ole2.create_arglist;
     ole2.invoke(hRecipients,'ResolveAll',args);
     ole2.destroy_arglist(args);
/*set the Subject and Body properties*/
--     ole2.set_property(hMailItem,'Subject','More information');
     ole2.set_property(hMailItem,'Subject', par_sujet);
--     ole2.set_property(hMailItem,'Body', par_texte);
     ole2.set_property(hMailItem,'Body', par_texte||chr(13)||chr(13));
/*Save the mail
     ole2.invoke(hMailItem,'Save',args);
     ole2.destroy_arglist(args); */
/*Send the mail*/
     ole2.invoke(hMailItem,'Send');
/*Release all your Instances*/
     release_obj(application);
     release_obj(hRecipients);
     release_obj(recipient);
     release_obj(hMailItem);
     P_NOD_AFF_MSG(NULL, 'Message sent.', t_prn);
EXCEPTION
          WHEN OTHERS THEN P_NOD_AFF_MSG(3, 'Message not sent.', t_prn);
END;
-------- end of the code --------

Similar Messages

  • [b]How to Send Email Through Developer using Micrsoft Outlook[/b]

    Here is the Code to Send Email From Developer 2000 using Microsoft Outlook(Note :- Outlook should be configured)
    Steps:-
    1. First Add the Wrapper Procedures for Outlook Express from the OLE Importer Utility such as
    · OUTLOOK_ATTACHMENT
    · OUTLOOK_MAILITEM
    PROCEDURE SENDEMAIL(to_Person varchar2,subject varchar2,body varchar2) IS
    EmailApp ole2.obj_type;
    EmailItem Ole2.Obj _Type;
    EmailAttachment Ole2.Obj_Type;
    EmailAttach ole2. obj_Type;
    aa number(5):=1;
    begin
    EmailApp:=ole2.create_obj('outlook.application');
    EmailItem:=ole2. create_obj('outlook.mail item');
    EmailAttachment:=ole2.create_obj('outlook.Attachment');
    EmailItem:=Outlook_Application.create Item(Email App,Outlook_Constants.olmailitem);
    EmailAttach:=Outlook_Mail Item.Attachment(Email Item);
    Add attachment From Block
    Go_block('BLK_ATTACHMENT');
    FIRST_RECORD;
    LOOP
    Email Attachment:=OutLook_Attachment.ole_Add(EmailAttach,;BLK_ATTACHMENTS.attach,1,AA,ISPNAME);
    AA:=AA+1;EXIT WHEN:SYSTEM.LAST_RECORD='TRUE';
    NEXT_RECORD;
    END LOOP;
    Outlook_mailitem.OLE_to(EmailItem,TO_PERSON);
    Outlook_mailitem.subject(emailitem,SUBJECT);
    Outlook_mailitem.Ole_body(emailitem,MAIL.BODY);
    Outlook_mailitem.send(emailItem);
    End;

    Here is the Code to Send Email From Developer 2000 using Microsoft Outlook(Note :- Outlook should be configured)
    Steps:-
    1. First Add the Wrapper Procedures for Outlook Express from the OLE Importer Utility such as
    · OUTLOOK_ATTACHMENT
    · OUTLOOK_MAILITEM
    PROCEDURE SENDEMAIL(to_Person varchar2,subject varchar2,body varchar2) IS
    EmailApp ole2.obj_type;
    EmailItem Ole2.Obj _Type;
    EmailAttachment Ole2.Obj_Type;
    EmailAttach ole2. obj_Type;
    aa number(5):=1;
    begin
    EmailApp:=ole2.create_obj('outlook.application');
    EmailItem:=ole2. create_obj('outlook.mail item');
    EmailAttachment:=ole2.create_obj('outlook.Attachment');
    EmailItem:=Outlook_Application.create Item(Email App,Outlook_Constants.olmailitem);
    EmailAttach:=Outlook_Mail Item.Attachment(Email Item);
    Add attachment From Block
    Go_block('BLK_ATTACHMENT');
    FIRST_RECORD;
    LOOP
    Email Attachment:=OutLook_Attachment.ole_Add(EmailAttach,;BLK_ATTACHMENTS.attach,1,AA,ISPNAME);
    AA:=AA+1;EXIT WHEN:SYSTEM.LAST_RECORD='TRUE';
    NEXT_RECORD;
    END LOOP;
    Outlook_mailitem.OLE_to(EmailItem,TO_PERSON);
    Outlook_mailitem.subject(emailitem,SUBJECT);
    Outlook_mailitem.Ole_body(emailitem,MAIL.BODY);
    Outlook_mailitem.send(emailItem);
    End;

  • How can I send email from my yahoo alias account in iPhone5 mail?

    How can I send email from my yahoo alias account in iPhone5 mail?
    I have 2 email accounts: [email protected] is an alias of [email protected]
    In my old iPhone3 I had these accounts set up so that I could send and receive email from both accounts. I did this using the following settings:
    ‘Other’ POP account info:
    Name: xyz
    Address: [email protected]
    Description: alias
    Incoming mail server:
    Host name: pop.mail.yahoo.com
    User name: [email protected]
    Password: password for yahoo account
    Server port: 995
    Outgoing mail server:
    SMTP: smtp.o2.co.uk (o2 is the name of my phone network)
    Server port: 25
    ‘Yahoo!’ account info:
    Name: xyz
    Address: [email protected]
    Password: password for yahoo account
    Description: Yahoo!
    Outgoing mail server:
    Primary server: Yahoo! SMTP server
    Server port: 465
    I’ve tried using the same settings in my new iPhone5, but it doesn’t work. I can receive mail to both accounts, and can send from the Yahoo account, but I cannot send mail from the alias account. When I try, it displays the message: “Cannot send mail. A copy has been placed in your Outbox. The recipient ‘[email protected]’ was rejected by the server”.
    I’ve tried to configure the POP alias account using combinations of ‘pop.mail.yahoo.com’, ‘pop.mail.yahoo.co.uk’, ‘apple.pop.mail.yahoo.co.uk’ and ‘apple.pop.mail.yahoo.com’, for the incoming host, and ‘smtp.o2.co.uk’, ‘smtp.mail.yahoo.com’, ‘smtp.mail.yahoo.co.uk’, ‘apple.smtp.mail.yahoo.com’ and ‘apple.smtp.mail.yahoo.co.uk’ for the outgoing mail server. None of these have worked.
    I’ve also tried setting it up using IMAP instead of POP without success. I tried configuring it using combinations of ‘imap.mail.yahoo.com’, ‘apple.imap.mail.yahoo.com’, ‘imap.mail.yahoo.co.uk’ and ‘apple.imap.mail.yahoo.co.uk’ for the incoming mail server and ‘smtp.o2.co.uk’, ‘smtp.mail.yahoo.com’, ‘smtp.mail.yahoo.co.uk’, ‘apple.smtp.mail.yahoo.com’ and ‘apple.smtp.mail.yahoo.co.uk’ for the outgoing mail server.
    Yahoo say that if I can't send Yahoo! Mail from my mail program, I may be accessing the Internet through an ISP that is blocking the SMTP port, and that if this is the case, I should try setting the SMTP port number to 587 when sending email via Yahoo!'s SMTP server. I don't think that this is the problem, but I tried it just to make sure - without success.
    I’ve also heard that the problem might have something to do with the SPF settings of my alias domain provider. I’m not too sure exactly what SPF settings are, or how to change them, but from what I can gather it seems unlikely that this is the problem given that I was able to send mail from my alias account on my old iPhone3.
    Any help much appreciated: how can I get my alias account to send emails in iPhone5 mail?
    Many thanks,
    Patrick

    A new development: I've tried sending emails from the alias several times over the past 24 hours, but in general I've deleted them if they haven't sent within about half an hour.
    However, one of the messages I left sitting in the outbox did send successfully in the end, but this took about an hour.
    So: perhaps my problem is not in fact that I am completely unable to send mail from my alias, but that I can only do so intermittently and extremely slowly, and by ignoring the "cannot send" message.
    Any help appreciated.

  • Unable to send email from my server to internet mail address. Labview.

    I have had great success sending mail when I SMTP to the actual mail server that the email address is on. But when I try to send from my server to some other email address I get an unable to relay "email address" server response. If someone has any ideas on this I would appreciate it. I have included some information that may aid in this endeavor. (I do not want to use Active X thanks to Outlook's dislike of that)
    Example:
    [email protected] email to mail.bellsouth.net works fine. [email protected] email to mail.company.com works fine. [email protected] from mail.company.com gives unable to relay message. (Vice Versa)
    Exact server response from SendEmail_LV6.vi from developer zone: (
    ht
    tp://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3EB9956A4E034080020E74861&p_node=DZ52050&p_submitted=N&p_rank=&p_answer=&p_source=External)
    220 server.company.com Microsoft ESMTP MAIL Service, Version: 5.0.2195.5329 ready at Fri, 23 Jan 2004 10:27:22 -0600
    250 server.company.com Hello [10.1.1.176]
    250 2.1.0 [email protected]...Sender OK
    550 5.7.1 Unable to relay for [email protected]
    554 5.5.2 No valid recipients
    500 5.3.3 Unrecognized command

    I agree, it is ususual for an SMTP server to check the validity of the reverse-path address, because mailers could just use a invalid address on a valid domain, e.g. [email protected] The address in the "MAIL FROM:" command gives the reverse path to communicate errors and can be different from the actual sender address.
    In any case, this is quite irrelevant for the current discussion, because address verification has nothing to do with relaying.
    The error message:
    550 5.7.1 Unable to relay for [email protected]
    is completely unrelated to your:
    450 Unable to find nowhere.com
    Just to clarify, I was talking about address in the FROM: field of the message header, and not what is
    communicated in the "MAIL FROM:" SMTP command. (Similarly, the TO: field in the header is not used for message targeting and can be anything, it can even be missing and the SMTP server still does not care. Targeting is done entirely with the RCPT TO: SMTP command which not contained in the header (the mail header is part of the message DATA). Refer to RFC 821 for further details.
    You probably won't find a legitimate SMTP server that allows relaying, so the solution is to use the designated SMTP server for the particular location.
    LabVIEW Champion . Do more with less code and in less time .

  • In Gmail I can setup other accounts to "send" email from- can I use these other addresses in Mac Mail

    In Gmail if you click the 'cog' button under your username you can choose "Settings" from the drop down menu. From Settings you choose the accounts and import tab and can enter other email addresses. This is useful to me because I have an email address [email protected] and while foobar.com host a server, the is no actual mail server but it can forward emails to aliases on that domain to some other another email address setup by admin.
    When I compose a message in Gmail in the browser I can choose [email protected] or [email protected] as my send address. I almost exclusively use my gmail account through Mac Mail on my MBP as an IMAP account.
    My question is, can I set up Mac mail in some way to send an email from the gmail server but using the alastair@foobar alias(es) as the send address?

    Hi...
    Thanks for your repaly .
    and i am not bale to post a question in developer forum i tried hard but i didnt get .Can you plz explain me how to post a question in developer forum this is very helpfull for me.Because i never did this thing.

  • Questions on Analyzer Upgrade and Moving Analyzer Reports from Development to Production

    Hi,We run Analyzer 5.0.3. We are planning to go to Analyzer 7.2. Did any body go thru this upgrade? If so, what is your opinion and tips that may help. Also, we never had Analyzer development environment. We are planning on having Analyzer development environment. In our installation, all of the Analyzer reports are centrally developed based on user requests. Once we have development and production at the same Analyzer version, if a report is developed in the development system, how can the report be mirateed/moved from development to production system?Thank you for your help,Prasant

    Balaji,
    Has this been done yet?
    Gary
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by [email protected]:
    We are working on a document using which one should be able to move a portal instance from one database to another. It is still in draft version, once it is finalized we will be putting it on otn.
    Thanks and Regards
    Balaji<HR></BLOCKQUOTE>
    null

  • How to recovers damaged emails from .IMM, .IMH files

    IncrediMail is an eminent email recovery software that accurately and efficiently recovers lost, deleted or corrupt IncrediMail emails and contact addresses. The software flawlessly
    recovers damaged emails from .IMM, .IMH files, and recovers addresses from .IMB files.
    IncrediMail recovery software recovers emails that got deleted accidentally, virus-attacked, damaged due to header corruption of .IMM, .IMH and .IMB files, media corruption, unexpected system shutdown, improper handling of IncrediMail email client, or even
    emptied from the 'Deleted Items' folder. The tool thoroughly scans damaged mail files during the recovery process, extracts email data, and then displays the recovered email data in a tree-like hierarchical structure from where user can select and save the
    required email messages at desired location.
    Read more:
    Allows recovering multiple deleted mails in a single attempt
    Provides preview of message text after scanning, prior to actual recovery
    Stores emails of 'Pegasus Mail' in '.MBX', '.EML' formats and other mail clients as '.EML' files
    Enriched with advanced and powerful QFSCI algorithms, the IncrediMail recovery software searches and restores lost emails with complete accuracy.
    Enriched with advanced and powerful QFSCI algorithms, the IncrediMail recovery software searches and restores lost emails with complete accuracy:
    http://www.filesrecoverytool.com/incredimail-recovery.html

    Hi,
    To my knowledge, exclude Outlook from indexing options will also disable your ability to search through your e-mail within outlook. You'll have to turn it back on if you want to have any search in Outlook client.
    Try to add below registry key and see if it helps:
    Key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
    Value name: NoSearchCommInStartMenu
    Value type: REG_DWORD
    Value: 1
    Note: After making the above Registry change, please restart your computer then try again.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Problem sending email from abap to Outlook

    We have a program that sends an email from ABAP to the SAP Inbox using FM SO_NEW_DOCUMENT_SEND_API1, the email arrives at the SAP Inbox and then it's redirected to Outlook. This works fine in 4.6C
    We just upgraded to ECC 6, the same process does send the email to the SAP Inbox, but it doesn't go to Outlook. In the Recipient list TAB of the email, it appears the following attributes
    Recipeint             email-address     via internet
    Send attribs NONE
    Status Return    Status is never returned. Status mail is only sent to inbox if error occur
    Trans History : Status         Document Sent
                                                Wait for communications service
    The strange thing is that if I'm in the SAP Inbox, and create and email from there, this email does go to the SAP Inbox and Outlook
    Any ideas ?

    Do you have COMMIT_WORK = ABAP_TRUE (or 'X') in your FM call.  I had to make this change for ALL email sends when I migrated from 4.6x to next version.
    In transaction SOST, can you send it from there?  Is your service running constantly or periodically in development (it's usually not)...

  • Conditional Routing of emails from Exchange 2007

    I have a requirement to be able to control the routing of emails from Exchange 2007 based upon the sender email address.
    For example, an exchange 2007 email system has 2 accepted domains, domain1.com and domain2.com.  The system uses 2 external SMTP gateways used for sending all outbound email (gateway1 & gateway2)
    If [email protected] emails [email protected] I want it to travel via gateway1
    If [email protected] emails [email protected] I want it to travel via gateway2.
    All mailboxes are on a single mailbox server cluster, and there are 2 load balanced Hub Transport servers.
    I have looked into various ways of dealing with this and have had no success.  I looked at transport rules, but I dont believe it is possible to specify the next hop.  I've also looked into setting permissions on the send connectors, but it is not clear exactly what permissions I need to set, or whether it will work.
    The only solution I can see is to forward all outbound emails to a separate SMTP gateway (such as postfix) which supports this kind of functionality.  However I would rather solve the problem using Exchange.
    Any suggestions?

    This is not possible natively in Exchange but you can create your own transport agent and hook it with Exchange to configure conditional routing. You may try posting a query in Development forum to get help from developers on writing a transport agent.
    http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/threads
    Here is a great step-by-step example in that direction, not exactly what you are looking for but quite similar to that...
    How to control routing from your own routing agent
    http://blogs.technet.com/appssrv/archive/2009/08/26/how-to-control-routing-from-your-own-routing-agent.aspx
    Amit Tank | MVP – Exchange Server | MCITP: EMA | MCSA: M | http://ExchangeShare.WordPress.com

  • Sending an email from Director 11?

    Prior to Director 11, I used an Xtra called, "E-mailExec" for
    sending emails from Director projectors. The developer of that Xtra
    has apparently abandoned it, and it won't work under Director 11.
    Can anyone suggest a good (cross-platform) alternative? Preferably
    not too expensive.
    All I really want to do is launch the users default email
    client, create a new message, and address it. Historically, the
    only way to do this using Directors built-in capabilities was to
    wrap a mailto: inside a web link. That works, but it has the
    unfortunate side-effect of launching the users default browser
    first, so it was always a bit funky. Does Director 11 have any new
    functionality for this?
    Any suggestions would be appreciated.

    I use the directEmailxtra from DirectXtras (
    http://www.directxtras.com/demail_docs.asp?UUID=1964762)
    It costs 199 us$, and allows you to send email without having
    to use Outlook, Thunderbird or something, you can just make your
    own emailprogram in Director. I use it for kiosks that need to send
    emails and it works great! You can attach pictures to it and all
    the other functionallity you would expect.
    hth,
    Johan-Belgium

  • How to send only email from workflow

    Hi Guys,
    I want to send an email from a workflow without sending a notification ... how do i do it ?
    Thanks In advance
    Tom.

    Hi,
    Two possible ways - neither of which I would recommend.
    1 - Write a trigger on the WF_NOTIFICATIONS table, so that if the notification for the process that you require is sent, then you populate the mailer status column to 'spoof' the mailer into thinking that it has already sent it. That should suppress the email.
    2 - Modify the flow to include an activity prior to the notification to change the recipient preferences to not receive email, send the notification, then change the preferences back.
    Email is an "all or nothing" solution - either get email from everything, or get it from nothing. How are they planning on dealing with the notification that they are sent? If they are logging into the application to view the notification, then you could consider sending summary notification emails, and force the users to log into the application to view them all, rather than trying to adopt a half-and-half solution where some things come by email and some only come in the application.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://thoughts.workflowfaq.com ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Send html email from AIR app

    Hi,
    We've successfully sent plain text email from our AIR application using navigateToUrl and the mailto protocol to launch the user's default email program, but if we try to use html markup in the body it gets sent as plain text.
    Is there any way to send an html email with navigateToUrl, or do we have to use an SMTP mailer? If the latter, is there support in AIR / Flex for SMTP, or do you have to use a 3rd party actionscript library?
    Thanks,
    Greg

    Hi Greg,
    It sounds like your email client is defaulting to plain text, maybe there's an option that would allow you to send emails as html?  Also, is the email body in encoded html?  Not sure how that encoding/decoding would be done using mailto links.
    AIR can do socket communication, so you could directly communicate with an SNTP server.  However you might want to look into third party libraries such as this one, to speed up your development time.
    Chris
    Ps. I don't have any experience with that third party library, maybe someone else with experience doing this could recommend other solutions.

  • Connectting from developer 6 to 8.1.6

    I am trying to install developer 2000 version 6 on the same server where oracle 8.1.6 resides. Can anybody help me how to establish connection from developer suite to the database? That will be great help.
    null

    Initialize x in onLoad
    onClipEvent (load) {
    accel1 = 0.8;
    rate1 = 0.1;
    trace(_x);
    _root.xkoord1 = 0;
    x = 0
    Lon Hosford
    www.lonhosford.com
    Flash, Actionscript and Flash Media Server examples:
    http://flashexamples.hosfordusa.com
    May many happy bits flow your way!
    "Euclides" <[email protected]> wrote in
    message
    news:e7unk6$4kg$[email protected]..
    > The next code works fine with Flash Player 6 and Action
    Script 1 but I'm
    > trying
    > to get it work on Flash Player 8 and Action Script 2.
    >
    > Any help, thanks in advance.
    >
    >
    > onClipEvent (load) {
    > accel1 = 0.8;
    > rate1 = 0.1;
    > trace(_x);
    > _root.xkoord1 = 0;
    > }
    > onClipEvent (enterFrame) {
    > x = x*accel1+(_root.xkoord1-_x)*rate1;
    > _x = _x+x;
    > if (Math.abs(_root.xkoord1-_x)<1) {
    > _x = _root.xkoord1;
    > }
    > }
    >

  • I received a phishing email from what I thought was my bank.  Do I need to do anything to my MAC for security?

    I received a phishing email from what I thought was my bank.  Do I need to do anything to my MAC for security? I have no anti-virus software.

    Evelyn, there is nothing that can prevent you or anyone from falling victim to those attempts to defraud you – other than you.
    "Phishing" scams are the most common way of getting people to voluntarily supply information that should be kept as secure as any other personal possession. "Anti-virus" solutions can't possibly prevent that sort of fraud, and if anything can only lull you into falsely believing you're being protected from threats, be they real or perceived.
    Do you have any further advice so that I don't fear my Mac?
    There is no reason to fear your Mac; it's a tool to be used for your sole benefit. Like any tool though, it can be misused. If there is any explanation for fear, it's a lack of education. Knowledge conquers fear and renders it inert. Learn what real threats actually exist, how to defend yourself from them, and how to distinguish them from those propagated by fear mongering psychopaths that justify their existence by keeping others misinformed. There are an abundance of the latter.
    There will always be threats to your information security associated with using any Internet - connected communications tool:
    You can mitigate those threats by following commonsense practices
    Delegating that responsibility to software is an ineffective defense
    Assuming that any product will protect you from those threats is a hazardous attitude that is likely to result in neglecting point #1 above.
    OS X already includes everything it needs to protect itself from viruses and malware. Keep it that way with software updates from Apple.
    A much better question is "how should I protect my Mac":
    Never install any product that claims to "clean up", "speed up",  "optimize", "boost" or "accelerate" your Mac; to "wash" it, "tune" it, or to make it "shiny". Those claims are absurd.Such products are very aggressively marketed. They are all scams.
    Never install pirated or "cracked" software, software obtained from dubious websites, or other questionable sources.
    Illegally obtained software is almost certain to contain malware.
    "Questionable sources" include but are not limited to spontaneously appearing web pages or popups, download hosting sites such as C net dot com, Softonic dot com, Soft pedia dot com, Download dot com, Mac Update dot com, or any other site whose revenue is primarily derived from junk product advertisements
    If you need to install software that isn't available from the Mac App Store, obtain it only from legitimate sources authorized by the software's developer.
    Don’t supply your password in response to a popup window requesting it, unless you know what it is and the reason your credentials are required.
    Don’t open email attachments from email addresses that you do not recognize, or click links contained in an email:
    Most of these are scams that direct you to fraudulent sites that attempt to convince you to disclose personal information.
    Such "phishing" attempts are the 21st century equivalent of a social exploit that has existed since the dawn of civilization. Don’t fall for it.
    Apple will never ask you to reveal personal information in an email. If you receive an unexpected email from Apple saying your account will be closed unless you take immediate action, just ignore it. If your iCloud, iTunes, or App Store account becomes disabled for valid reasons, you will know when you try to buy something or log in to this support site, and are unable to.
    Don’t install browser extensions unless you understand their purpose. Go to the Safari menu > Preferences > Extensions. If you see any extensions that you do not recognize or understand, simply click the Uninstall button and they will be gone.
    Don’t install Java unless you are certain that you need it:
    Java, a non-Apple product, is a potential vector for malware. If you are required to use Java, be mindful of that possibility.
    Java can be disabled in System Preferences.
    Despite its name JavaScript is unrelated to Java. No malware can infect your Mac through JavaScript. It’s OK to leave it enabled.
    Beware spontaneous popups: Safari menu > Preferences > Security > check "Block popup windows".
    Popup windows are useful and required for some websites, but unsolicited popups are commonly used to deceive people into installing unwanted software they would never intentionally install.
    Popups themselves cannot infect your Mac, but many contain resource-hungry code that will slow down Internet browsing.
    If you ever receive a popup window indicating that your Mac is infected with some ick or that you won some prize, it is 100% fraudulent. Ignore it. The more insistent it is that you upgrade or install something, the more likely it is to be a scam. Close the window or tab and forget it.
    Ignore hyperventilating popular media outlets that thrive by promoting fear and discord with entertainment products arrogantly presented as "news". Learn what real threats actually exist and how to arm yourself against them:
    The most serious threat to your data security is phishing. Most of these attempts are pathetic and are easily recognized, but that hasn't stopped prominent public figures from recently succumbing to this age-old scam.
    OS X viruses do not exist, but intentionally malicious or poorly written code, created by either nefarious or inept individuals, is nothing new.
    Never install something without first knowing what it is, what it does, how it works, and how to get rid of it when you don’t want it any more.
    If you elect to use "anti-virus" software, familiarize yourself with its limitations and potential to cause adverse effects, and apply the principle immediately preceding this one.
    Most such utilities will only slow down and destabilize your Mac while they look for viruses that do not exist, conveying no benefit whatsoever - other than to make you "feel good" about security, when you should actually be exercising sound judgment, derived from accurate knowledge, based on verifiable facts.
    Do install updates from Apple as they become available. No one knows more about Macs and how to protect them than the company that builds them.
    Summary: Use common sense and caution when you use your Mac, just like you would in any social context. There is no product, utility, or magic talisman that can protect you from all the evils of mankind.

  • PROBLEM IN CONNECTING to ORACLE 8i from DEVELOPER 6

    I have installed oracle8i Enterprise edition version 8.1.5, on an NT Machine (local database). I have access to database Using the SQL*PLus came with Database software, but unable to connect to database from developer rel 6.0. or SQL*Plus 8.0.5 . If any of you know the solution PLEASE LET ME KNOW.
    Thanks in advance

    I am trying to connect to the latest version of Developer 6.0 to Oracle8i database. I can't get a connection. Have been trying since 1/5/00. I have called and emailed Gina at Customer support. I get a ORA-12203 error after trying all solutions. The support comes by email about every 3rd day. It's very poor and the solutions haven't gotten me running yet.
    I am able to connect SQL*Plus 8.0 and all Oracle8i tools by entering no connect string, but nothing else.
    Will watch this area hoping for some help. I don't think Oracle is going to get me going.

Maybe you are looking for