mrjameer Posted December 5, 2006 Share Posted December 5, 2006 hi,iam using the following mail function.code is..mail($new_email, _new_subject,_new_mobile."$new_mobile", _new_conftext."\n\n$buildlink", "From: $adminmail");1.$new_email-to address2._new_subject--subject(it is constant value)3._new_mobile--mobile(constant)4._new_conftext."\n\n$buildlink"--confirmation text with some link to activate his account5.from--my email idthe mail is working with localhost but when i upload the script to my web site it is not sending mail.i checked all the things.but still it's not working.in my php script some cgi coding is used..please give me any suggestion.thanksmrjameer Link to comment https://forums.phpfreaks.com/topic/29557-php-mail-problem/ Share on other sites More sharing options...
Orio Posted December 5, 2006 Share Posted December 5, 2006 Try:[code]<?phpif(mail($new_email, _new_subject, _new_mobile.$new_mobile, _new_conftext."\n\n".$buildlink, "From: ".$adminmail)) echo "sent";else echo "failed";?>[/code]Do you still get "failed"?Orio. Link to comment https://forums.phpfreaks.com/topic/29557-php-mail-problem/#findComment-135599 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.