PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0
Showing posts with label mailing. Show all posts
Showing posts with label mailing. Show all posts

Monday, November 14, 2022

[FIXED] How to code html mailings?

 November 14, 2022     css, html, mailing     No comments   

Issue

I'm preparing to send mass email to customers which is in html + images. What are general rules to do make it display correctly in most popular mail clients?

EDIT:

Well it's for my customers - about few k clients.

My question is - how to code this email that it will display correctly in customer mailclient(thunderbird, outlook, gmail). What css tags can I use?


Solution

These two references are great places to start

  • http://www.alistapart.com/articles/cssemail/
  • http://www.campaignmonitor.com/css/

Apparently using HTML 3.0 compatible tags and formatting works best for all email readers and providers.

I asked a similar question What is the best method for formatting email when using System.Net.Mail



Answered By - Ian G
Answer Checked By - Mildred Charles (PHPFixing Admin)
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg

[FIXED] How to not get blacklisted, trash/spam moved for sending emails?

 November 14, 2022     apache, linux, mailing, spam, webserver     No comments   

Issue

How to find my limitations and methods to not get blacklisted, trash/spam moved for sending emails?

I have growing number of like 10000 e-mail adressess and e-mails that I have to send on daily basis regarding:

  • user registration
  • reminders
  • confirmations
  • news

I want to send mailing to my community but am afraid of beeing blacklisted. It happend few times when years back then was sending mailings from virtual server.

Now I own my dedicated server and want come back to sending lare ammount of e-mails (all sort of reasons listed above).


Solution

  • Make sure your mailing list is opt-in or provide an easy way for your community members to opt-out.
  • Provide the opt-in/out link directly in every email message.
  • Make it highly visible!
  • Send only to your community members.
  • Don't annoy them everyday with meaningless crap.
  • Even being careful and providing opt-in/out for your members you can't force them to use it.
  • Realize that email clients make it easier to just flag it as spam.


Answered By - Dave Rager
Answer Checked By - David Goodson (PHPFixing Volunteer)
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg

[FIXED] How to circumvent the max_execution_time in PHP?

 November 14, 2022     cron, crontab, mailing, php     No comments   

Issue

I try to mailing messages to many subscribers. I need to execute my script for a long time, much more longer that is allowed with max_execution_time. I can use Cron Tab, which will be execute my script every time by schedule, but can I do it without cron tab? I try something like this:

    $maxTime = ini_get('max_execution_time');
    $startTime = time();
    foreach ($emails as $email) {
        if (time() < $startTime + $maxTime - 2) {
            // do something
        } else {
            // reload this page
        }
    }

And it's work well, but if I close this page in browser tab, it die and don't reload. I remind, that I'm looking for the implementation of this without Cron Tab. I want to start execution manually once and that to work it in the background later.

NOTE: Also I want to note that I don't consider the load on the server and send mail possible interval at this stage!


Solution

You have a few options:

Command Line Your best option is to run this on the command line manually. Command line scripts are much better for running long running processes.

Shell Exec If you must run this via browser, you can trigger the command line script by using exec eg shell_exec('php -f /var/www/domain.com/myLongRunningProcess.php > /dev/null 2>/dev/null &')

Ignore User Abort You can also run things after the browser has detached from a browser session. This is the most complex and hardest to debug but it will work. You must calculate the exact size of the page and then send the output and use the function ignore_user_abort so that your script will continue to run when the browser disengages.



Answered By - edmondscommerce
Answer Checked By - Clifford M. (PHPFixing Volunteer)
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg

[FIXED] how to mask recipients addresses , action mailer 4 with bcc: or other

 November 14, 2022     actionmailer, mailing, ruby-on-rails     No comments   

Issue

I am using action mailer with an array of emails. Emails are sending out successfully but in the received email, everyone can see the other recipients. I want to hide them from each other.

There are many posts about this and I've tried many things without success. Would be great if someone can spot what I'm doing wrong. I'm using rails 4.1.7. with delayed_job and devise. I am sure this must be something easy i have missed. Thanks in advance for any help.

My mailer is :

def send_email(mymodel)
  @mymodel = mymodel
  emails = @mymodel.followers.collect(&:email) 
  @url  = 'http://example.com/'
  mail(:to => emails, :bcc => ["noreply@example.com"], subject:"myemailsubject")  
end

Solution

mail(to: emails, bcc: ["noreply@example.com"], subject: "myemailsubject")

You could exchange the bcc value with the to value.

mail(to: ["noreply@example.com"], bcc: emails, subject: "myemailsubject")

That should send out only 1 email, yet achieve what you want. However the email recipients might be slightly confused if they read the to field and don't find their own email address.

You could try the following but obviously it'll send out multiple emails:

emails.each do |email|
  mail(to: email, bcc: ["noreply@example.com"], subject: "myemailsubject")
end


Answered By - SHS
Answer Checked By - Marilyn (PHPFixing Volunteer)
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg

[FIXED] How can I list scheduled mails in mandrill?

 November 14, 2022     email, mailing, mandrill     No comments   

Issue

Hi I want to list all the emails that are scheduled but not send and I can't find that option. Is it posible?

Thanks a lot.


Solution

/messages/list-scheduled.json API lists upto 1000 scheduled emails.

API Result:

[{
    "_id": "I_dtFt2ZNPW5QD9-FaDU1A",
    "created_at": "2013-01-20 12:13:01",
    "send_at": "2021-01-05 12:42:01",
    "from_email": "sender@example.com",
    "to": "test.recipient@example.com",
    "subject": "This is a scheduled email"
}]

More details



Answered By - Kiran Indukuri
Answer Checked By - Mary Flores (PHPFixing Volunteer)
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg

[FIXED] How to fix a gap in two HTML tables in Outlook

 November 14, 2022     html, html-table, mailing, outlook     No comments   

Issue

enter image description here

<html>
<head>
<title>Prueba</title>
	
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
	
</head>
	
	
	
<body>
<div align="center">
	
	
  <table width="650" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td height="40" align="center"><span style="color:#999;	font-size:11px;	font-family:Verdana, Arial, Helvetica, sans-serif; padding:10px 0px; margin:0px;"></span></td>
    </tr>
  </table>
	
	
  <table width="650" border="0" align="center" cellpadding="25" cellspacing="0" style="border:1px solid #CCC;">
    <tr>
      <td>
		  <table border="0" cellspacing="0" cellpadding="0" width="600">
          <tr>
            <td align="center" height="70">
              <table width="600" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td><span style="color:#232272; font-size:13px; font-family:Arial, Helvetica, sans-serif; font-weight:bold;">{ESTIMADO_A} {NOMBRE}</span></td>
                 
                </tr>
              </table>
			  
			  </td>
          </tr>
			  
			  
<!-- HEADER -->				  
          <tr>
            <td valign="top" width="600"  align="center" ><img src="img/image1.png" alt="Image1" width="600" height="516" /></td>
          </tr>
			  
<!-- TXT  -->				  
          <tr>
            <td valign="" width="600" height="0" align="center">
                <table width="600" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="10" valign="middle" style="">
                            <p style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:16px;color:#555555; text-align:center; margin-top:0px;">
                            Lorem ipsum dolor sit amet, consectetur adipisicing elit. Doloribus, vitae. Quia odit facilis dignissimos voluptas ipsa itaque ex, quod quis impedit blanditiis dicta quaerat, illo voluptates fugit maxime sapiente vel.</p>
                        </td><br>
                    </tr>
              </table>
            </td>
          </tr>
             <tr>
                <td>&nbsp;</td>
            </tr>
          

        <!-- CONTENIDOS -->		   
               <tr>
                <td>
                    
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td width="15%"  align="center">
                                <table width="100%" cellspacing="0" cellpadding="0">
                                     <tr>
                                         <td >
                                                &nbsp;
                                         </td>
                                     </tr>
                                    <tr>
                                         <td style="border-top: solid #6A2E92 2px; border-left: solid #6A2E92 2px;" >
                                                &nbsp;
                                         </td>
                                     </tr>
                                 </table>
                            </td>
                            <td  align="center" valign="right" >
                                  <span style="color:#232272; font-size:16px; font-family: Trebuchet, Trebuchet MS, Verdana, Helvetica, Arial, sans-serif;"> <strong> Title 1</strong> </span>
                            </td>
                            <td width="15%"  align="center" >
                                <table width="100%" cellspacing="0" cellpadding="0">
                                     <tr>
                                         <td >
                                                &nbsp;
                                         </td>
                                     </tr>
                                    <tr>
                                         <td style="border-top: solid #6A2E92 2px; border-right: solid #6A2E92 2px;" >
                                                &nbsp;
                                         </td>
                                     </tr>
                                 </table>
                            </td>
                        </tr>
                    </table> 

                </td>
            </tr>
            <tr>
                <td>
                    
                        <table width="100%" cellspacing="0" cellpadding="0" style="border-left: 2px solid #6A2E92; border-right: 2px solid #6A2E92; border-bottom: 2px solid #6A2E92;">
                                <tr>
                                     <td height="20" colspan="10" align="center" valign="top" bgcolor="#FFF" >&nbsp;</td>
                                </tr>
                                <tr>
                                    <td width="25%" bgcolor="#FFF" align="center">
                                        <span style="color:#6A2E92; font-size:40px; line-height:1.2; font-family: Trebuchet, Trebuchet MS, Verdana, Helvetica, Arial, sans-serif;"><strong> 1</strong></span><br><br>
                                    </td>
                                    <td width="75%"  bgcolor="#FFF" align="left">
                                        <span style="color:#6A2E92; font-size:15px; line-height:1.2; font-family: Trebuchet, Trebuchet MS, Verdana, Helvetica, Arial, sans-serif;"> Ingrese a <strong> ejemplo.cl</strong><br> con su rut y clave de acceso. </span><br><br>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="25%" bgcolor="#FFF" align="center">
                                        <span style="color:#6A2E92; font-size:40px; line-height:1.2; font-family: Trebuchet, Trebuchet MS, Verdana, Helvetica, Arial, sans-serif;"> <strong>2</strong></span><br><br>
                                    </td>
                                    <td width="75%"  bgcolor="#FFF" align="left">
                                        <span style="color:#6A2E92; font-size:15px; line-height:1.2; font-family: Trebuchet, Trebuchet MS, Verdana, Helvetica, Arial, sans-serif;"> Diríjase al menú superior, opción <strong><br>Tarjeta de crédito o Cuenta corriente. </strong> </span><br><br>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="25%" bgcolor="#FFF" align="center">
                                        <span style="color:#6A2E92; font-size:40px; line-height:1.2; font-family: Trebuchet, Trebuchet MS, Verdana, Helvetica, Arial, sans-serif;"><strong> 3</strong></span><br><br>
                                    </td>
                                    <td width="75%"  bgcolor="#FFF" align="left">
                                        <span style="color:#6A2E92; font-size:15px; line-height:1.2; font-family: Trebuchet, Trebuchet MS, Verdana, Helvetica, Arial, sans-serif;"> Luego seleccione la opción: <strong>Encender <br> y apagar tarjetas</strong> y/o <strong>administrar zona geográfica. </strong></span><br><br>
                                    </td>
                                </tr>
                            </table>

                </td>
            </tr>
          
             

      </table>
		  </td>
     </tr>
  </table>
	
<!-- /END BODY -->	
	
	
	
	
<!-- LEGAL -->		
	
  <table cellpadding="0" cellspacing="0" border="0" width="650">
    <tr><br>
		 <img src="images/image2.jpg" alt="image2" width="650" height="125" title="o"/>
		
      <td><table width="650" cellpadding="0" border="0" cellspacing="0">
          <tr>
            <td>
        
             <br/>
              
              <img src="images/image3.jpg" alt="image3" width="650" height="49"><br/>
              <br/></td>
          </tr>
        </table>
        <table width="650" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="500" ><p style="width:650px;"> <span style="text-align:left;display:block;color: #999999; font-size:11px; font-family:Verdana, Arial, Helvetica, sans-serif; padding:10px 0px; margin:0px;"> Este correo electr&oacute;nico ha sido enviado a <br>
                Inf&oacute;rmese sobre la garant&iacute;a estatal de los dep&oacute;sitos en su banco<br>
                Nuestros e-mails no contienen enlaces<br>
                Para anular su suscripci&oacute;n, haga click aqu&iacute;:<br>
                Si considera que este mail contiene material abusivo, haga click ac&aacute;:<br>
                </span> </p></td>
          </tr>
          <tr>
            <td></td>
          </tr>
        </table></td>
    </tr>
  </table>
</div>
</body>
</html>

I have a problem with the html code that I create.

When I see my code in the browser, the border lines I added are seen continuously, but when I see this mail in Outlook, I see a gap in the tables as shown in the screenshot I attached.

Does anyone know how I can fix this?

PS: I Create two tables, in the first one you will find the span "title1" and in the second table, you will find several spans that create a number list.

Both tables have border.

In the case of table 1 the border, reach Title1 by the middle and table 2, have right, left and bottom border.

The problem appears when the border line joins table 1 and table 2.

Thanks! take care!


Solution

<html>
<head>
<title>Prueba</title>
    
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
    
</head>
    
    
    
<body>
<div align="center">
    
    
  <table width="650" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td height="40" align="center"><span style="color:#999;   font-size:11px; font-family:Verdana, Arial, Helvetica, sans-serif; padding:10px 0px; margin:0px;"></span></td>
    </tr>
  </table>
    
    
  <table width="650" border="0" align="center" cellpadding="25" cellspacing="0" style="border:1px solid #CCC;">
    <tr>
      <td>
          <table border="0" cellspacing="0" cellpadding="0" width="600">
          <tr>
            <td align="center" height="70">
              <table width="600" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td><span style="color:#232272; font-size:13px; font-family:Arial, Helvetica, sans-serif; font-weight:bold;">{ESTIMADO_A} {NOMBRE}</span></td>
                 
                </tr>
              </table>
              
              </td>
          </tr>
              
              
<!-- HEADER -->               
          <tr>
            <td valign="top" width="600"  align="center" ><img src="img/image1.png" alt="Image1" width="600" height="516" /></td>
          </tr>
              
<!-- TXT  -->                 
          <tr>
            <td valign="" width="600" height="0" align="center">
                <table width="600" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="10" valign="middle" style="">
                            <p style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:16px;color:#555555; text-align:center; margin-top:0px;">
                            Lorem ipsum dolor sit amet, consectetur adipisicing elit. Doloribus, vitae. Quia odit facilis dignissimos voluptas ipsa itaque ex, quod quis impedit blanditiis dicta quaerat, illo voluptates fugit maxime sapiente vel.</p>
                        </td><br>
                    </tr>
              </table>
            </td>
          </tr>
             <tr>
                <td>&nbsp;</td>
            </tr>
          

        <!-- CONTENIDOS -->        
               <tr>
                <td>
                    
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td width="15%"  align="center">
                                <table width="100%" cellspacing="0" cellpadding="0">
                                     <tr>
                                         <td >
                                                &nbsp;
                                         </td>
                                     </tr>
                                    <tr>
                                         <td style="border-top: solid #6A2E92 2px; border-left: solid #6A2E92 2px;" >
                                                &nbsp;
                                         </td>
                                     </tr>
                                        <tr>
                                             <td style="border-left: solid #6A2E92 2px;">
                                                    &nbsp;
                                             </td>
                                        </tr>
                                 </table>
                            </td>
                            <td  align="center" valign="right" >
                                  <span style="color:#232272; font-size:16px; font-family: Trebuchet, Trebuchet MS, Verdana, Helvetica, Arial, sans-serif;"> <strong> Title 1</strong> </span>
                            </td>
                            <td width="15%"  align="center" >
                                <table width="100%" cellspacing="0" cellpadding="0">
                                     <tr>
                                         <td >
                                                &nbsp;
                                         </td>
                                     </tr>
                                    <tr>
                                         <td style="border-top: solid #6A2E92 2px; border-right: solid #6A2E92 2px;" >
                                                &nbsp;
                                         </td>
                                     </tr>
                                      <tr>
                                         <td style="border-right: solid #6A2E92 2px;" >
                                                &nbsp;
                                         </td>
                                     </tr>
                                 </table>
                            </td>
                        </tr>
                    </table> 

                </td>
            </tr>
            <tr>
                <td>
                    
                        <table width="100%" cellspacing="0" cellpadding="0" style="border-left: 2px solid #6A2E92; border-right: 2px solid #6A2E92; border-bottom: 2px solid #6A2E92;">
                                <tr>
                                     <td height="20" colspan="10" align="center" valign="top" bgcolor="#FFF" >&nbsp;</td>
                                </tr>
                                <tr>
                                    <td width="25%" bgcolor="#FFF" align="center">
                                        <span style="color:#6A2E92; font-size:40px; line-height:1.2; font-family: Trebuchet, Trebuchet MS, Verdana, Helvetica, Arial, sans-serif;"><strong> 1</strong></span><br><br>
                                    </td>
                                    <td width="75%"  bgcolor="#FFF" align="left">
                                        <span style="color:#6A2E92; font-size:15px; line-height:1.2; font-family: Trebuchet, Trebuchet MS, Verdana, Helvetica, Arial, sans-serif;"> Ingrese a <strong> ejemplo.cl</strong><br> con su rut y clave de acceso. </span><br><br>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="25%" bgcolor="#FFF" align="center">
                                        <span style="color:#6A2E92; font-size:40px; line-height:1.2; font-family: Trebuchet, Trebuchet MS, Verdana, Helvetica, Arial, sans-serif;"> <strong>2</strong></span><br><br>
                                    </td>
                                    <td width="75%"  bgcolor="#FFF" align="left">
                                        <span style="color:#6A2E92; font-size:15px; line-height:1.2; font-family: Trebuchet, Trebuchet MS, Verdana, Helvetica, Arial, sans-serif;"> Diríjase al menú superior, opción <strong><br>Tarjeta de crédito o Cuenta corriente. </strong> </span><br><br>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="25%" bgcolor="#FFF" align="center">
                                        <span style="color:#6A2E92; font-size:40px; line-height:1.2; font-family: Trebuchet, Trebuchet MS, Verdana, Helvetica, Arial, sans-serif;"><strong> 3</strong></span><br><br>
                                    </td>
                                    <td width="75%"  bgcolor="#FFF" align="left">
                                        <span style="color:#6A2E92; font-size:15px; line-height:1.2; font-family: Trebuchet, Trebuchet MS, Verdana, Helvetica, Arial, sans-serif;"> Luego seleccione la opción: <strong>Encender <br> y apagar tarjetas</strong> y/o <strong>administrar zona geográfica. </strong></span><br><br>
                                    </td>
                                </tr>
                            </table>

                </td>
            </tr>
          
             

      </table>
          </td>
     </tr>
  </table>
    
<!-- /END BODY -->  
    
    
    
    
<!-- LEGAL -->      
    
  <table cellpadding="0" cellspacing="0" border="0" width="650">
    <tr><br>
         <img src="images/image2.jpg" alt="image2" width="650" height="125" title="o"/>
        
      <td><table width="650" cellpadding="0" border="0" cellspacing="0">
          <tr>
            <td>
        
             <br/>
              
              <img src="images/image3.jpg" alt="image3" width="650" height="49"><br/>
              <br/></td>
          </tr>
        </table>
        <table width="650" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="500" ><p style="width:650px;"> <span style="text-align:left;display:block;color: #999999; font-size:11px; font-family:Verdana, Arial, Helvetica, sans-serif; padding:10px 0px; margin:0px;"> Este correo electr&oacute;nico ha sido enviado a <br>
                Inf&oacute;rmese sobre la garant&iacute;a estatal de los dep&oacute;sitos en su banco<br>
                Nuestros e-mails no contienen enlaces<br>
                Para anular su suscripci&oacute;n, haga click aqu&iacute;:<br>
                Si considera que este mail contiene material abusivo, haga click ac&aacute;:<br>
                </span> </p></td>
          </tr>
          <tr>
            <td></td>
          </tr>
        </table></td>
    </tr>
  </table>
</div>
</body>
</html>

I found the problem! It turns out that "title1" was using more space in the 'tr' in which it was contained. This means that if I write a bigger title, the table will be deformed.

I fix this, adding a new blank space above the "title1"

Thanks to all of you who took the time to write a comment and try to help me! :)

Thank you very much!

PS: I attach the code with the answer



Answered By - Javiera
Answer Checked By - Mildred Charles (PHPFixing Admin)
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg

[FIXED] how would I go about finding the longest mailing city name in America?

 November 14, 2022     email, mailing, zipcode     No comments   

Issue

The longest city name I was able to find (that had a Zip code) was "La Canada Flintridge" which is in CA. I found that haphazardly via google. For testing our mailing addresses, I'd like to get a definite "this is the longest city name you could possibly mail to" out of a USPS database.

How would I go about finding this information a) for free and b) quickly?

To the "Not Programming Related" closers: This determines the field length of a City field in our database. That is programming related.


Solution

The USPS databases use a maximum of 28 characters for the place name. Currently there are 6 mailable place names that long (all truncated to fit in 28 chars): GREAT SAND DUNES NATIONAL MO, INDIAN SPRINGS AIR FORCE AUX, KINGSVILLE NAVAL AIR STATION, ROANOKE RAPIDS AIR FORCE STA, SOUTHERN UTE INDIAN RESERVAT, UNITED STATES AIR FORCE ACAD.

However, the USPS database also provides a 13-character form for any place name longer than that. Eg, YOSEMITE NTPK is the short form for YOSEMITE NATIONAL PARK. As of 8/1/09, CASS software (used to standardize addresses to USPS regulations) is required to automatically provide 13-character place names when looking up addresses.



Answered By - joe snyder
Answer Checked By - Terry (PHPFixing Volunteer)
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg

[FIXED] How to set <tr> tags in equal order?

 November 14, 2022     css, html, html-table, mailing     No comments   

Issue

I stuck and basically I do not understand why.

I need to move my <tr> elemnent from right side, directky below other <tr> tags, which are higher.

enter image description here

One requirement: I'm creating mailing template for outlook, so I cannot change display parameters (as I read here), cause it does not work on Outlook client.

I hope that I have made some stupid mistake here which I have not seen yet, or someone will suggest to me some clearer solution.

<table
  border="0"
  cellpadding="0"
  cellspacing="0"
  border-collapse="collapse"
  width="768"
  style="
    font-family: 'Roboto', 'Montserrat', sans-serif;
    background-color: #fff;
  "
>
  <tbody>
    <tr>
      <td style="padding: 20px 0">
        <table
          border="0"
          cellpadding="0"
          cellspacing="0"
          width="768"
          style="font-size: 20px"
        >
          <tbody>
            <tr>
              <td width="25"></td>
              <td style="padding: 10px 0; color: #b1b1b1">lorem ipsum:</td>
              <td align="right" style="padding: 10px 0; color: #31424a">
                lorem ipsum
              </td>
              <td width="25"></td>
            </tr>
          </tbody>
        </table>
      </td>
    </tr>
    <tr style="padding-top: 10px"> // display: table or block does not work here
      <td width="25px;"></td>
      <td
        width="100px;"
        style="
          padding-top: 10px;
          vertical-align: top;
          border-top: 1px solid #e3e3e3;
        "
      >
        <img
          src="https://www.bgastore.ie/cache/48/215x300-Ramar_Galleri1_Blocky_White_100x100_cm.jpg"
          alt="photo"
          width="100"
          height="100"
          style="padding-right: 3px"
        />
      </td>
      <td style="padding: 10px 0 20px 0; border-top: 1px solid #e3e3e3">
        <table
          border="0"
          cellpadding="0"
          cellspacing="0"
          width="618"
          style="font-size: 15px; color: #595b5d"
        >
          <thead>
            <tr style="color: #909090">
              <th align="left">test</th>
              <th align="left">test</th>
              <th align="left">test</th>
              <th align="left">test</th>
              <th align="left">test</th>
              <th align="left">test</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td style="vertical-align: top; padding: 10px 0 0 0">test</td>
              <td style="vertical-align: top; padding: 10px 0 0 0">test</td>
              <td style="vertical-align: top; padding: 10px 0 0 0">test</td>
              <td style="vertical-align: top; padding: 10px 0 0 0">test</td>
              <td style="vertical-align: top; padding: 10px 0 0 0">test</td>
              <td style="vertical-align: top; padding: 10px 0 0 0">
                <span style="color: #d2222d; border-bottom: 1px solid#d2222d"
                  >test</span
                >
              </td>
            </tr>
            <tr>
              <td colspan="6" style="vertical-align: top; padding-top: 10px">
                <span style="color: #909090; font-weight: 700; display: block"
                  >test</span
                >
                <span style="color: #d2222d; padding-top: 5px; display: block"
                  >test</span
                >
              </td>
            </tr>
          </tbody>
        </table>
      </td>
    </tr>
  </tbody>
</table>


Solution

And if you just remove the first inner table tags?

<table border="0" cellpadding="0" cellspacing="0" border-collapse="collapse" width="768" style="font-family: 'Roboto', 'Montserrat', sans-serif; background-color: #fff;">
  <tbody>
    <tr>
      <td width="25"></td>
      <td style="padding: 10px 0; color: #b1b1b1">lorem ipsum:</td>
      <td align="right" style="padding: 10px 0; color: #31424a">
        lorem ipsum
      </td>
      <td width="25"></td>
    </tr>
    <tr style="padding-top: 10px"> // display: table or block does not work here
      <td width="25px;"></td>
      <td width="100px;" style="
          padding-top: 10px;
          vertical-align: top;
          border-top: 1px solid #e3e3e3;">
        <img src="https://www.bgastore.ie/cache/48/215x300-Ramar_Galleri1_Blocky_White_100x100_cm.jpg" alt="photo" width="100" height="100" style="padding-right: 3px" />
      </td>
      <td style="padding: 10px 0 20px 0; border-top: 1px solid #e3e3e3">
        <table border="0" cellpadding="0" cellspacing="0" width="618" style="font-size: 15px; color: #595b5d">
          <thead>
            <tr style="color: #909090">
              <th align="left">test</th>
              <th align="left">test</th>
              <th align="left">test</th>
              <th align="left">test</th>
              <th align="left">test</th>
              <th align="left">test</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td style="vertical-align: top; padding: 10px 0 0 0">test</td>
              <td style="vertical-align: top; padding: 10px 0 0 0">test</td>
              <td style="vertical-align: top; padding: 10px 0 0 0">test</td>
              <td style="vertical-align: top; padding: 10px 0 0 0">test</td>
              <td style="vertical-align: top; padding: 10px 0 0 0">test</td>
              <td style="vertical-align: top; padding: 10px 0 0 0">
                <span style="color: #d2222d; border-bottom: 1px solid#d2222d">test</span>
              </td>
            </tr>
            <tr>
              <td colspan="6" style="vertical-align: top; padding-top: 10px">
                <span style="color: #909090; font-weight: 700; display: block">test</span>
                <span style="color: #d2222d; padding-top: 5px; display: block">Back</span>
              </td>
            </tr>
          </tbody>
        </table>
      </td>
    </tr>
  </tbody>
</table>



Answered By - mplungjan
Answer Checked By - Mary Flores (PHPFixing Volunteer)
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg

Thursday, January 20, 2022

[FIXED] Testing website mailing locally

 January 20, 2022     cakephp, localhost, mail-server, mailing, php     No comments   

Issue

I'd like to test password recovery and similar email related features for a website.

I'm using PHP (cakePHP framework) and the syntax seems easy enough but I'm unsure of the email server setup.

I've looked around for a good tutorial but they aren't specific enough.

What is a quick and easy mail server to use locally? also... some initial steps to start up would be appreciated.


Solution

Test Mail Server Tool



Answered By - Sergei
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Older Posts Home

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
All Comments
Atom
All Comments

Copyright © PHPFixing