Error message from form mail

This is the error message I keep getting.
Parse error: parse error, unexpected T_STRING in
/home/ehryckgi/public_html/contact.php on line 13
Here is the code I am using please help.
<?php
$your_company = $_GET['company'];
$your_name = $_GET['name'];
$your_phone = $_GET['phone'];
$your_email = $_GET['email'];
$your_message = $_GET['message'];
$recipient_mail = "[email protected]";
$subject - "from " . $Your_Email;
$headers = "From: " . $Your_Name . " <" . $Your_Email .
'>\n";
$headers = 'Content-type: text/html; charset=iso-8859-1';
$content = "<html><head><title>Contact
letter</title></head><body><br>";
$content .= "<Company: <b>" . $your_company .
"</b><br>";
$content .= "<Name: <b>" . $your_name .
"</b><br>";
$content .= "<Phone: <b>" . $your_phone .
"</b><br>";
$content .= "<E-mail: <b>" . $your_email .
"</b><br><hr><br>";
$content .= $your_message;
$content .= "<br></body></html>";
mail($recipient_email,$subject,$content,$headers);
?>
<html><title>Contact</title>
<body bgcolor="#282E2C">
<div align="center"
style="margin-top:60px;color:#FFFFFF:font-size:11px;font-family:tahoma;font-weight:bold")
Your message was sent. Thank you.
</div>
</body>
</html>
<script>resizeT(300, 300)</script>

On Wed, 20 Sep 2006 07:34:28 +0000 (UTC), "miketman"
<[email protected]> wrote:
> $subject - "from " . $Your_Email;
> $headers = "From: " . $Your_Name . " <" . $Your_Email
. '>\n";
> $headers = 'Content-type: text/html;
charset=iso-8859-1';
$subject = "from " . $Your_Email;
$headers = "From: " . $Your_Name . " <" . $Your_Email .
">\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1';
You may want to look into e-mail injection:
http://tinyurl.com/pnp59
Gary

Similar Messages

  • Browser Error Message from Forms when Published

    I am using JotForms in my site and when published the forms generate the following browser error:  MuseJSAssert:Error calling selector function. Object doesn't support this property or function.

    Hello,
    Are you able to see the error when you preview it in a Browser or when you export the site as HTML on your local machine or is it after the upload?
    Did you try deleting and reinserting the code from Jotforms into Muse?
    Could you please provide us URL of the site where we can check the issue?
    Regards,
    Sachin

  • Display error message in forms from function "verify_function"

    Hi,
    We have a number of users with our own created profile attached to them.
    We have enabled the 'PASSWORD_VERIFY_FUNCTION' for our own profile.
    Function "verify_function" is used to validate a user's password.
    In "verify_function" we have used "raise_application_error" message in case password validation fails.
    Example:
    raise_application_error(-20001,'Password must be minimum 8 characters in length and maximum 30 characters long');Question) "raise_application_error" displays the error message only in SQL Plus prompt. How do I display the same message from Oracle forms?.
    I have used DBMS_ERROR_TEXT & DBMS_ERROR_CODE in ON-ERROR trigger. This is not displaying the error message in forms in case validation failed in "verify_function". Oracle simply clears the username/password field with a new window. We want to display the error message that occured in "verify_function".
    Thanks

    use the following code in validating the item, e.g when-button-pressed
    begin
    verify_function;
    exception
    when others then
    message(sqlerrm);
    raise form_trigger_failure;
    end ;
    OR
    instead of writing a procedure rewrite it as a function to return 1 if password is correct or 0 if password is wrong
    Regards
    Jihad

  • How can i dispaly an Error Message from Server Side To form

    Hi All,
    How can i dispaly an Error Message from Server Side To form side .
    i try several ways nothing succed.
    i put the error in stack and after call the procedure from form i added
    Qms$Trans_Errors.Display_Messages;
    and because it is an error not informantional error the error screen displayed and enter
    in infinite loop acts like flashing .
    can any one help me please i use C/S Headstart6i and Designer 6i
    thanks alot
    radi

    hi,
    thanks alot lauri.
    yr code work only using information message but in error message its still the same .
    the error window still flash and enter in infinite loop of executeing the same triggers.
    thanks again
    radi

  • How to send error message to forms from Database Trigger

    Hi, Please help me to send error message to forms from Database Trigger?
    RgDs,
    Madesh.R.M

    You are correct, the On-Error trigger is a Forms trigger. However, if your Form is going to display the error generated by the database stored procedure or trigger - you might not see the database error in your Form unless you check the DBMS_ERROR_CODE in the On-Error trigger and manually display the Error Code and associated Text. I've see this happen with a co-worker. The Form she was working on was based on a table with an Before-Insert trigger. Because she was not explicitely handling the error from the Before-Insert trigger in the Forms On-Error trigger, her Form appeared to halt for no reason at all. Once she added code to the On-Error trigger in the Form to handle the DBMS_ERROR_CODE, she discovered the trigger was producing an error and was able to show the error to the user in the On-Error trigger.
    I understand the desire to keep as much as possbile in the database, but with that comes some extra coding in your Forms to handle this. This extra coding could easily be placed in a Forms Library, attached to a Form and called in the On-Error trigger. Your code could look like this:
    DECLARE
       /*This example assumes you have an Alert defined
          in your Form called: 'ERROR' */  
       al_id    ALERT;
       al_text  VARCHAR2(200);  /* Max text of a Forms Alert message*/
       al_btn   NUMBER;
    BEGIN
    IF DBMS_ERROR_CODE != 0 THEN
       /* Error code is ORA-00000 Normal Successful completion
           So only handle non-zero errors  */
       al_text := DBMS_ERROR_CODE||':'||DBMS_ERROR_TEXT;
       al_id := Find_Alert('ERROR');
       set_alert_property(al_id, alert_message_text, al_text);
       al_btn := show_alert(al_id);
    END IF;
    END;Your original question was "How to send error message to forms from Database Trigger?" The answer is you don't because Forms already gets the database error code and database message through the Forms DBMS_ERROR_CODE and DBMS_ERROR_TEXT functions. Look these up in the Forms help and it should clear things up for you.
    Craig...
    Edited by: CraigB on Jun 14, 2010 4:49 PM
    Edited by: CraigB on Jun 14, 2010 4:49 PM
    Edited by: CraigB on Jun 14, 2010 4:50 PM
    Edited by: CraigB on Jun 14, 2010 4:51 PM
    Edited by: CraigB on Jun 14, 2010 4:51 PM

  • On starting up firefox i am getting an error message from javascript application telling me that my username is an invalid username/password combination.If i continue to get this error message,try entering my email address as my username.

    Hi,on starting firefox which i have used solely as my browser for years i am now getting an error message from java script application that shows my username followed by a message saying; 'username'-Invalid username/password combination.If you keep getting this error,try entering your email address as your username'. I then press the OK button within that error message box and it dissapears and everything seems ok although hover my cursor over the mail(envelope) icon and it says not connected.
    I only started having this problem since downloading firefox 4.It also does not tell me where this problem is occuring so i do not know where to log on with this information.I would be most grateful for any help with this matter.Many thanks.

    Take a look in the Error Console for details about that.
    Tools > Error Console <br />
    Right-click the message and use '''Copy''' to get that complete message.

  • After importing received and set messages from Opera Mail, Thunderbird works fine but does not save sent messages to Sent folder, even though messages are sent

    I successfully imported messages from Opera Mail. Initially the Sent mailbox was not showing in Thunderbird. A quick removal and fresh installation solved that, but Thunderbird does not save the sent messages to the Sent box, where the imported Opera Mail messages are stored. Even though messages are not saved, they are sent correctly. The image attached shows the error message.

    Probably a name-confuse If you store sent on mailserver it has to have the right name. (subscribe)
    You could set up under Account settings / copies and folders (maps) Sent pointing to the right local folder.

  • IPhone error message from iPad

    In the middle of syncing my iPad (3G) this week it hung, and I had to shut the computer down as it froze too.
    Since then, I cannot use the 3G connection when I'm away from my wi-fi; Settings does not work (I can open it, tap General, tap Wi-Fi then it freezes); and I get an iPhone error message from iTunes when I connect my iPad(!) to my Powerbook (OS 10.6.7, iTunes 10.3.1). And iTunes sometimes recognizes the iPad as a Device, but often does not.
    I do have an iPhone 4 connected but it works fine.
    The iPad connection error message is:
    Any clues?
    BeemOs

    Did you set up Gmail as a mailbox in the Mail App on your iPad?

  • Why do i get email error message when e-mail is working ok and settings are correct pop3 email

    can anyone help please, i am receiving email error message( cannot get mail user name and password for work is incorrect) I am using a pop3 email accessed from microsoft outlook on desktop pc, my emails come through onto phone sometimes but most of the time i get the error message. i have checked settings with my email provider and they are correct. my iphone5 provider is 02. any advice very much appreciated this is a very annoying problem thankyou

    Check the thumbnails for exclamation marks, an indication of missing files. If you have moved images or folders using your computer operating system LR won’t know what you did and the original links will have been broken. You need to point LR to where you now keep the image(s) on your hard drive.
    This document has further information.
    Adobe Lightroom - Find moved or missing files and folders

  • Exception when fetch message from pop3 mail server

    below exception occur whenever i fetched message from pop3 mail server. Its occur for perticular message. so i catched javax.mail.MessagingException but this is not working and rest of the messages skips.
    plz help me , its urgent.
    javax.mail.MessagingException: error loading POP3 headers;
      nested exception is:
            java.io.IOException: Unexpected response: ------=_NextPart_000_01B9_01C8
    A1AB.148BE090
            at com.sun.mail.pop3.POP3Message.loadHeaders(POP3Message.java:467)
            at com.sun.mail.pop3.POP3Message.getHeader(POP3Message.java:275)
            at javax.mail.internet.MimeMessage.getSubject(MimeMessage.java:717)
            at fetch1.<init>(fetch1.java:92)
            at fetch1.main(fetch1.java:185)
    Caused by: java.io.IOException: Unexpected response: ------=_NextPart_000_01B9_0
    1C8A1AB.148BE090
            at com.sun.mail.pop3.Protocol.simpleCommand(Protocol.java:361)
            at com.sun.mail.pop3.Protocol.multilineCommand(Protocol.java:373)
            at com.sun.mail.pop3.Protocol.top(Protocol.java:271)
            at com.sun.mail.pop3.POP3Message.loadHeaders(POP3Message.java:451)
            ... 4 more
    Press any key to continue...Code :-
    import java.util.*;
    import java.io.*;
    import javax.mail.*;
    import javax.mail.Flags.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    public class fetch3
         fetch3()
              try
                   // Setup properties
                   Properties props = System.getProperties();
                   props.put("mail.pop3.host","myMailserver ip");     
                   // Setup authentication, get session
                   Authenticator auth = new PopupAuthenticator();
                   Session session = Session.getDefaultInstance(props, auth);
                   // Get the store
                   Store store = session.getStore("pop3");
                   store.connect();
                   // Get folder
                   Folder folder = store.getFolder("INBOX");
                   folder.open(Folder.READ_WRITE);
                   Flags flag = folder.getPermanentFlags();
                   // Get directory
                   Message message[] = folder.getMessages();
                   // Display from (only first) and subject of messages
                   for (int i=0, n=message.length; i<n; i++)
                   System.out.println ("------------------------------------------------------");
                        System.out.println(" From     : "+message.getFrom()[0]);
                        System.out.println(" To : "+message[i].getAllRecipients()[0]+" "+message[i].getAllRecipients().length);
                        System.out.println(" Replyto : "+message[i].getReplyTo()[0]);
                        System.out.println(" Subject : "+message[i].getSubject());
                        System.out.println ("type "+message[i].getContent());
                        Part messagePart=message[i];
                        Object content=messagePart.getContent();
                        // -- or its first body part if it is a multipart message --
                        if (content instanceof Multipart)
                             messagePart=((Multipart)content).getBodyPart(0);
                        //     System.out.println("[ Multipart Message ]");
                        // -- Get the content type --
                        String contentType=messagePart.getContentType();
                        // -- If the content is plain text, we can print it --
                        System.out.println("CONTENT:"+contentType);
                        if (contentType.startsWith("text/plain") || contentType.startsWith("text/html") || contentType.startsWith("multipart/alternative"))
                             InputStream is = messagePart.getInputStream();
                             BufferedReader reader
                             =new BufferedReader(new InputStreamReader(is));
                             String thisLine=reader.readLine();
                             while (thisLine!=null)
                                  System.out.println(thisLine);
                                  thisLine=reader.readLine();
                        System.out.println ("------------------------------------------------------");
                   // Close connection
                   folder.close(false);
                   store.close();
              catch(Exception e)
                   e.printStackTrace();
         public static void main(String s[])
              new fetch3();
    Regards 
    Sagar
    Edited by: sagar_birari on 23 Apr, 2008 1:18 PM
    Edited by: sagar_birari on 23 Apr, 2008 4:30 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    it shows below output
    C:\>java -Dmail.debug=true fetch1
    DEBUG: JavaMail version 1.4ea
    DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jre1.5.0_06\lib\java
    mail.providers (The system cannot find the file specified)
    DEBUG: !anyLoaded
    DEBUG: not loading resource: /META-INF/javamail.providers
    DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
    DEBUG: Tables of loaded providers
    DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax
    .mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsyste
    ms, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com
    .sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLSt
    ore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsyst
    ems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.su
    n.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=jav
    ax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc],
    com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP
    3Store,Sun Microsystems, Inc]}
    DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.
    sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STOR
    E,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Prov
    ider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc],
    pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems
    , Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
    Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.S
    MTPTransport,Sun Microsystems, Inc]}
    DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
    DEBUG: !anyLoaded
    DEBUG: not loading resource: /META-INF/javamail.address.map
    DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jre1.5.0_06\lib\java
    mail.address.map (The system cannot find the file specified)
    DEBUG: getProvider() returning javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.
    POP3Store,Sun Microsystems, Inc]
    DEBUG POP3: connecting to host "pop3_server_ip", port 110, isSSL false
    S: +OK Hello there.
    C: USER [email protected]
    S: +OK Password required.
    C: PASS mypass
    S: +OK logged in.
    DEBUG: setDebug: JavaMail version 1.4ea
    C: STAT
    S: +OK 16 143077
    C: NOOP
    S: +OK Yup.Edited by: sagar_birari on 24 Apr, 2008 1:16 PM
    Edited by: sagar_birari on 24 Apr, 2008 1:18 PM

  • Trapping exceptions/error messages on form based on procedure

    I am trying to display meaningful error messages when various exceptions arise. I have created a form based on a procedure and the procedure works and returns an exception where I want it.
    I have been trying to use the PL/SQL Button event handler to return an error message to the user, but have not succeeded. I have tried:
    doSubmit;
    exception
    when others then
    p_session.set_value(
    p_block_name => 'DEFAULT',
    p_attribute_name => '_STATUS',
    p_value => 'my error message';
    (I have run this code both with a return at the end and not.)
    This runs, but this return a page that says:
    Error: WWV-0000.
    (It does not display 'my error message'.)
    I have also tried, from the Portal FAQs:
    doSubmit;
    exception
    when others then
    wwa_app_module.set_target('myschema.MY_ERRORS.SHOW?p_arg_names=p_errcode&p_arg_values=-1',
    'GO');
    where my_errors is a dynamic page that displays an error message when you pass it a value, in this case, -1.
    I get the following error message from this code:
    PLS-00201: identifier 'WWA_APP_MODULE.SET_TARGET' must be declared
    I did find some discussions on problems with exceptions when you have a form based on a procedure, but these were from 2001. Any help with this or directions to documentation would be greatly appreciated.

    I worked out one answer: the code provided by Oracle for the second example omitted the portal schema qualifier on the wwa_app_module. It should be (for 10g release 2, at least)
    PORTAL.wwa_app_module.set_target('myschema.MY_ERRORS.SHOW?p_arg_names=p_errcode&p_arg_values=-1',
    ^^^^^^^^^^
    'GO');
    This worked, and returned the custom error message.
    I still can't figure out why the p_session.set_value returns an error message that's just WWV-0000, but I would like to. Any help, even just what page in what document to look at would be appreciated.

  • ITouch error Message  Cannot send Mail.

    My first generation iTouch has quite sending mail. I can receive email, but can not send. When I try to send mail I get the error message
    Cannot Send Mail
    The connection to the outgoing server "smtp.mac.com:jbleeg" failed.
    I am using apples Mail program and have it set up as imap. When I right click on the inbox and choose Edit Imap Accout, I can see the incoming and out going settings match my ipod setting screen.
    This used to work, but when apple went to this "cloud" and .me, it quit working.
    I rarely send email from my iTouch so this is not a big problem, but annoying.
    Any suggestions.
    Jerry

    The other thing you might want to try on your touch is to just delete the mail account and re-enter it. This seems to fix a number of problems with e-mail when you are getting these types of errors.

  • IPad Mail messages from Apple mail

    New ipad getting 10,000 old messages from Apple Mail application (or Comcast server). How do I stop it and get only new messages as of today?

    These are emails stored in the Sent folder in Mail, in 2 email accounts. Some are quite old, some recent. In addition, the Mail Inboxes were emptied, leaving only those emails that had been unopened. Those still on the server (I looked at Get Account Info in mail on different Mac to identify which) were downloaded and are in place in the ipad . In short, those lost were emails received and sent, stored locally on the ipad.
    When I did the update, it said there was an error so I had to backup and restore, via itunes. I thought emails would be backed up in this proces. I don't use icloud. Thanks

  • When I use the shortcut to open a new window in safari (command N), I get a 404 error message from Google. How do I change where 'Command N' routes to?

    When I use the shortcut to open a new window in safari (command N) on my Macbook Pro, I get a 404 error message from Google. How do I change where 'Command N' routes to? 

    It's not necessary to change the Command N keystroke..
    From your Safari menu bar click Safari > Preferences then select the Privacy tab.
    Click:   Remove All Website Data
    Then delete the cache.
    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.
    If that didn't help, troubleshoot Safari extensions.
    From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test.
    If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.

  • I am unable to print PDF's using either Adobe Reader or Safari. In Adobe Reader, I get an error message from my Cannon printer that says, "/usr.libexec/cups/filter/pstocupsraster failed". In Safari, I can only print the first page of a PDF.

    To try to resolve this problem, I have done the following actions.
    1 - I have run Disk Warrior.
    2 - I have repaired permissions.
    3 - I have deleted all plist that are either Cannon or Adobe.
    4 - I have downloaded and installed the lastest versions of Adobe Reader and the Cannon printer drivers.
    I am still unable to print PDF's.
    In Safari, I can print only the first page. In a multipage PDF, Safari only seems to recognize the first page.
    In Adobe Reader, I get an error message from my printer: "/usr/libexec/cups/filter/pstocupsraster failed".
    Any help would be greatly appreicated!

    Quit Safari.
    Open the Library folder in your home folder as follows:
    ☞ If running OS X 10.7 or later, hold down the option key and select Go ▹ Library from the Finder menu bar.
    ☞ If running an older version of OS X, select Go ▹ Go to Folder… from the Finder menu bar and copy the line below into the text box that opens:
    ~/Library
    Delete the following items from the Library folder:
    Caches/com.apple.Safari/Cache.db
    Preferences/com.apple.quicktime.plugin.preferences.plist
    Preferences/QuickTime Preferences
    Relaunch Safari and test.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ If you’re running OS X 10.7 or later, open LaunchPad. Click Utilities, then Console in the page that opens.
    Select "/var/log/cups/error_log" from the file list. Post the messages from the time of the last printing attempt.
    Post the log text, please, not a screenshot. If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.

Maybe you are looking for