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

  • Home
  • SEARCH
  • 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 7946729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:14:08+00:00 2026-06-04T01:14:08+00:00

How can i send an Email using PHP at windows Azure? i am using

  • 0

How can i send an Email using PHP at windows Azure?

i am using simple mail function:

$to .= 'email-Id';
$subject = " Test Subject";

$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'To: '.$to.'' . "\r\n";
$headers .= 'From: '.$name. '<'.$email.'>' . "\r\n";

echo $message='email text here';
@mail($to, $subject, $message, $headers);
  • 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-04T01:14:09+00:00Added an answer on June 4, 2026 at 1:14 am

    To send emails using PHP you have a few options:

    Option 1: Use SMTP

    You’ll need to modify your php.ini configuration file (http://php.net/manual/en/ref.mail.php) and set the SMTP value to an external SMTP server you can use. SMTP servers are not part of the Windows Azure features at the moment.

    [mail function]
    SMTP = mail.mycompany.com
    

    Option 2: Use sendmail

    You’ll need to modify your php.ini configuration file (http://php.net/manual/en/ref.mail.php) and set the sendmail_path value to the sendmail executable.

    [mail function]
    sendmail_path = "C:\wamp\sendmail\sendmail.exe -t"
    

    Since sendmail doesn’t exist in Windows, you’ll need to use the fake sendmail for windows: http://glob.com.au/sendmail/

    Option 3: Use a mail/smtp service

    You could use a service like SendGrid to send your emails (they have an offer for Azure users: http://sendgrid.com/azure.html). They’ll take care of sending out the email, you’ll just need to call the REST api:

    $sendgrid = new SendGrid('username', 'password');
    $mail = new SendGridMail();
    $mail->addTo('foo@bar.com')->
           setFrom('me@bar.com')->
           setSubject('Subject goes here')->
           setText('Hello World!')->
           setHtml('<strong>Hello World!</strong>');
    $sendgrid->smtp->send($mail);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using php's mail() function to send an email from a php scrpit,
Can I send email using jQuery only? I don't have .Net or PHP etc
How to send HTML content in email using Python? I can send simple texts.
How can I send an email to 1000 people or more using PHP, without
I know it is possible to send email through php using mail(), however I
I am using PHP Swift Mailer to send Mail to my user, whose email
When I send an email containing £ using PHP mail it appears in outlook/hotmail
I'm using PHP Pear Mail Queue to send queued emails, but I can't get
On my server i'm using php pear package and when i send email, and
Here's a scenario; I want to send email using PHP and Zend Framework. Here's

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.