Jak mogę wysłać e-mail za pomocą PHP na Windows Azure?
Jak mogę wysłać e-mail za pomocą PHP na Windows Azure?
Używam prostej funkcji poczty:
<code>$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); </code>