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 8319337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:17:36+00:00 2026-06-08T22:17:36+00:00

I am trying to send an HTML email from my app with MFMailComposeViewController, but

  • 0

I am trying to send an HTML email from my app with MFMailComposeViewController, but I’m running into an issue where there is odd padding to the right.

Here is the HTML I’m using:

</br>
</br>
<a href='itms-apps://itunes.apple.com/app/id444395321'>
<img src='http://brianensorapps.com/whirlworld/wwad.png' height='80' width='320' style='position:relative;left:-10px;margin-right:0px;padding-right:0px;'/>
</a>

I’m not sure which right CSS tags are necessary. Neither are working now. The position and left tag are for eliminating the left margin.

Here is a picture of the situation I’m trying to avoid where the user can scroll to the right past my banner:
Issue

It has also been requested that I post the code for presenting the MFMailComposeViewController:

sharingVC = [[MFMailComposeViewController alloc] init];
sharingVC.mailComposeDelegate = self;
sharingVC.navigationBar.tintColor = [UIColor lightGrayColor];
[sharingVC setSubject:@"Check out this app"];
[sharingVC setMessageBody:[NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"sharingEmail.html"] usedEncoding:nil error:nil] isHTML:YES];
[self presentViewController:sharingVC animated:YES completion:nil];
  • 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-06-08T22:17:38+00:00Added an answer on June 8, 2026 at 10:17 pm

    You are setting the left margin to -10px, which moves everything to the left (giving you a right margin of 10px)

    In the style attribute, change left: -10px to say left:0px so your html code looks like this:

    </br>
    </br>
    <a href='itms-apps://itunes.apple.com/app/id444395321'>
    <img src='http://brianensorapps.com/whirlworld/wwad.png' height='80' width='320' style='position:relative;left:0;margin-right:0px;padding-right:0px;'/>
    </a>
    

    I think what you are really looking for though would be to set the position absolute and left to 0, like this:

    </br>
    </br>
    <a href='itms-apps://itunes.apple.com/app/id444395321'>
    <img src='http://brianensorapps.com/whirlworld/wwad.png' height='80' width='320' style='position:absolute; left:0px' />
    </a>
    

    In my testing, that shows the image going from the left of the screen all the way to the right with no horizontal scrolling.

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

Sidebar

Related Questions

I'm trying to send an html email to a gmail account, but for some
I'm trying to send an email with html formatting, but when it arrives (in
I'm trying to send an email from AppController in my CakePHP 2.0 app. It
I'm trying to send an HTML email receipt from the iphone. The receipt should
Well I'm trying to send a HTML email using gmail smtp from CI, and
I am trying to send an email from a site I am building, but
I am trying to send in PHP an HTML email but it always shows
I've been trying to send an email from my magento module but for some
I am trying to send an HTML email using Perl. open(MAIL,|/usr/sbin/sendmail -t); ## Mail
I am trying to send an html email with PHP and it keeps coming

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.