Problem with openURL when sending Mail

Hi All
I am trying to send mail from my app using
[[UIApplication sharedApplication] openURL: [NSURL URLWithString:emailData]];
emailData contains a google URL that i want to send via email:
http://maps.google.com/maps?f=d&saddr=45.578982,-73.565698&daddr=45.578982,-73.5 65698
my problem is that on Mail app it is showing on the following portion
http://maps.google.com/maps?f=d
i did a couple of tests and find out that the problem is with the "&" i tried & or & did not work cause as soon as it finds teh "&" it drop the whole string that comes after it.
Any help on how I should format this string to appear correctly on my email will be greatly appreciated
thx for your help

You missed the point of my reply. You need to escape anything that you send. When you send 'http://maps.google.com/maps?f=d&saddr=45.578982,-73.565698&daddr=45.578982,-73 .565698' it's just not going to work. As mentioned, you need to Google how to escape variables when sent via GET. Not to mention, your openURL command is wrong as well:
[UIApplication sharedApplication openURL: NSURL URLWithString:emailData];
Where emailData is:
http://maps.google.com/maps?f=d&saddr=45.578982,-73.565698&daddr=45.578982,-73.565698
will absolutely never work. Check the docs for how to use openURL for sending an email using the mailto: protocol. Also, if the emailData that you send using openURL: doesn't look like the escaped string from this tool: http://www.xs4all.nl/~jlpoutre/BoT/Javascript/Utils/endecode.html you aren't properly escaping your URL params.

Similar Messages

  • Problem with interface - when send the data for PA0002

    Hi Gurus,
        I am interfacing employees data from one system to another system  with all the PA infotypes.
    we are using the fuction module " HR_MAINTAIN_MASTERDATA " to upload the master data. Here the problem is, when we send the data - in destination system all the segments have the data correctly . But middle name is not loaded in to the system. Problem with only middle name.
    But, here strange thing is, when i resend the idocs it is laoded correctly all the fields with middle name also.
    I am unable to figure out the problem .. Please let me know if you have any advise on this ..
    Thanking you.
    Regards,
    Giridhar Pujari

    Hi Sikindar,
       Technical name is corrent .. and once you resend the idoc, you can't see the problem again.
    Regards,
    Giridhar Pujari.

  • Having a problem with dates when I send my numbers doc to excel. dates are all out and that they have to cut and paste individual entries onto their spreadsheet. Any idea how I can prevent this

    having a problem with dates when I send my numbers doc to excel. dates are all out and that they have to cut and paste individual entries onto their spreadsheet. Any idea how I can prevent this.
    I'm using Lion on an MBP and Numbers is the latest version

    May you give more details about what is wrong with your dates ?
    M…oSoft products aren't allowed on my machines but I use LibreOffice which is a clone of Office.
    When I export from Numbers to Excel and open the result with LibreOffice, the dates are correctly treated.
    To be precise, dates after 01/01/1904 are correctly treated. dates before 01/01/1904 are exported as strings but, as it's flagged during the export process, it's not surprising.
    Yvan KOENIG (VALLAURIS, France) mardi 3 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : http://public.me.com/koenigyvan
    Please : Search for questions similar to your own before submitting them to the community
    For iWork's applications dedicated to iOS, go to :
    https://discussions.apple.com/community/app_store/iwork_for_ios

  • Textarea problem when sending mail (only Firefox)

    When sending mail using textarea item with multiple lines, carriage returns are taken away in resulting mail when sent in Firefox, but not in IE.
    To send mail, I call Javascript function that gets textarea value ($v or $x.innerHTML give the same result) and calls then on-demand process that calls in turn APEX_MAIL function.
    Igor

    Thank you, Jari!
    "pre" did the trick. Line breaks are OK now.
    There is one small inconvenience, though: font becomes Courrier instead of sans-serif type. But this is less disturbing than missing line breaks.
    Igor

  • I can't send emails from Mail. I have three different accounts set up and have the same problem with all. The mail just sits in my outbox. All worked fine until Yosemite upgrade. Recent update has not fixed problem.

    I can't send emails from Mail. I have three different accounts set up and have the same problem with all. The mail just sits in my outbox. All worked fine until Yosemite upgrade. Recent update has not fixed problem.

    I have been experiencing the same problem. My mail app won't even open on my Late 2011 Macbook Pro. It will show as open, but the app will never actually show up.

  • TS3276 I receive a pop up from ICal saying the server does not recognize me user name and password.  This started yesterday.  I have no problems with receiving or sending emails through Mail

    I receive a pop-up from ICal saying the server does not recognize my user name and password for my me.com email address.  This started yesterday and occurs about every 5 minutes or so.  There are no problems with receiving or sending email through Mail.  I did change me email password several days ago but have no problems sending/receiving since then.

    I fixed the problem.  I opened Preferences in ICal and entered my new password.  No more pop-ups

  • I want to bcc myself when sending mail from one account but not another. When I check "automatically bcc myself", it bcc's me from both accounts.  Can I set this to work with only one account?

    I have two mail accounts on my Mac.  I want one account to bcc me when I send emails from that account.  I checked "automatically bcc myself" under mail>preferences>composing, but both accounts bcc me when sending mail.  Can I set this to only bcc myself from one specific email account? Thanks.

    It does not make sense that your ssh does not have a dash capital Y (-Y) option. It is in "man ssh", and my 10.6.6 has the -Y option, and I've had a -Y option since at least Tiger (10.4) days.
    My ssh is in /usr/bin/ssh
    I'm not very good at X11 issues, so I'm just throwing ideas out there.
    Does your broken account have a $HOME/.ssh/config file, and if so, what is in it?
    Does the broken account have any $HOME/.x* or $HOME/.X* files that X11 might be reading to configure your X11 behavior differently from the new test account?
    $HOME/.Xauthority
    $HOME/.Xdefaults-<hostname>
    $HOME/.Xresources
    $HOME/.ICEauthority
    $HOME/.keymap.km
    The above are a few names I found looking through "man X"
    While I'm thinking about it, I assume that when going to the server, you are using the exact same user account on the server, so that you have a constant at least at that end.
    Have you tried trashing your
    $HOME/Library/Preferences/org.x.X11.plist
    file, to see if that is affecting the broken account?
    Again, I am just throwing out ideas to see if anything sticks.

  • "smtp error" in webmail when sending mails

    Hello,
    "smtp error" in webmail when sending mails
    why?

    With the very little data offered, I can only give a general idea.
    "smtp error" usually means that webmail isn't pointed to a smtp server for sending out mails.
    Webmail normally (by default) points to the same box it's on for sending mails out. You can change the host and port with configutil.
    Some versions of webmail must point to iMS, and other mail servers won't work. Since I have no idea what version you have, I can't tell if this is a problem.
    Did it ever work?
    What version are you using?

  • Dtmail on x86 crashes when sending mail

    Hi,
    I'm running Solaris 10 on x86 and I'm wondering if there is a fix or a workaround
    for dtmail crashing when sending mail. There is an existing bug report for this
    filed July 20 2006 (6346618) but I'm unable to view the bug detail since I have
    not yet fully decided on a service plan. I've searched around Sunsolve and
    google but nothing is coming up. I tried build 45 of Solaris Express and the
    same problem is present. Does anyone have any additional information
    about this? Is a fix available for serivce plan holders?
    Thanks,
    Pat

    Thank you for looking at the bug. I do have 121488-01 installed; patch dated 12/19/2005. If a fix for this is rolled up into another patch, so far it is not available to me. As of this morning, there are no updates; dtmail still crashes on sending mail.
    Searching sunsolve for this returns three bug numbers:
    6346618 (dated July 20, 2006)
    5091421 (dated November 4, 2005)
    1187150 (dated November 16, 1995)
    although the 1995 bug is probably unrelated. Looks like my best chance at working around this may be to grab the dtmail binary from Solaris 9. Thanks to all who have looked at this with me so far; I appreciate it.
    Regards
    Pat

  • Spinning wheel not showing when sending mail

    Hello,
    I recently gave my older iMac G5/2GHz to my Mom and got her all set up - I transferred all of her documents and photos from her old original iMac G3/350 to the "new" iMac G5/2GHz. The iMac G5/2GHz has a very clean and up-to-date Mac OS X 10.4.11 on it. I used the iMac G5/2GHz right up until I got my new iMac 3.06 GHz Intel Core 2 Duo a few weeks ago.
    I deleted all the prefs files and related files and folders from Mail 2.1.3 and started off with a "fresh" copy of Mail 2.1.3. I then imported all her e-mail messages, folders and addresses from her old version of Outlook Express 5.0.6. I had a few problems with the import but I got it all straightened around (she had a few mail folders named with either a colon ":" or a slash "/" in them so I got that straightened out and everything worked fine afterward).
    But there's a strange problem happening with Mail 2.1.3 when she sends e-mails now. I am used to seeing the little "spinning wheel" to the right of the "Sent" mailbox when sending an e-mail to someone and the word "Sent" actually always seemed to change to "Sending" while mail was being sent but it doesn't do that anymore. The only way we can tell what's happening when sending e-mail is to open the Activity window from Mail's "Window" menu.
    Has anyone else encountered this problem and is there any way you may know of to fix it so that we can see the "progress" (the "spinning wheel") of the mail being sent to the right of the "Sent" mailbox (without having to use the "Activity" window)?
    All of her messages send and receive no problem but I can't, for the life of me, figure out why we can't see the progress of mail being sent out (we can see the progress spinning to the right of the Inbox when checking mail but nothing shows up when sending mail).
    Thanks in advance for your help.
    Gerard

    Hi Gerard,
    Yes it can, first I'd try this...
    Right click on that Mail folder, choose archive, you'll get everything in the folder, and the folder itself in a file called Mail.zip, move it to a safe place, same for the Mail Downloads folder... only the plist is separate.
    /Users/YourUserName/Library/Preferences/com.apple.mail.plist
    (Deleting may or may not require you to setup your account(s) again.)
    Quit Mail, then In your home folder, try moving this +folder & file+ to the Desktop then reboot...
    First, Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, then move these +folder & file+ to the Desktop.
    Move this Folder to the Desktop...
    /Users/YourUserName/Library/Caches/Mail/
    Move this file to the Desktop...
    /Users/YourUserName/Library/Mail/Envelope Index
    Reboot.

  • Hi, recently purchased macbook 13", I have problem with sound when connect to my LG Smart tv with sound system. When i change sounds effect on my sound system also LG its all go quiet didn't have this problem with my laptop. Any advise ?

    Hi, recently purchased macbook 13", I have problem with sound when connect to my LG Smart tv with sound system. When i change sounds effect on my sound system also LG its all go quiet didn't have this problem with my laptop. Any advise ?

    Some progess I see. To be honest, i would not waste your time with trying to connect using wireless.
    You are likely to get poor connections and dropping out.
    If its working using a cable, then there is no need to bother with giving me the network settings, bu see how it goes, because sometimes giving the TV a static IP address can give better results.
    There is an example of a couple of powerline adapters on the diagram below. Just ignore the network switch unless you want to connect other devices which are near to the TV.
    http://forumhelp.dyndns.info/networking/powerline3.jpg
    I will monitor the subject line of this thread, should you want to post any more information.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Error PDF when sending mail

    Dear all,
    i'm facing a PDF error when sending mail, i figure that PDF attachment can't be more than 100 pages. is that correct?
    below is the error message when open ADOBE, this won't happen when pages in adobe less than 100.
    "Adobe Reader could not open 'NAME.PDF' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded) "
    can anyone help me please.

    Dear Experts
    I already configured application server configuration file with specifying SMTP mail server IP in pluginParam parameter
    <pluginParam name="mailServer">202.157.161.76</pluginParam>
    <property name="enableSSL" value="no"/>
    <property name="mailUserName" value="%[email protected]%"/>
    <property name="mailPassword" value="%soyacl#123%"/>
    what is the issue
    Pl clarify
    Please reply it's urgent

  • I have problems with Gmail when I open it in Firefox. The button "write a letter" doesn't work

    Dear Firefox team,
    I have problems with Gmail when I open it in Firefox. The button "write a letter" doesn't work. On the page it is seen as if the page is being downloaded but in fact not. As a result, I can't neither write new letters no reply to received mail.
    Best regards,
    Alla Khv

    -> If images are missing then check that you aren't blocking images from some domains. See:
    http://kb.mozillazine.org/Images_or_animations_do_not_load
    -> Check the permissions for the domain in the current tab in Tools > Page Info > Permissions
    -> Check that images are enabled: Tools > Options > Content: [X] Load images automatically
    -> Check the exceptions in Tools > Options > Content: Load Images > Exceptions
    -> Check the "Tools > Page Info > Media" tab for blocked images (scroll through all the images)
    -> There are also extensions (Tools > Add-ons > Extensions) that can block images.
    Troubleshooting extensions and themes
    https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes
    Check and tell if its working.

  • I have a problem with itunes when I sync the saved music and want to sync my iphone 5 ios 7.0.6 no longer passes the music thing is that just stays on "waiting for sync" and not worry please help are more than 400 songs that do not want to hear who are wi

    I have a problem with itunes when I sync the saved music and want to sync my iphone 5 ios 7.0.6 no longer passes the music thing is that just stays on "waiting for sync" and not worry please help are more than 400 songs that do not want to hear who are wi

    Plawexki wrote:
    ...  do you know if the contacts, photos, messages etc will be wiped?
    Yes... Everything will be Wiped and Replaced with what is currently on Your Mac.
    SYNCING with iTunes
    See here  >  http://support.apple.com/kb/HT1386
    From Here  >  http://www.apple.com/support/iphone/syncing/
    You may find this information of interest...
    Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha
    And See Here...
    How to Use Multiple iDevices with One Computer

  • Problems with navigation when deploy application on WebLogic 10.3

    Hi! I have problems with navigation when I deploy my application on Weblogic server 10.3. In my application I have two pages. One page where I can see the records. In this page I have button Create with action to secound jspx page. When I press this button then the first form (where I could see all records) is empty - the create operation worked, but navigation to second page not. Navigation rules is in adf task flow. In default server all works correct. Where is the problem?
    Maybe when I deploy my application I need specialy deploy adf task flow or somewhere write something? If so, then can you explain me where? Any suggestions what to do.
    Best regards!

    I have in log:
    2009.26.3 20:12:52 oracle.adfinternal.controller.faces.lifecycle.JSFLifecycleImp
    l setLifecycleContextBuilder
    WARNING: ADFc: Replacing the ADF Page Lifecycle implementation with 'oracle.adfi
    nternal.controller.application.model.JSFDataBindingLifecycleContextBuilder'.
    2009.26.3 20:12:52 oracle.adfinternal.controller.util.model.AdfmInterface initia
    lize
    INFO: ADFc: BindingContext is present, using ADFm APIs for DataControlFrames.
    2009.26.3 20:12:52 oracle.adfinternal.controller.metadata.provider.MdsMetadataRe
    sourceProvider <init>
    INFO: ADFc: Controller caching of MDS metadata resources ENABLED.
    2009.26.3 20:12:52 oracle.adf.controller.internal.metadata.MetadataService$Boots
    trap add
    INFO: ADFc: Loading bootstrap metadata from '/WEB-INF/adfc-config.xml'.
    2009.26.3 20:12:54 oracle.adf.share.security.providers.jps.CSFCredentialStore fe
    tchCredential
    WARNING: Unable to locate the credential for key AUGI in D:\bea\user_projects\do
    mains\base_domain\config\oracle.
    2009.26.3 20:12:54 oracle.adf.share.jndi.ReferenceStoreHelper throwPartialResult
    Exception
    WARNING: Incomplete connection information
    Edited by: Debuger on Mar 26, 2009 11:18 AM

Maybe you are looking for

  • Can't connect to my Windows XP computer

    Everything worked flawlessly with the MacBook, but of course now that I bought the MacBook Pro and reformatted my MacBook, I can't get into my Windows XP computer. I turned off the Windows firewall to help in troubeshooting. I get the message: "The a

  • Archive Rebate agreement?

    Hello Everybody, I have settle the rebate agreement and also credit memo is created. Now, I want to archive the Rebate agreement, but unfortunately validity of Agreement is after the current date. that's why document is unable to archive. so how to c

  • Passing xml as string to xmlPanel function

    hello Genius, I am using XML2UI feature of Extending Flash. I want to pass XML through string in place of xml file in xmlPanel function. is there any way to avoid creating 20 xml files and distributing them as my planned extension have 20 ui's. thank

  • Can i Buy the Iphone4s outright but pay my actually class and texts on a contract with 02?

    I want to buy the iphone4s as a present but I want to buy it outright in store as I do not want to pay for someone elses contract... however the person it is for will not want "pay as you go" they will want to pay for the minutes and texts via a cont

  • Error when save the query

    Hi All, We have migrated from 3.x to 7.0 (QA). In BEx analyzer when we save the new query the following error message getting. 1. Program GP77SAI0MJZN9QMLKWR6SIGCYYA does not exist 2.  An exception with the type CX_SY_PROGRAM_NOT_FOUND occurred, but