How to solve Gmail “send as”/”send from” on your iPad/iPhone

As usual when I’m struggling with a technical problem and then finally manages to solve it I like to share that knowledge with others so here we go! (As always, I don’t take any responsibility if you manage to erase something or damage your device, even tough I guess doing so by following this guide would be rather hard ^_~)

The problem

I have 1 Gmail account to which I link all my 15 different email-adresses so that I get a unified inbox and depending on which email-adress someone mailed me at I reply with the same adress. I have recently gotten myself an iPad and when I realized that this was impossible to do at first glance and that all email that I responded to would come from my ***@gmail.com adress, I started googling.

What I wanted

  • To be able to send from different email-adresses
  • That when someone mailed me at ***@***.*** my respons-adress would automatically be set to ***@***.***, if it’s one of my adresses.
  • To do all this in either iPads native mail application or the official Gmail application

The solution

The solution was a rather strange one which I could finalize with the help of google and my good friend Carl Oscar Aaro (check out his homepage, he’s an awesome photographer). I imagine that it will work for both iPad and iPhone but I haven’t tried it for iPhone myself.

Before you start

  • Go to http://m.google.com/sync with your device
  • Change language to English
  • Choose your device (for me, iPad)
  • Click “Enable Send Mail As for this device” and press “Save”
  • I’m not sure if the above step is needed but better safe than sorry. Anyways, now you are all set so here we go:

    On your iPad

    • Go to settings.
    • –> Mail
    • –> Add Account…
    • –> Other
    • –> Add Mail Account
    • –> Add Mail Account
    • Fill in your credentials where adress is the adress you want to send from (don’t worry, we will add all of them later, for now fill in just one adress)
    • –> IMAP
    • Incoming Mail Server, host name: imap.gmail.com
    • Incoming Mail Server, user name & password: Your gmail account
    • Outgoing Mail Server, host name: smtp.gmail.com
    • Outgoing Mail Server, user name & password: Your gmail account

    Then you are done, you will know have an active IMAP Gmail account with another email adress to send from. You will probably have an old Gmail configuration that you now have to deactivate so that you only have one active mail account. After you have done that it’s time to add those others mail accounts.

    Some more stuff to do on your iPad

    • Open up the notes application
    • Create a new page
    • Write down all of your mail adresses that you want to be able to send from, separated by a comma. Sort them in the order that you use them because the first adress will be the first to pop-up later in your mail application. For example: example@test.com,samuel@sweden.se,steve@jobs.su
    • Mark all the text and copy it.
    • Go back to settings and your newly created Gmail account
    • Open it up, press “Account”
    • Clear the field “Adress” in “IMAP Account Information”
    • Paste in your copied adresses
    • Press “Done” and “Done”

    And there you’re done! If you now open up the native mail application you will notice that if you compose a new message that you press the “Cc/Bcc, From” row and change from which adress that you will send your email. And not only that, if you receive an email to a specific adress, if that adress is available as a “From”-adress it will be chosen automatically. If you have the official Gmail application installed you will no longer need it so feel free to hide it or uninstall it.

    I hope that this guide helped you and if you ever struggle with a technical problem and then finally manages to solve it, please share your solution like this :)

    Det är inte dig det är fel på, det är din inkompetens

    (Ungefär såhär kan det låta när man ringer och vill ha teknisk support på jobbet under en helgdag. Jag har kortat ner lite, men inte överdrivit. Kanske är jag orättvis som postar detta. Men alltså… Jag förväntar mig inte att de ska ha full personalstyrka på IT-akuten på helgerna. Jag förväntar mig inte att de ska kunna lösa alla fel och svara på alla frågor. Men är det för mycket begärt att de ska förstå själva frågan?

    ”Hej jag heter Linnea och ringer från avdelning 128. Jag har en laptop här som inte får någon kontakt med det trådlösa nätverket.”
    ”Vad sa du… en laptop?”
    ”Ja, alltså en bärbar dator.”
    ”Jaha, och du kommer inte åt nätverket… du kan inte komma ut på Aftonbladet eller så heller?” (Inte en så dum fråga som det kan tyckas. Kommer jag åt Internet är det ju bara anslutningen mot datajournalsystemet som felar.)
    ”Nej, jag har ingen kontakt alls, det står bara ”autentiseringsförsök pågår” under status”
    ”Ja men då har du ju ingen kontakt alls.”
    ”Nej, precis.” (Det var ju det jag sa!)
    ”…”
    ”Så vad gör jag för att fixa det här?”
    ”Nä, om du inte har någon kontakt alls så går det ju inte att göra något.”
    ”Nähä… men jag kan koppla in en nätverkskabel. Vänta, jag gör det nu. *kopplar in kabel* Så. Ja, nu får den kontakt, så problemet är den trådlösa anslutningen.” (I min enfald tror jag att människan nu ska kunna fjärrstyra min dator och åtgärda felet, för så har de löst det vid ett tidigare tillfälle när jag hade samma problem.)
    ”…”
    ”Så vad är nästa steg nu, hur går jag vidare för att åtgärda problemet?”
    ”Men… du kommer åt det du vill nu?”
    ”Ja, fast bara så länge nätverkskabeln är ikopplad, så då måste jag ju sitta här vid skrivbordet.”
    ”Så… Vad är problemet egentligen?”
    ”Ja, jag kan ju inte bära runt på datorn.”
    ”Nej, då får du ju sitta där vid skrivbordet.” (Ekar det här eller?)
    ”…ja och då är det ju inte så stor vits med en bärbar dator, om jag inte kan ta med mig den. Det måste ju gå att ändra inställningarna på något vis så att det fungerar.”
    ”Nej, det är ju ingen som har den behörigheten som jobbar nu, vetdu, då får du ringa igen imorgon.” (Kunde du inte ha sagt det MED EN GÅNG?)

    Answer from HTC regarding Eclair for the Hero

    HTC Support
    Customer Information
    Name Samuel Åström
    Telephone ************
    Email Address ******@******.***
    Country Sweden
    Inquiry Information
    Inquiry Type Technical Support
    Inquiry Description Hi! I’m anxiously waiting for the release of Android 2.1 (Eclair) for the HTC Hero and just wonder, when will it be released? And where will I be able to find/download it? And last, will the Hero then support mobile tethering to Mac OSX after the update? Yours, Samuel Åström

    New Response From [ ********* (Nordics Support (Tech)) ]
    Hi Samuel,

    Thank you for your email.

    We have no information at the moment confirming a specific release date of an upgrade to 2.1.
    Please become a member of the e-club on our website, then you will receive a confirmation via email when the upgrade is available.

    Once more detailed information is available on the expected release
    dates and which of the HTC branded Hero devices will be updated then a more formal announcement
    will be made.

    Regarding tethering with Mac OS, our products does not have support for Mac.
    There might be third party applications, nut since we do not support this I would not know for sure if this is available.

    Best regards,
    ********* *********

    Japan-Jens kodar i ADA

    Lånar Linneas konto lite för att slänga upp ett litet ADA-program jag & Jussi skrev precis:

    with Ada.Text_IO; use Ada.Text_IO;

    procedure badger is
    Hell_temp : Float;

    begin
    Hell_temp := 444.5;
    New_Line;

    Badger_Loop :
    loop
    for X in 1 .. 3 loop
    for X in 1 .. 12 loop
    Put("Badger ");
    delay 0.3;
    end loop;
    New_Line;
    Put("Mushroom ");
    delay 0.8;
    Put("Mushroom ");
    delay 0.8;
    New_Line;
    end loop;
    for X in 1 .. 12 loop
    Put("Badger ");
    delay 0.3;
    end loop;
    New_Line; delay 0.5;
    Put("A sn");
    for X in 1 .. 14 loop Put('a'); delay 0.1; end loop;
    Put("ke");
    New_Line;
    Put("a sn");
    for X in 1 .. 14 loop Put('a'); delay 0.1; end loop;
    Put("ke");
    New_Line;
    for X in 1 .. 5 loop Put('o'); delay 0.1; end loop;
    Put("h "); delay 0.3;
    Put("it's "); delay 0.2;
    Put("a "); delay 0.2;
    Put("sn"); delay 0.1;
    for X in 1 .. 5 loop Put('a'); delay 0.1; end loop;
    Put("ke."); delay 1.0;
    New_Line(2);

    exit Badger_Loop when Hell_temp <= 0.0;
    end loop Badger_Loop;
    end badger;

    A first guide to the HTC Hero – 1

    HTC Hero
    So 2 weeks ago I finally got my first smartphone. I had been waiting since January for the Palm Pre but when I realised that it seems like it never will be released in Sweden I bought my second alternative, the HTC Hero. First of all, for you who doesn’t know about the HTC Hero, it runs on Googles OS for mobile handsets, Android. That means that anyone who wants are free to program applications, modify the OS and your smartphone isn’t restricted. And for me running mostly Ubuntu at home, of course the whole idea of using a free OS appeals to me. But since I have really good experience of Palms products over the years I prefered their Pre. Anyway, here is my first guide of what I have struggled with and found out these past 2 weeks.

    For me, the most important aspects of a smartphone are:

  • The calendar
  • The contact list
  • Getting directions from the GPS
  • The keyboard
  • Reading and sending email
  • Multitasking, running several applications at a time
  • Good connectivity between applications. For example, contact list should be able to speak with the email-, sms-, phone- and facebook-app.
  • In this post, I will tell you about importing contacts and calendars.

    Importing contacts
    I wanted to import contacts from several places. My old Nokia phone, my Palm Tungsten and my iPod Touch. I had some trouble, with all the contacts disappearing from the Hero a couple of times before I was finished. Here is my guide for succeeding.

    The Hero contact application has 3 different types of contacts. Phone, Google and SIM. The contacts you can either sync with your Google-account or a PC with for example Microsoft Outlook. The problem is when you sync with for example Google, the phone doesn’t always keep the contacts you want it to keep. And the app leaves a lot of wanted improvements that hopefully will come in Android 2.0. Here is how I solved my contacts:

    First of all, I decided to only use “Google-contacts”. Now everything works but the downside is that you cannot have given name and a surname for each contact. So for all my future contacts, I am careful to choose “Google” as the contact type when I add another one. For unfortunately, you don’t have the option to change the contact type afterwards.

    So for a start, I went to the Contact application on the Hero, choosed Groups, pressed the “Menu”-button and then “Sync Groups”. There you can if you have synced it with your google account see all available groups. Uncheck “All contacts” because if you sync that group you will get all who you have ever sent or received a email from. I checked “My contacts” and then exported my old contacts from all different places and imported them to http://contacts.google.com. Because I’m impatient, I wanted to force a sync instantly afterwards so to do that, enter “Settings — Data synchronization — Google” and uncheck and check Contacts. It then takes a while but then you have all your contacts on your phone. To connect all contacts to facebook, enter the contacts app, “Updates and events” and the phone will automatically (if you have your facebook account all set up) link your friends. Really nice to get photos and birthdays in the contact list.

    If you end up halfway with a weird contact list on the Phone but correct on Google Contacts, I recommend erasing all contacts on the phone and then perform another sync. But at all time, be sure to have backups on your contacts by exporting them from Google Contacts before you do something like this. To erase all contacts, enter “Settings – Applications — Manage Applications — Contacts Storage” and press “Clear data”.

    Android
    Importing calendar
    This was quite a hassle, not as “easy” as importing contacts. Like contacts my weapon of choice this time was Google and their Calendar solution. The trick was to get everything on the net nice and clean, erase everything on the phone and perform a full sync. The problem is that if you like me, didn’t use Google Calendar before, to import all events from the past 8 years without having Google Calendar crashing on you. My previous calendars I had on iPod Touch so I synced it with iTunes and Microsoft Outlook. From there, I exported them ics-format. The advantage with the ics-format is what every event in your calendar has a unique ID so if you import the same file to Google Calendar several times, you will not end up with lots of duplicates of your events, instead the events will correctly replace each other.

    Then it was time for import. I had 5 calendars, ie. ics-files which I wanted to import. 4 of them where no problem since they where quite small. I created new calendars which I imported them to and everything went smoothly. But the last and biggest one turned out to be a problem. So to solve this, I had to split it up into 10 files. The easiest way to do this is to open it in a text editor, cut and paste and save each file in uft8. Each ics-file should start with all the information in the original file which you find before the events start (an event starts with “BEGIN:VEVENT and ends with “END:VEVENT”). For one of my files it looks like this:

    BEGIN:VCALENDAR
    VERSION:2.0
    X-WR-CALNAME:TimeEdit
    PRODID:-//Evolvera AB\, //TimeEdit//EN
    X-WR-TIMEZONE:Europe/Stockholm
    CALSCALE:GREGORIAN
    METHOD:PUBLISH
    BEGIN:VTIMEZONE
    TZID:Europe/Stockholm
    LAST-MODIFIED:20091108T134933Z
    BEGIN:STANDARD
    DTSTART:20091025T030000
    TZOFFSETTO:+0100
    TZOFFSETFROM:+0200
    TZNAME:CET
    END:STANDARD
    BEGIN:DAYLIGHT
    DTSTART:20100328T030000
    TZOFFSETTO:+0200
    TZOFFSETFROM:+0100
    TZNAME:CEST
    END:DAYLIGHT
    END:VTIMEZONE

    So just copy the text-block in your file that looks like this into a new file, cut a couple of events and end the file with “END:VCALENDAR”. If you still have problems with importing the file, try dividing them up into more files. I ended up dividing my biggest file into 10 smaller ones. Just be sure to always save the file as UTF8. And as a last piece of advice, Google has a limit for how many events you can import per day (about 3000) so if you are importing lots of events, you can have to wait until the next day before you can continue.

    If you after the full sync where left with a broken calendar, then like with contacts, enter settings and remove everything and try again. And in the Calendar applications, press the “Menu”-button, “Calendars” and there you can choose which you want to show and sync. Maybe you like me have 1 or 2 dummy calendars there, these you don’t want to input events into by mistake because then by next sync you will probably lose them.

    Summary
    Now with these steps and the initial phone setup that starts when you launch the Hero the first time, we have all our events and contacts where they should be. For me, that’s the most important part of the setup.

    In my next entry I will tell you about the more fun parts. All the cool stuff you can do when you have a handset with internet and GPS always available that runs linux.

    Google gillar inte oss?

    En del av er har säkert sätt det, att den här bloggen blev markerad som en farlig hemsida av google som spred virus. Vet fortfarande inte riktigt vad det rörde sig om, blir något att titta på nästa vecka när tenta-p är över. “Det roliga” var att nästan samtidigt som detta hände så fick Twitter för sig att mitt konto sysslade med “strange activity”. Google-problemet har nog löst sig men det med Twitter ska tydligen ta ett minimum på 30 dagar för dem att undersöka enligt deras FAQ… >_<

    Återkommer med den rafflande fortsättningen på denna spännande historia nästa vecka. Och då blir det lite mer aktivitet här då det under sommaren finns mer intressant att skriva om än beräkning av differentialekvationer och översättning av aritmetriska medelvärden till japanska. Bara drygt 1,5 månader kvar till NärCon 2009. =)

    Nvidia GeForce 9600 GT on Ubuntu 9.04

    So I upgraded my Ubuntu to 9.04 a couple of days ago. Unfortunately, this broke my xorg configuration and my Nvidia-drivers for some reason. I googled it and it seemed like a lot of other people had the same problem. So I tried to install new drivers via “Hardware Drivers” without any result. Tried to restore old xorg-files but after I while I concluded that the problem was with the nvidia-drivers and not with the configuration file.

    So today I tried to install the nvidia-drivers with Envy which has solved my problems before. Now EnvyNG-QT was available so it was even easier then before to install. First of all, I removed all my old nvidia-files like this:

    sudo apt-get –purge remove nvidia*

    Then I installed EnvyNG-QT

    sudo apt-get install envyng-qt

    And launched it from Applications>>System Tools>>EnvyNG

    Marked the recommended 180.44 driver and tried to install. But I got the message “kernel headers missing”. I looked in Synaptic Package Manager but indeed I had the kernel and the headers for 2.6.28-11 installed. So I wrote in a terminal just to be sure:

    uname – r

    Which told me that I was running 2.6.27-7, my old kernel before the upgrade to Ubuntu 9.04. Apparently when I upgraded the kernel I didn’t let Ubuntu update my menu-file in grub (/boot/grub/menu.lst) because I had manually fixed it before for dual boot to Windows Vista. So now when I knew where the problem was located, it was a piece of cake. First of all I updated grubs menu-file by throwing in more boot alternatives:

    title Ubuntu 9.04, kernel 2.6.28-11-generic
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=5d618041-1a84-4e7f-ab38-bb6d826dda71 ro quiet splash
    initrd /boot/initrd.img-2.6.28-11-generic
    quiet

    title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=5d618041-1a84-4e7f-ab38-bb6d826dda71 ro single
    initrd /boot/initrd.img-2.6.28-11-generic

    Then I restarted my computer with the new kernel, launched EnvyNG, installed the 180.44 drivers and before I restarted my computer I checked to be sure my /etc/X11/xorg.conf file was looking good. Now everything works like a charm, I have compiz enabled and really enjoy Ubuntu 9.04. The changes from Ubuntu 8.10 are not so many but they are really nice. An all new Login Window, an updated version of Amarok, new OnScreenDisplay for volume/brightness, new appearance themes for Ubuntu and my HP-control panel for my printer is brand new. Below you can see the xorg-file I use today:

    # xorg.conf (X.Org X Window System server configuration file)
    #
    # This file was generated by dexconf, the Debian X Configuration tool, using
    # values from the debconf database.
    #
    # Edit this file with caution, and see the xorg.conf manual page.
    # (Type "man xorg.conf" at the shell prompt.)
    #
    # This file is automatically updated on xserver-xorg package upgrades *only*
    # if it has not been modified since the last upgrade of the xserver-xorg
    # package.
    #
    # Note that some configuration settings that could be done previously
    # in this file, now are automatically configured by the server and settings
    # here are ignored.
    #
    # If you have edited this file but would like it to be automatically updated
    # again, run the following command:
    # sudo dpkg-reconfigure -phigh xserver-xorg

    Section "Monitor"
    Identifier "Configured Monitor"
    EndSection

    Section "Screen"
    Identifier "Default Screen"
    Monitor "Configured Monitor"
    Device "Configured Video Device"
    DefaultDepth 24
    EndSection

    Section "Module"
    Load "glx"
    EndSection

    Section "Device"
    Identifier "Configured Video Device"
    Driver "nvidia"
    EndSection

    Ubuntu 9.04

    Har idag lanserats och ska precis uppgradera till det. Återkommer med ett inlägg med reflektioner när jag är klar och har provkört det lite. För er som kör Ubuntu och vill uppgradera: tryck “Alt + F2″ och skriv “update-manager -d” så är det bara att köra igång sen.

    Varför så låg aktivitet?

    Svaret är Tenta-P. Plugg, plugg och så mera plugg. Inte så mycket intressant som händer då. Förutom några saker. Vi hade visions/arbetshelg med NärCon-ledningsgruppen (LG) förra helgen vilket ledde till att massor bra saker blev gjorda, vi blev taggade och hade en fantastiskt kul och givande fotosession. Mer om den kommer nästa vecka.

    Annars, min laptops (Asus Eee 901) tangentbord har gått sönder. Tydligen är de ganska känsliga, spillde någon droppe vatten på det så var det kört. Men ett nytt kostar $15 på ebay och är lätt att byta ut så det är inte så jobbigt. Värre är med min cykel, den har gett upp så jag lämnade in den på reparation förra veckan. Får besked imorgon om den går att rädda överhuvudtaget, så fall kommer det kosta mig 2000-3000 kr för att den ska bli som ny. Lite jobbigt…

    Så vi hörs nästa vecka. Imorgon fysiktenta, på tisdag envariabelanalys 2. Plugg plugg och plugg.

    Twitter och Facebook

    Har nyligen skaffat mig ett Twitterkonto och hoppat på den vågen. Det första jag då kom att tänka på var, hur ska jag gå tillväga för att så enkelt som möjligt uppdatera min status på Twitter och gärna också på Facebook samtidigt? Om det inte är enkelt så kommer man sluta använda det för att man inte orkar, hinner o.s.v. Svaret för mig blev följande lösning:

    För att uppdatera Twitter smidigt
    Twitterbar, en addon till Firefox som gör att adressfältet även kan användas till att uppdatera Twitter. Enkelt och diskret, gillar det.

    För att samtidigt uppdatera sin Facebookstatus
    Var otroligt enkelt. Det enda som behövde göras var att lägga till följande application på Facebook, välja alternativet att Twitter ska få uppdatera din status, skriva dina inloggningsuppgifter och så var det klart. Nu kommer statusen att uppdateras, oberoende av vilken Twitterklient du kör. Fungerar inte länken, sök då efter “Twitter” bland applications så dyker det nog upp.

    Edit: Det sista jag ville göra var att göra min Twitterstatus tillgänglig på många ställen, t.ex. forum jag hänger på. Svaret blev TwitStamp och resultatet ser ut som följer:

    Japan-Jens Twitterstatus