-
Posts
149 -
Joined
-
Last visited
Never
Posts posted by IrOnMaSk
-
-
the error show that the changes is not saved... You still have localhost as your smtp and the port is the still 25... it should be SMTP = smtp.abv.bg and smtp_port = 465. Make sure that those two are changes... go back in there see if the two lines are changed. if not change it and saves and restart the xamp server...
after that try this one for me... just copy and paste it into your page. and run it (assuming that "man.in.black@abv.bg" is a real email address)
$to = "man.in.black@abv.bg"; $subject = "mail testing"; $message = "Did you get this message?"; $headers = "MIME-Version: 1.0" . "\r\n"; $headers.= "Content-type:text/html;charset=iso-8859-1" . "\r\n"; $headers .= 'From: <rali__90@abv.bg'>' . "\r\n"; mail($to,$subject,$message,$headers);
most important make sure the smtp and the port is changed and saved
-
don't be embarassed... if you don't ask you don't know
this code is wrong
<? mail('target@abv.bg', 'subject', 'message'); ?>
that's not all the code that neccessary to send email... It need heading in there...
here follow this example...
http://www.w3schools.com/PHP/php_mail.asp
and don't forget to do the setting from here
so go to your php.ini (in your xamp folder)
and search for:
SMTP=localhost (change the localhost to smtp.abv.bg)
smtp_port = (after the = replace with 465)
sendmail_from = you@yourdomain.com (your email addres the blabla@abv.bg)
lastly they use secure socket layer ssl
search for 'extension=php_openssl.dll' and uncomment it by delet the ; infront of it....
let me know
-
Hey, I want to ask how can I actually send emails using php ? All tutorials show on how to send emails via outlook and I don't want that, I want to send emails from say example@yahoo.com, how do I do that ?
oh, you can't send email using somebody else's address!!! lol
I was assuming you're using your own email address... and yes you need the password, if its your email address use your password to that address.
and can you post the source code that you're working with?
-
so you need their outgoing mail server, and port number
a quick search I found that this is their out going mail server : smtp.abv.bg
and their port is : 465
so go to your php.ini (in your xamp folder)
and search for:
SMTP=localhost (change the localhost to smtp.abv.bg)
and the port number, change it to 465
lastly they use secure socket layer ssl
search for 'extension=php_openssl.dll' and uncomment it by delet the ; infront of it....
follow so far?
if that's not working you have to confirm with their outgoing mail server that's it's definitly smtp.abv.bg
-
I'm using abv.bg, I don't get what I need to change :/
what is your email address you using to send the email?
for example 'youremailaddress@domain.com'
what's your domain.com? after the @sign
-
how do I get my exact ISP name without having to contact them? I'm using a rooter
who's your ISP? What mailing are you using? gmail, yahoo, hotmail? you can just search for their mailing server online
-
what's the code or example you follwing?
most likely you haven't enable all the stuff in php.ini
-
A single equals sign assigns a value, two will compare, 3 will compare values as well as types.
is there a 4 qual signs?
-
Is PHP the most powerful and popular server-side scripting language?
No. It's not. Don't waste your time learning it
-
you should never walking through a while loop because if you're smaller than the loop, you'll find yourselfe walking through it till eternity untill you're bigger than the loop variable...
-
how to copy from a website specific piece of txt and insert to mysql
the easiest way is in 5 steps
1) to place your mouse pointer at the beginning of where you want to copy, hold the left click and drag the mouse over the text you want to copy and stop at the end of where you don't want the text anymore.
2) Release the mouse, you should see the text highlight, make sure that all the text you want.
3) press and hold Ctrl and press letter C at same time.
4) go to your mysql database table and place the mouse where you want to paste the text to.
5) press and hold Ctrl and press letter V...
Done
forgive me, if that's not the way you want to do it... it's just one of the possibilities
-
Pran, did you allow the openssl.dll in your php.ini? Gmail uses secure socket, so you have to enable it in php.ini...
search for extension=php_openssl.dll and uncomment it if you haven't already, it should works
-
hey guys, So I want to throw an error if something goes wrong with fwrite function and send it to my email. Problem is that it will send me email when something goes wrong with the function and also it will send email when there's nothing to write to file. all I want is to send me email only when fwrite() is not working not when there's nothing to write to file....
here's my email function
function error_checking($to, $message)//checking error { $subject = "Error Checking"; $headers = "MIME-Version: 1.0" . "\r\n"; $headers.= "Content-type:text/html;charset=iso-8859-1" . "\r\n"; $headers .= 'From: <licensetracker@wateva.com>' . "\r\n"; mail($to,$subject,$message,$headers); }
here's my write to file code
<?php ob_start();//start writing content //content is empty nothing to write $date = date("m/d/y"); $time = date("h:i:s"); $page = ob_get_contents(); ob_end_flush(); $fp = fopen("content.html", "w"); fwrite($fp, $page); if(!fwrite($fp, $page)) { error_checking(emailme@wateva.com, 'cannot write to file. please check hompepage.php for more info'); }else{ fclose($fp); } ?>
thanks in advance
-
Sensei must be really bored when you digged up the posts all the way back to 2007
-
XAMP is a geeky spelling of EXAM where the E is converted to a P and then is moved from its first indice to the last...
AMP is an abbriviation for AMPLIFICATION... just means to crank up the sound...
and the first two already answered by Nodral and Sensei,
oh and Senei means Teacher in Japanese (i think)
-
if that's all your code for login in and register... it will never work... unless some magical scripting done in your JSFunctions.js. you fail to register because there's no code to process that register form. what you need is php to take your registering info and save it to a database. but i don't see any php in that code you provided....
-
-
I would assume that it has to be done from both ends, when you upload into someone else's directory won't that someone has to update your profile or account telling the system to accept the large file coming in?
just throwing idea
-
oh ok so you don't want them to log into your database (don't do that )
If everything is done using web application, maybe create a profile for your users, and when they login to that profile you display all the info that you want them to see (you're in control). And if they want to update their info, just do a simple update or alter table statment from there... (if you update the db base on user input dont forget to sanitize the query)
hope this somewhat help or point u in the right direction... let me know
-
u should try it
-
what kinda datbase system do you have?
So you want your users login into the database and be able to do the thing you describe?
you might want to look into Creating View: http://dev.mysql.com/doc/refman/5.0/en/create-view.html
And for retrieving data from db I usually use the good old way (fetch_array) in the while loop
-
So you doing this just using your localhost server or you using a webhost server online?
-
that's nice, refresh and flush away al the problems
-
ah gotcha!!!
thankx
actual emailing
in PHP Coding Help
Posted
oh and this line also ";extension=php_openssl.dll" delete the ; infront of it