Writing a php code to send email link

Hi guys-
I have a php Fulfillment API that downloads a book. I want to write a code that sends an email (like one of those email address verification emails) with a random link that will run the code. I want to place the link in Paypal so that when a transaction is completed they get sent the email with the download link- Only problem- I just learned the term php- still don’t quite know what it means. Any thought of where I can start? I’m using cs6. Thanks in advance.

Here is what php is:
It is interpreted code that runs on your server.
According to the folks that are responsible for it, "PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML."
It is open source and free, so if your hosting provider does not support it, you need to change your hosting provider.
But you have a fulfillment API (Application Programming Interface). You need to use sample code supplied with that API to create a script that will do what you want. Since you do not know php, you're looking at probably a month's worth of work in learning enough to be able to write in this scripting language, testing it and applying the sample code you have been supplied to do what you want.
Go to http://us.php.net/  to learn how to use php or, better still, sign up for a course.
Or hire a professional to build what you want.
-Mark

Similar Messages

  • Send email link

    Looking for a email link program to send secure quicktimes and server information. Something similar to dropdox, but using my leopard server.

    Here is what php is:
    It is interpreted code that runs on your server.
    According to the folks that are responsible for it, "PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML."
    It is open source and free, so if your hosting provider does not support it, you need to change your hosting provider.
    But you have a fulfillment API (Application Programming Interface). You need to use sample code supplied with that API to create a script that will do what you want. Since you do not know php, you're looking at probably a month's worth of work in learning enough to be able to write in this scripting language, testing it and applying the sample code you have been supplied to do what you want.
    Go to http://us.php.net/  to learn how to use php or, better still, sign up for a course.
    Or hire a professional to build what you want.
    -Mark

  • Does any one have a sample code for sending email using IMAP ?

    Hi
    thank you for reading my post
    I have tried to use SMTP and because of some problems i could not use it and i must use Imap (authentication required)
    here is my SMTP code , does any one know how i can tune it to use Imap , or has a code snippet to send email using Imap ?
    thanks
    private static void postMail(String[] recipients, String subject, String message,
                             String from) throws MessagingException {
            boolean debug = false;
            class SMTPAuthenticator extends javax.mail.Authenticator
                    public PasswordAuthentication getPasswordAuthentication()
                        return new PasswordAuthentication(mail_usrname,mail_password);
            //Set the host smtp address
            Properties props = new Properties();
            FileInputStream fis;
            try {
                System.out.println("Loading property file");
                fis = new FileInputStream(new File("c:/email.properties"));
                props.load(fis);
                System.out.println("property file done");
            } catch (FileNotFoundException e) {
                System.out.println("file not found");
                e.printStackTrace();
            } catch (IOException e) {
                System.out.println("can not read properties file");
                e.printStackTrace();
            /*props.put("mail.smtp.user", mail_usrname);
    props.put("mail.smtp.host", smtpHost);
    props.put("mail.smtp.port", smtpPort);
    props.put("mail.smtp.starttls.enable","true");
    props.put("mail.smtp.socketFactory.port", smtpPort);
            // create some properties and get the default Session
            Authenticator auth = new SMTPAuthenticator();
            Session session = Session.getDefaultInstance(props, null);
            session.setDebug(debug);
            // create a message
            Message msg = new MimeMessage(session);
            // set the from and to address
            InternetAddress addressFrom = new InternetAddress(from);
            msg.setFrom(addressFrom);
            InternetAddress[] addressTo = new InternetAddress[recipients.length];
            for (int i = 0; i < recipients.length; i++) {
                addressTo[i] = new InternetAddress(recipients);
    msg.setRecipients(Message.RecipientType.TO, addressTo);
    // Setting the Subject and Content Type
    msg.setSubject(subject);
    msg.setContent(message, "text/HTML");
    System.out.println(msg.toString());
    Transport.send(msg);

    Please try this out!!!!!!!!!
    You can send emails using Outlook also. You can send email over Microsoft Exchange with this object (or another email server, using IMAP/POP).
    Sub SendMailOutlook(aTo, Subject, TextBody, aFrom)
    'Create an Outlook object
    Dim Outlook 'As New Outlook.Application
    Set Outlook = CreateObject("Outlook.Application")
    'Create e new message
    Dim Message 'As Outlook.MailItem
    Set Message = Outlook.CreateItem(olMailItem)
    With Message
    'You can display the message To debug And see state
    '.Display
    .Subject = Subject
    .Body = TextBody
    'Set destination email address
    .Recipients.Add (aTo)
    'Set sender address If specified.
    Const olOriginator = 0
    If Len(aFrom) > 0 Then .Recipients.Add(aFrom).Type = olOriginator
    'Send the message
    .Send
    End With
    End Sub

  • Failed to use sample code to send email

    I tried to use the sample of 'sending email from the database with the utl_smtp package', the 2 packages were created successfully, but when I run the pl/sql block to call the stored procedure with:
    BEGIN
    demo_mail.mail(
    sender => 'Me <[email protected]>',
    recipients => 'Someone <[email protected]>, ' ||
    '"Another one" <[email protected]>',
    subject => 'Test',
    message => 'Hi! This is a test.');
    END;
    I got the error:
    ORA-29540: class oracle/plsql/net/TCPConnection does not exist.
    The error explained is:
    Cause: Java method execution failed to find a class with the indicated name.
    Action: Correct the name or add the missing Java class.
    May I know that how how I follow the action?
    I manually installed Jserver by running the initJVM.sql following the instruction. But I still get the error. Maybe My question can be: where is the class class oracle/plsql/net/TCPConnection installed, and how can I add it.
    I searched the dba_objects, the only objects similar is a JAVA CLASS '/d70c43a_TCPConnection'.
    Minny
    Thanks
    MInny

    you ust to download activation.jar and mail.jar and add them to your build path.
    i have used the googlemail smtp server to send mail the code is following:
    public void SendMail()
    Properties props = new Properties();
    props.put("mail.smtp.user", username);
    props.put("mail.smtp.host", host);
    props.put("mail.smtp.port", port);
    props.put("mail.smtp.starttls.enable","true");
    props.put("mail.smtp.auth", "true");
    props.put("mail.smtp.socketFactory.port", port);
    try{
         Authenticator auth = new SMTPAuthenticator(username,password);
    Session session = Session.getInstance(props, auth);
    MimeMessage msg = new MimeMessage(session);
    msg.setText(text);
    msg.setSubject(subject);
    msg.setFrom(new InternetAddress(senderEmail));
    msg.addRecipient(Message.RecipientType.TO, new InternetAddress(receiver));
    Transport.send(msg);
    }catch(Exception ex) {
         System.out.println("Error Sending:");
    System.out.println(ex.getMessage().toString());
    and this the SMTPAuthenticator Class which you will need too.
    class SMTPAuthenticator extends javax.mail.Authenticator {
         private String fUser;
         private String fPassword;
         public SMTPAuthenticator(String user, String password) {
         fUser = user;
         fPassword = password;
         public PasswordAuthentication getPasswordAuthentication() {
         return new PasswordAuthentication(fUser, fPassword);
         }

  • Cannot send email links from Safari share button in iOS8

    Hi All:
    This is a new one for, and not something I have experienced since link sharing was introduced. I am running iOS 8.1.1 on my iPhone 6. When I find a web page I want to share in Safari, I tap the Share icon, and the share sheet comes up. I select Mail, and a pre-populated email sheet appears. I can type text in the Message or Subject fields, but if I try to select a different sender address or enter a recipient address, the email message simply disappears. it's not in Mail trash or Drafts. It's just gone. This does not happen with my iPad mini 3 at all. Also does not happen on any of my family members' phones.
    Obviously, I can Select,Copy,Paste the link into a manual email message. But sharing a link via email does not work in my phone. Any ideas besides a restore?
    TIA!

    In Mail, select Mail > Preferences > General > Default email reader: Mail 5.2

  • HOW TO SETUP FIREFOX 6 TO SEND EMAIL LINKS

    FIRFOX SHUT DOWN WHEN I TRY TO SEND A PAGE BY EMAIL LINK

    Fix to enable launching of external mail applications for handling mailto links after uninstalling Google Toolbar:
    # Open the address "'''about:config'''" by typing it into the address bar.
    # In the "'''Filter:'''" box, type in "'''network.protocol-handler.external.mailto'''"
    # If the value of 'network.protocol-handler.external.mailto is "false" (it should be in bold, since this is not the default value), change it to "'''true'''" by double-clicking on the name "network.protocol-handler.external.mailto".
    # Go to '''Options->Applications''', enter "'''mailto'''" in the search box, and for the Action select the external application you would like to launch upon click of a mailto: link.
    Explanation:
    I was having the same problem as you've described (uninstalling Google Toolbar broke mailto: functionality, and changing the mailto: association under Options->Applications did not fix the problem). After opening about:config, I noticed the network.protocol-handler.external.mailto key was set to false and that it was not being changed despite selecting an external application in Options->Applications. I believe that Firefox should automatically set this value to "true" when an external application is explicitly chosen via Options->Applications, since this is obviously a conscious decision on the part of the user to allow an external app to handle mailto links.

  • Tired of typing codes to send email

    In the past couple of weeks I keep getting a code to type in before my emails are sent. I'm tired of this and am not sending spam and will quit yahoo if this persists Other people with yahoo mail are not getting this message. Why am I?

    That really isn't a Firefox support issue.
    Have you tried Yahoo Mail support?

  • All new php code now sends the header already sent warning

    I have had none of these 'headers already sent....' problems
    creating php forms in the past with dreamweaver cs3 (on leopard).
    Now, every single php form generated using dreamweaver returns this
    warning - without fail. I copied the EXACT code from a working
    login form into a new page.....the new page, using the same include
    file is now returning the warning: I am pasting the code that
    works, and below that, the code that does not work. Even Developer
    Toolkit, on the rare occasion it doesn't cause DW to crash, seems
    to be inserting code that does not work properly - same goes for
    the insert > data objects.
    I've attached the code from both pages - page that works at
    the top, page that doesn't work at the bottom:

    debrankin55 wrote:
    > I have had none of these 'headers already sent....'
    problems creating php forms
    > in the past with dreamweaver cs3 (on leopard). Now,
    every single php form
    > generated using dreamweaver returns this warning -
    without fail.
    Select Modify > Page Properties, and check Title/Encoding.
    Make sure
    that Include Unicode Signature (BOM) is deselected.
    If that doesn't do the trick, select View > Code View
    Options > Hidden
    Characters. Make sure there aren't any rogue characters
    outside the PHP
    tags, both in the affected page and any include file.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Grayed out "No Service" on Safari icon sending email link

    Since I upgraded to Yosemite, I get a grayed out "No Service" message when I click on my email icon link (square box with arrow point up) on Safari. I am on a website, say Apple store, and I want to email the page or link to someone to show them a product. Is there a setting I should adjust to activate this feature, please? Many thanks.

    Follow the instructions in this article released by Apple.
    http://support.apple.com/kb/HT6545?viewlocale=en_US
    Best.

  • How to stop computer from using microsoft outlook to send email link instead of thunderbird.

    Recently added microsoft security essentials as security when problem started.

    Try set [[Make Thunderbird the Default Mail Client|Thunderbird as default client email]].

  • Tip - delete any email address code in the Insert email link prior to use!

    I have been using the email link for a while now. I know its not secure, but in certain cases it can be used - I think.
    Today I found a strange problem.
    I have a recordset with lots of email addresses in it which are shown on an encrypted password and userlevel  protected page.
    The idea is to allow users with fully authorised access to the page to be able to email the other users by clicking on a link and opening their email client.
    The email addresses are displayed as follows on the page:
    <td>Email address:</td>
               <td><?php echo htmlentities($row_clubedit['club_chair_email'], ENT_COMPAT, 'utf-8'); ?></td>
    So after highlighting and copying  the php code, I click on the insert email link in the insert menu.
    The insert panel comes up with some code  in the email link field without me paying any attention to it.
    I paste my code into the text part of the link panel.
    It comes up with the following code:
    <td><a href="mailto:<?php echo $row_joinupset['mail']; ?>"><?php echo htmlentities($row_clubedit['club_chair_email'], ENT_COMPAT, 'utf-8'); ?></a></td>
    Note that thre are now two different recordsets in the email address.These recordsets do exist on the page, but I did not insert the  $row_joinupset['mail'] into the code - Dreamweaver did it.
    Checking further, I find that earlier on the page I had created an email link by the same method using the joinupset recordset. The insert Email Link panel had not cleared the old email address from it's cache, so all the email adresses after the first one pointed to the same email address.
    Because the page showed the correct email address, I did not notice until I tested my code, and found that every one called up the first email address.
    I do not know if this is a bug in Dreamweaver, or why it happens, but it does.
    Tip - delete any code in the email adress field of the insert panel prior to inserting the correct email address code.
    CS5.5 on a 64 bit win 7 machine.

    I have gone though this process yesterday and worked for me.
    I would suggest you to have following things handy before calling Apple
    1. Serial number of apple device which is associated with ur apple id
    2. At least one answer to your old security questions
    3. And you should be logged on to my account page of apple Id so that when customer care demands generation of 4 digit code you can do it.
    This complete process is very simple but may take some time but apple guy was very helpful in my case.
    Also remember the answers to the security questions are case sensitive.
    Good luck

  • How to send emails using java code

    Hi,
    can any give me some sample code for sending emails using java language

    JavaMail quick start
    jGuru: Fundamentals of the JavaMail API

  • Notification Template  and send Email in oim 11g

    Hi All
    I need to send an email(html) format to users.I have created the a notificationtemplate through webconsole.
    I am intrested to know are there any api's available in 11 g to access this particular notification template in my java code and send email to a user using this template.
    iam referring to the class <oracle.iam.notification.vo.NotificationTemplate> and <Thor.API.OperationsInterface tcEmailOperationsIntf> classes but iam unable to access the notifcation template and send email.
    Edited by: Bipin Patil on Jul 1, 2011 12:34 AM

    Hi Rajiv Dewan
    Your link was helpful iam able to connect the the notification template.
    Now iam able to get the Template name,Subject,ID,Locale etc.
    I have one small question how to get the message from the template using this api,
    I referred the NotificationEvent,NotificationTemplate api's still iam not able to get message from my template and set message in my template.
    Is there any other API's i need to explore to get message from notification template.
    Thanks and Regards
    Bipin patill
    Edited by: Bipin Patil on Jul 1, 2011 5:29 AM

  • Creating events without sending email - 2005Q4

    I would like to create events (admin function) for groups of users and NOT have any mail sent. Is there a way to do this? Thanks

    Rajiv, i am not using any adapter . I am writing the code directly in the Custom UI service class.
    I am able to get the database connection and even i am able to print the body of my email template . But at the last stage in sendEmail method error occurs. Will it be possible to achieve my requiremnet through task adapter as i do not store the password in OIM. I thought of getting the value directly from the jsp page when GIA analyst enters the password for accessing the application and calling the 5 lines of code for sending email after that. Please let me know whether my approach is correct.

  • Send Email via Outlook 2007 with "send to field" blank.

    I have a simple question:
    - How do I get the user's Outlook 2007 "New Email Message" box to open up when the user clicks on a button called "Send Email"?
    - Outlook is the default Email client on each user
    - I need the Outlook box to open, with the following values prefilled:
    To: blank (so the user can type in an address)
    From: [email protected]
    Subject: blah, blah, blah
    Body: Hello, etc...
    The part I'm having trouble with is getting the Send To field to be blank or unfilled?

    Leonard, Thanks for the quick post..
    Along with your tip, I ended up doing the following, which worked perfectly:
    <cfset to_email="">
    <cfset subject_text="Here is the Link to the Form..">
    <cfset body_text="Welcome to the Step by Step Procedure!%0A">
    <cfoutput><a href = "mailto:#to_email#?subject=#subject_text#&body=#body_text#">Click to Send Email Link to Customer</a></cfoutput>
    Note: I used the %0A at the end of my Body text to help with formatting.
    One other question: How do I make this code above run directly from my SPRY menu?
    - Currently I have to open another form and then click on hyperlink text on the form
    - I would rather bypass the new form page altogether, and just call the code from my SPRY menu?
    - Here is the code behind my SPRY Drop-Down menu item:
    <li><a href="form_emailLink.cfm" target="_blank">Send Form Link</a></li>

Maybe you are looking for

  • DVI video out suddenly not working.

    That's basically it. I have a 23-inch Cinema HD Display at home and at the the office. Suddenly the video out is not working with either of them. The displays control panel lists the external display, so the system is detecting the connected display.

  • Blackout with subtitles on Leopard. FR or Perian problem?

    I can't watch .avi files with .srt subtitle files on front row anymore. The screen goes black as the first subtitle appears. On Quicktime they run fine (thanks to Perian plug in), and they did run fine on Tiger Front Row. I first thought it was becau

  • How do create a multi select that is one directional in a jsp page

    i am trying to create a one directional multi select in jsp that is when select the option from the multi- select the first time is not appear again that is for instance if i have a status option of NEW Fix Closed they should come from the database f

  • DIfference Between User Exits, Screen Exits, Menu Exits And BADI

    Could any one let me know the exact/practical dIfference Between User Exits, Screen Exits, Menu Exits And BADI. ? And why BADIs are more proned to use?

  • City Lens after new update on Lumia 710

    It isn't working. The app opens and as soon as I click an option, it says "There was a problem. Please try again" It used to work fine before. Its only after installing the update that I'm struggling. Yes, I've tried uninstalling and re-installing it