not getting email sending from website
Posted: Thu Jul 19, 2007 10:27 pm
feyd | Please use
The outcome of this is sucessful, but I didn't receive any email from my inbox nor my junk mail.
Where have my mail been? is there any way that I can do?? Please help!!!
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I have some problem in sending emails from the website back to my email address.
I am not sure is there anything to do with the incoming server port. Because usually it is set to 110, but my this email is set to 9000.
I tried using normal php mail function and PHPMailer.Code: Select all
$to='me@mycompanyemail.com';
$subject='Testing email';
$message='Just a testing email';
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'From: <'.$email.'>' . "\r\n";
if ($strmail=mail($to, $subject, $message, $headers))
{
echo "sucessful";
}
else
{
echo "Error email";
}Where have my mail been? is there any way that I can do?? Please help!!!
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]