ecabrera Posted August 20, 2011 Share Posted August 20, 2011 hey i have a problem when i try to send email through php it seems to take a long time somethings it can be there quickly but somethings it takes forever is it something im doing wrong in the short script this is part of my script // email profile owner $webmaster = "[email protected]"; $headers = "From: mywebsite<$webmaster>"; $subject = "$username has commented on your profile"; $message = "Hello $firstname $lastname. $username has posted a comment on your profile on mywebsite.com"; $message .= " The message $username has posted with is below.\n"; $message .= "\n****************************************************************\n"; $message .= "$comment"; $message .= "\n\n****************************************************************\n\n"; $message .= "Click here to view $username's profile $site/profile?id=$userid\n"; $message .= "Click here to view your profile $site/profile?id=$getid\n"; // send email mail($email, $subject, $message, $headers); Quote Link to comment https://forums.phpfreaks.com/topic/245300-slow-email/ Share on other sites More sharing options...
ecabrera Posted August 20, 2011 Author Share Posted August 20, 2011 sorry about that // email profile owner $webmaster = "[email protected]"; $headers = "From: mywebsite<$webmaster>"; $subject = "$username has commented on your profile"; $message = "Hello $firstname $lastname. $username has posted a comment on your profile on mywebsite.com"; $message .= " The message $username has posted with is below.\n"; $message .= "\n****************************************************************\n"; $message .= "$comment"; $message .= "\n\n****************************************************************\n\n"; $message .= "Click here to view $username's profile $site/profile?id=$userid\n"; $message .= "Click here to view your profile $site/profile?id=$getid\n"; // send email mail($email, $subject, $message, $headers); Quote Link to comment https://forums.phpfreaks.com/topic/245300-slow-email/#findComment-1259900 Share on other sites More sharing options...
voip03 Posted August 20, 2011 Share Posted August 20, 2011 It is hosting server issues. if you contact them they will able to help you. Quote Link to comment https://forums.phpfreaks.com/topic/245300-slow-email/#findComment-1259903 Share on other sites More sharing options...
ecabrera Posted August 20, 2011 Author Share Posted August 20, 2011 i dont think so i was just wondering if that is correct way to send email through php mayb im doing i wrong Quote Link to comment https://forums.phpfreaks.com/topic/245300-slow-email/#findComment-1259913 Share on other sites More sharing options...
voip03 Posted August 20, 2011 Share Posted August 20, 2011 it is one of the way to send email. Why are you thinking that ' hosting server issues'? Quote Link to comment https://forums.phpfreaks.com/topic/245300-slow-email/#findComment-1259917 Share on other sites More sharing options...
ecabrera Posted August 20, 2011 Author Share Posted August 20, 2011 i ask them and said nothing was wrong im going to try again Quote Link to comment https://forums.phpfreaks.com/topic/245300-slow-email/#findComment-1259920 Share on other sites More sharing options...
voip03 Posted August 20, 2011 Share Posted August 20, 2011 it may help you. http://www.phpfreaks.com/forums/index.php?topic=341752.0 Quote Link to comment https://forums.phpfreaks.com/topic/245300-slow-email/#findComment-1259928 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.