Send email using PHP

To connect to an outgoing SMTP server from a PHP script using SMTP authentication and send an email:

  • Make sure the PEAR Mail package is installed.
    • Typically, in particular with PHP 4 or later, this will have already been done for you. Just give it a try.
  • Adapt the example below for your needs. Make sure you change the following variables at least:
    • from: the email address from which you want the message to be sent.
    • to: the recipient’s email address and name.
    • host: your outgoing SMTP server name.
    • username: the SMTP user name (typically the same as the user name used to retrieve mail).
    • password: the password for SMTP authentication.

Sending Mail from PHP Using SMTP Authentication – Example

<?php
 require_once "Mail.php";
 
 $from = "Sandra Sender <sender@example.com>";
 $to = "Ramona Recipient <recipient@example.com>";
 $subject = "Hi!";
 $body = "Hi,\n\nHow are you?";
 
 $host = "mail.example.com";
 $username = "smtp_username";
 $password = "smtp_password";
 
 $headers = array ('From' => $from,
   'To' => $to,
   'Subject' => $subject);
 $smtp = Mail::factory('smtp',
   array ('host' => $host,
     'auth' => true,
     'username' => $username,
     'password' => $password));
 
 $mail = $smtp->send($to, $headers, $body);
 
 if (PEAR::isError($mail)) {
   echo("<p>" . $mail->getMessage() . "</p>");
  } else {
   echo("<p>Message successfully sent!</p>");
  }
 ?>

Sending Mail from PHP Using SMTP Authentication and SSL Encryption – Example

<?php
 require_once "Mail.php";
 
 $from = "Sandra Sender <sender@example.com>";
 $to = "Ramona Recipient <recipient@example.com>";
 $subject = "Hi!";
 $body = "Hi,\n\nHow are you?";
 
 $host = "ssl://mail.example.com";
 $port = "465";
 $username = "smtp_username";
 $password = "smtp_password";
 
 $headers = array ('From' => $from,
   'To' => $to,
   'Subject' => $subject);
 $smtp = Mail::factory('smtp',
   array ('host' => $host,
     'port' => $port,
     'auth' => true,
     'username' => $username,
     'password' => $password));
 
 $mail = $smtp->send($to, $headers, $body);
 
 if (PEAR::isError($mail)) {
   echo("<p>" . $mail->getMessage() . "</p>");
  } else {
   echo("<p>Message successfully sent!</p>");
  }
 ?>

High Volume Bulk Email Hosting

Overview

Sending bulk or high volume email presents unique challenges for businesses, ISPs and email hosting companies. To accommodate bulk email sending, MMS provides several SMTP options including shared, semi-dedicated and dedicated hosting services.

High volume SMTP Features:

  • DKIM Signing
  • Sender Policy Framework (SPF)
  • Simple Integration with your application

Your Application, Our SMTP

Unlike typical email marketing services, our high volume SMTP hosting service lets you send from your own application server, email client or a combination of different sources. For distributions of several thousand to greater than 1,000,000 messages per month, our high volume services are highly scalable and competitively priced.

Becoming a Client

In accordance with our Zero Spam Tolerance Policy, MMS’s bulk email hosting is a tightly regulated service. Clients are expected to responsibly manage ISP abuse reports and follow CAN-SPAM guidelines. In addition, MMS researches potential clients and performs extensive due diligence to prevent abuse.

SMTP Pricing

Shared IP

Sends per monthMonthly PriceOrder Now
Plan 1100,000$65 
Plan 2250,000$75 
Plan 3500,000$120 
Plan 4100,0000$200 
  1. One Dedicated IP (free ip replacement if become blacklist).
  2. RDNS.
  3. Domain Keys.
  4. SPF Records.

* Actual monthly price for dedicated IP varies depending on burst sending requirements, hardware configuration, and SMTP volume.

free email marketing lists

Are you looking for free email lists to send email marketing promotions? please click on live chat we help you with that.

We can send unlimited emails to our subscribers for you. We have authorization from our subscribers that we can send them weekly promotions about any product or service.

All you need is to buy our any solo email marketing plan and we will send emails to our subscribers once a week.

buy smtp server using Ethereum (ETH)

Mass Mail Servers is first bulk smtp Servers provider that start accepting Ethereum (ETH) as payment method. So if you are willing to buy unlimited smtp server, mass email marketing service, cheap smtp serverbest dedicated smtp server, dedicated ips you can buy with Ethereum (ETH).

Place order of any mass email marketing service plan you want and send payment to Ethereum (ETH) address given below. And send us screen shot and confirmation to sales@massmailservers.net. On successful receipt of money your invoice will be paid and your order will be processed. Thanks

For further details please contact our live chat support or send us an email at sales@massmailservers.net. We also accept paypal, payza, perfect money, Dash, payoneer etc…

Dedicated Email Server Hosting

Send unlimited emails with dedicated email server hosting. Mass Mail Servers offer cheap and affordable mass email services with 24/7 support.

Dedicated Email Servers Feature:

  • Send unlimited emails daily
  • Send text and html mass emails
  • Free Bulk Email Marketing Software
  • Free SMTP server settings (SPF, DKIM, rDNS, DMARC)
  • Free IP Rotation
  • Free Feedback Loop Setup
  • No Daily Limits, No Monthly Limits
  • Send Transactional Emails or Promotional Emails

Dedicated Email Server Pricing

  • Send 30K emails per hour
  • Quad Core Processor
  • 2x1000GB HDD
  • 8 GB RAM
  • 4 Dedicated IPs
  • SPF, DKIM, rDNS Setup
  • IP rotation
  • Feedback Loops
  • Price: 300$/month

BUY SMTP SERVER

11 Powerful Best Bulk Email Marketing Software Features-(That Work Fast)

Our email marketing software has the following unbeatable features which enables users to send their email campaigns while they sleep using automated settings available in the software.

  1. Follow up with customers or prospects automatically using autoresponders.
  2. Optimize click thru rates with split testing.
  3. Automate list management with triggers.
  4. Keep lists clean and up-to-date with auto bounce processing.
  5. Complete activity log of a lead with event logging.
  6. Track bounces of each campaigns.
  7. Track total Opens and users who opened mass emails.
  8. Track click thru rate of each campaign.
  9. Track unsubscribes per campaign.
  10. Suppression List management help to improve your email reputation.
  11. Emails delivery using multiple mass email SMTP servers with multiple IPs for fast delivery rate.

Unlimited SMTP Server

If you are looking to send unlimited emails daily you can try our smtp server plans. Using them you can send unlimited emails on monthly basis.

With each server you get attractive email marketing software which allow you to manage lists, design and send campaigns, track your campaigns, track opens, bounces and unsubscribers.

you will be able to send emails with your dedicated IPs that will come with the server.

We will setup SPF, DKIM, rDNS, DMARC for free. You will also get our best 24/7 email/chat/skype/ticket support.

To order Unlimited SMTP server plans please go to :  http://www.massmailservers.net/services/smtp-server

Payment Methods: We accept paypal, credit cards (VISA/MASTER/AMEX), Skrill.com, Bitcoin/BTC, Western Union, MoneyGram, Bank Transfer.

How to Send Bulk Emails?

bulk email service

If you are going to send bulk emails or mass emails you need to make sure your email lists are cleaned and you have nice email design and a bulk email server.

  1. Email Design
  2. Good Email Content and Subject Lines
  3. Email Lists
  4. Bulk Email Service
  • Email Design: The first thing you need is nice attractive email template design. So that it looks attractive to people when they will open your emails. The more attractive it will be the more better open rate you will get. But please avoid using too many colors try to follow theme of your website or company while designing the email template. And make sure your email design is responsive because a big number of people read emails on mobile.
  • Email Content and Subject Lines: Good email content and subject lines can help to improve inbox landing and delivery rate. Bad subject lines with spam words can cause to land in spam or get ignored by receivers. You need to use attractive call to action subject lines. Your content should also be precise and to the point. Do not use big images in email, one image with one link is enough. Avoid sending spam words i.e offers, sale, discount, coupon, test etc…
  • Email Lists: You need nice cleaned email lists or double optin so that you don’t have to face blacklisting issue and wont get spam complains. The more better and clean email lists you will have the more better delivery rate and open rate you will get. Purchased email lists always have IP blacklisting issues and so many complains that can burn your business or bulk smtp server. If you will get too many complains your bulk email service provider may terminate you.
  • Bulk Email Service:  You need a bulk email service account or mass email service from a bulk email service provider. So that you could send unlimited emails easily without daily email sending limits. Like for example if you will use gmail smtp server to send bulk emails. You can only send 500 emails per day. After that your gmail account will be either suspended or you will get errors.

So you need a bulk email hosting account from a bulk email server provider so that you can send unlimited bulk emails to unlimited subscribers at affordable price.

Mass Mail Servers offering bulk email service since 2010. You can use our cheap dedicated bulk smtp servers for sending bulk emails or for mass mailing. We have 24/7 support team available for your help.

Click here to view our Bulk Email Service Plans

FAQ’s:

How to send bulk emails in free?

Answer: You cant send bulk emails in free. So many companies saying free smtpfree bulk email service, free smtp server, free bulk email sending etc… but all are false statements. Bulk means in big quantity so 1000 free emails6600 free emails per month10000 free emails or even 20000 free emails per month you think are good enough for bulk mailing?

No its not is there anyone who can give you to send 100K emails free per day or allow to send 1 million emails free per day? No you cant find so all of them just giving you test account not exactly free service. They want you to test the service and once you get addict then pay them high fees to send bulk emails.

How to send bulk emails using gmail?

Answer: Please note gmail smtp server is not for bulk mailing purpose. And gmail do not allow spamming or bulk mailing using gmail smtp servers. So you can’t send high volume bulk emails from gmail account. But yes gmail has bulk email feature which means you can send one email to 10, 20, 100 or maximum 500 people at once. But keep in mind using gmail you can send more than 500 emails per day.

Bulk Email Tips:

Once you have your email design, email lists ready and a bulk smtp server to send campaigns. Now you need to take care of the following tips before and while sending your bulk email campaigns.

  1. Do not send emails to purchased lists
  2. Make sure your email lists are shuffled it has all the email addresses mixed, yahoo, gmail, aol, b2b etc…
  3. Do not send spammy words in subject line i.e coupon, discount, free, Test, Trail, Sale, Offer etc…
  4. Try to use Call to Action word in subject line
  5. Use personlize words in email body
  6. Try to rotate your email content using spinning the content technique.
  7. Do not send big single image based emails
  8. Try to use minimum 1 image and 1 hyperlink in the email
  9. Do not use or link your main website url in email
  10. Put your landing page URL in your email content
  11. Do not try to send emails with too high speed you will be blocked quickly
  12. Make sure your email has unsubscribe link visible and working.
  13. Keep eye on your sender email inbox some people reply back as complain or with interest in that case you should be able to reply back.
  14. Send emails early in the morning so that when people get to work they see your email on top.
  15. Do not send professional services emails on weekends. People love to enjoy not to work on weekend.
  16. Do not send Attachment Emails
  17. Setup feedback loop with major ESP’s i.e gmail, hotmail, aol, comcast, yahoo etc…

Choose the best SMTP Server Provider

If you are looking for professional email marketing – when you need to send an email newsletter to a large number of subscribers – it’s crucial to find the best SMTP server tosend mass mails.

professional smtp service

The main difference between a Free SMTP provider (like Gmail, Hotmail, AOL, Yahoo) and a professional email server is that can ensure the highest deliverability for your email messages and let you send unlimited emails quickly, without hourly or daily limits.

Before choosing a bulk email service make sure the best SMTP server provider has following features:

  • Setup Feedback Loops with top ISPs: It is important to keep your delivery rate high for your newsletter and remove the complains from your list;
  • Cheap smtp server plans in order to meet all type of emailing needs;
  • Smtp Servers should be compatible with all bulk email sender software, and easy to configure;
  • Configure SPF, DKIM, rDNS, DMARC important for better delivery rate;
  • IP blacklisting Support help to get delist your IPs if they become blacklisted;
  • Multi Subnet IPs good if you can have ips from different subnets so if one get blocked the other wont be in trouble because of first one;
  • MTA or IP Rotation help to speed up email delivery process;
  • provide Tracking Features to give you tools to track your email campaigns (open rate, the click-through rate, bounce rate etc.).
  • offer a 24/7 support to be available any time for you.

MassMailServers meets all these features and many more, constantly striving to be the best SMTP service for your business. You can check our plans and choose the best you want: smtp server plans

Transactional Email Service

Transactional email is an automated email communication between sender and receiver. The system auto sends the welcome email, job alerts, notifications, alerts, updates, password resets, invoices, order confirmation emails to the receivers on request. The open rates of transactional emails are always high because receiver always agreed and ready to receive these emails.

Mass Mail Servers offer transactional email service with dedicated IP so that it looks 100% branded for your company. You can use our bulk smtp hosting plans, vps smtp server plans and dedicated smtp server hosting plans for transactional emails from your domain. Our auto IP warm up process can help you to warum up your IPs and to achieve high email delivery rate at affordable price. We have 24/7 smtp server experts available for your help. You can use multiple IPs to send your transactional emails with mass mail service.

Types of Transactional Emails:

Some of the transactional emails types are given below with detailed explanations.

  1. Welcome /Signup Confirmation Emails
  2. Job Alerts/ Banking Transaction Alerts/ Other Alerts
  3. Password Reset
  4. Order Confirmation
  5. Invoicing / Payment Receipts
  6. Updates
  7. Birthday Greetings
  • Welcome Emails/Signup Emails: When you sign up at any website, forum or subscribe for newsletter they send you confirmation or welcome email that’s called transaction email. In which the receiver authorized sender to send the email with required login details or send email for verification and validation of signup.
  • Alerts/Notifications:

Job portals send daily CV’s to the companies and send latest job offers to the candidates such emails are transactional emails.

Banks send monthly bank account statements, credit card statement, security updates and each banking transaction alert to its customers as an email is also transactional emails.

Same way many other companies like internet service providers, data centers, hosting providers, domain registration companies send auto generated alerts; notifications to their customers are also transactional emails.

Social Media Alerts: twitter send notifications, alerts are also transactional emails and same way facebook emails about new post etc… also transactional emails.

  • Password Reset: Sending out password reset emails also called transactional emails.
  • Order Confirmation: When someone place order the system/CMS/Ecommerce Websites send the buyer order confirmation emails such emails are also transactional Emails
  • Invoices/ Payment Receipts: Sending monthly or order invoices or payment confirmation emails to the receiver are also transactional emails. You can also send invoice as attachment in PDF format in such emails.
  • Updates:  Sending updates about new products, upcoming products, stock etc… are also transactional emails in which system auto send updates about new products, blog posts, blog comments, forum posts and threads to the receivers etc…
  • Birthday Greetings: Some companies send their buyers or customers or subscribers or  community members, forum members, social media site users birthday greetings such emails are also transactional emails in which receiver get a birth greeting email from the sender on his/her birthday date.