Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6053755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:04:35+00:00 2026-05-23T08:04:35+00:00

i have an app that need to send e-mail to constant e-mail address. i

  • 0

i have an app that need to send e-mail to constant e-mail address.
i used this code to send e-mail until now:

NSString *subject = [NSString stringWithFormat:@"%@ Login Info",self.name];
    NSString *body = [NSString stringWithFormat:@"Username : %@ \n Password : %@ \n E-Mail : %@ \n Sequrity Question : %@ \n Sequrity Answer : %@" ,self.user,self.password,self.email,self.seqQuestion,self.seqAnswer];
    NSLog(@"%@",body);
    NSString *mailString = [NSString stringWithFormat:@"mailto:?to=%@&subject=%@&body=%@",
                            [to stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding],
                            [subject stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding],
                            [body stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding]];
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:mailString]];

The problem came with this is when the user that used the app not defined an e-mail address in is iphone’ mail app so he can’t send the mail.

there is any other way for sendding e-mail to constant e-mail address?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:04:36+00:00Added an answer on May 23, 2026 at 8:04 am

    Rather than creating a mailto: url link, why not use the SDK’s email/messaging system?

    Check if the user can send an email first

    if ([MFMailComposeViewController canSendMail])
    

    If this returns NO, the user can’t send email. Perhaps show a message suggesting they might want to configure the email settings.

    If they can send a message (ie email is configured), then compose and send the email

        MFMailComposeViewController* controller = [[MFMailComposeViewController alloc] init];
    controller.mailComposeDelegate = self;
        [controller setSubject:@"Subject goes here"];
        NSString *msgString = [NSString stringWithFormat:@"Message body"];
        [controller setMessageBody:msgString isHTML:NO]; 
        [viewController presentModalViewController:controller animated:YES];
        [controller release];
    

    If you find the user can’t send an email in the first instance, you will either have to write your own service and connect to that (via a webservice, perhaps) or you will have to write your own implementation of the email protocol to connect to a known server with a known account.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Django app that use a django-tagging. I need to port this
I need my app to send a mail that becomes an SMS, in order
I have a Rails app that I need to deploy. Here are the facts:
I have an app that normal users need to be able to run, but
I have a VB app that I need to monitor while it is running.
have an app that finds your GPS location successfully, but I need to be
I have a third-party app that creates HTML-based reports that I need to display.
So I have an app that if I'm honest doesn't really need transactional integrity
I have some things in my app that I need to store, in order
I have a hird-party dll that need to be installed alongside with my app.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.