Command Line Like Email

Discussion in 'iOS Programming' started by xStep, Apr 18, 2012.

  1. xStep macrumors 68000

    Joined:
    Jan 28, 2003
    Location:
    Less lost in L.A.
    #1
    Wirelessly posted

    Anyone know of a way to send email from iOS without using a mailto URL which invokes Apple's email app?

    My interest is limiting what a user can alter. For instance I don't want them altering the subject header.
     
  2. jnoxx macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #2
    You know you don't need to send them to the Mail app, and you can use the UIMessageController, but you can't prohibate them from altering the subject i'm afraid..
     
  3. xStep, Apr 19, 2012
    Last edited: Apr 19, 2012

    xStep thread starter macrumors 68000

    Joined:
    Jan 28, 2003
    Location:
    Less lost in L.A.
    #3
    I couldn't find any documentation on that class. It lead me to another one called MFMailComposeViewController that also has the limitation you mentioned.

    So the search is still on.
     
  4. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    That's probably what jnoxx meant (but didn't take the time to look it up and confirm).
     
  5. jnoxx macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #5
    That's exactly what I meant, i'm quite sure you can't limit it, same like sending text messages without people actually knowing what's up.
    Just bad practice for the end user, they wan't total control ;)
     
  6. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #6
    Please explain why it's necessary to have an unaltered Subject header.

    Exactly what are you trying to accomplish? If we know what that is, then maybe we can suggest an alternative. Right now, you've described an XY Problem:
    You want to do X, and you think Y is the best way of doing it.
    Instead of asking about X, you ask about Y.
     
  7. xStep thread starter macrumors 68000

    Joined:
    Jan 28, 2003
    Location:
    Less lost in L.A.
    #7
    I asked exactly what I needed to ask within the current constraints I have and know.

    Some of the emails will be sent to a corporate server and an identifier is required on the receiving end. The user can not be allowed to alter this. (I'm not here to discuss if this is a good idea.)
     
  8. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #8
    Do you have any control over where the identifier resides?

    If I absolutely had to do it by email, I'd make the email recipient be the identifier.

    Not because users won't be able to muck upp the recipient, but because if a user does muck it up, not one could reasonably think that doing so was inconsequential. "Of course it didn't work, it wasn't sent it to the right recipient". The contents of a subject line doesn't have the same kind of logical weight as the recipient address.

    If there were any other way to do this, like accessing an HTTP URL, I think that would be more reliable than an email of any kind. Probably faster, too.
     
  9. firewood macrumors 604

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #9
    You app could implement its own sendmail client using email settings built into the app or maybe entered by the user into the app.
     
  10. xStep thread starter macrumors 68000

    Joined:
    Jan 28, 2003
    Location:
    Less lost in L.A.
    #10
    Thanks everyone. I don't have all the details yet and from what I've been told I too think a direct upload would be a better solution for a couple of the items.

    I'm hoping we don't have to implement our own sendmail solution just to control a subject line. :eek:
     
  11. xStep thread starter macrumors 68000

    Joined:
    Jan 28, 2003
    Location:
    Less lost in L.A.
    #11
    Updated Details

    A current PC system sends email with a special subject line through MS Exchange which recognizes that and for mail going outside the company passes it to Cisco IronPort for secure processing. The PC Outlook program has some plugin & button to allow the user to notify it that they want the email to be encrypted. That plugin alters the subject line when the user hits the send key. Since we would be sending from an iPad app, that selection process won't be needed. We'll know what requires this work flow.

    The Cisco IronPort system encrypts the message and as I understand it, saves it to the cloud. Apparently another clear text message is sent to the recipient who clicks a link, logs into IronPort, and picks up their mail in a decrypted form.

    The destination email address is free form. The subject line needs some special text at the beginning so that the Exchange server recognizes that the mail needs to be forwarded to the IronPort system. The body of the text is personal information to be kept private.
     

Share This Page