I have this code that should attach an HTML file to an email, and also display the contents of the HTML file in the body of the message. There is a link in the HTML file (read.png) that appears on every line. However, it does not appear in the body of the message. What do I need to do to display it?
if ([MFMailComposeViewController canSendMail]) { MFMailComposeViewController *mailer = [[MFMailComposeViewController alloc] init]; mailer.mailComposeDelegate = self;
This is the HTML that should be displayed:
<html> <head> <link rel='stylesheet' type='text/css' href='default.css'/> </head> <body> STA: TBM "J" Elev: 19.76<br>Desc: USGS Test Site <div> <table border class="boldtable"> <tr BGCOLOR="ADDAFE"> <th>STA </th> <th>BS </th> <th>HI </th> <th>FS </th> <th>ELEV </th> <th>Desc</th> </tr> <p><tr> <td> TBM "J"</td> <td></td><td></td><td></td> <td>19.76</td> <td>USGS Test Site</td> <p><tr ><td><img src="reading.png" align=center></td><td>3.14</td><td valign="middle">22.90</td>
UPDATE: I don't think I was clear enough ... In the HTML that appears in the outgoing message, there should be an image that appears in all of the HTML. I have no problem attaching an image to a post, but it does NOT appear in HTML where I want it. So clearly attaching the image to the message does not work ... (I thought it would be).
NTN ...
SpokaneDude
source share