Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>i notice that your receiving email is gmail, that is; 'galtech.staffs@gmail.com' i used your script for testing purpose and i am getting mails, but as a spam. i am sure your are receiving them too, php mail function creates issues using gmail as a receiver email, any way after editing header section i am getting mail in my inbox, here are the results;</p> <p><img src="https://i.stack.imgur.com/G8SVJ.jpg" alt="this is what you looking for"></p> <p><strong>Try this;</strong></p> <pre><code>$user_subject = "Ticket - Budget Notification"; $user_headers = 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $user_part = '&lt;html&gt;&lt;body&gt;'; $user_part .= '&lt;div style="background-color: #EEEEEE;border-bottom: 1px solid #DCDCDC;padding: 10px 10px 20px;width: 500px; float:left;font-size:12px;font-weight:bold;"&gt;'; $user_part1 = '&lt;div style="width:500px;"&gt;'; $user_part1 .= '&lt;div style="width:500px;background-color:#eeeeee;padding: 10px 0 20px;border-bottom:1px solid #dcdcdc;"&gt;'; $user_part1 .= '&lt;div style="float:left;width:150px;color:#666666;margin-left:20px;font-size:12px;font-weight:bold;"&gt;'; $user_part1 .= '&lt;/div&gt;&lt;/div&gt;'; $user_part1 .= '&lt;div style="width:450px;background-color:#eeeeee;padding: 10px 0 20px;border-bottom:1px solid #dcdcdc; height:auto; float:left;font-size:12px;margin-left:50px; font-weight:bold;"&gt;'; $user_part3 = '&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;'; $user_part3 .= '&lt;/body&gt;&lt;/html&gt;'; $user_center_part1 = ''; $user_center_part = 'The following Tickets are reached its budget ,'; $user_center_part2='&lt;div style="float:left;width:auto;color:#000000;font-size:12px;margin-left:75px; font-weight:bold; height:auto; margin-top:10px;"&gt;Ticket #10 reached 100% of its budget&lt;/div&gt;'; $user_to = 'youremailid@gmail.com'; $user_center_part1 = 'Dear Admin ,'; $user_message = $user_part.$user_center_part1.$user_part1.$user_center_part.$user_center_part2.$user_part3; if(mail($user_to, $user_subject, $user_message, $user_headers)) echo "Mail Send Successfully"; else echo "Mail Not Send Successfully"; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload