amy
-
Posts
6 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Downloads
Gallery
Store
Posts posted by amy
-
-
Hi Amy,
I agree, but by using the if statement, you would at least know if the email was being handed off to the mail server for delivery, whether delivered or not.
True true! It's definitely an option!
-
Shouldn't you enclose your mail function within an if statement if you want to test if it was accepted to be sent and echo out something whether true or false?
e.g.
$subject = "testing mail";
$message = "Here is a test mail message";
$to = "me@gmail.com";
$from = "me@gmail.com";
$header = "From: ".$from;
if(mail($to, $subject, $message, $header))
echo "Oh ya!<br>";
else
echo "well crap!<br>";
Hi markvs,
It's much easier to just use the single line.. and check your email for success.
-
I think I may have the last remaining copy of FrontPage. I used that for years.
-
Can anyone explain me how to send an e-mail from a web, with php?
In Misc > functions: part2 Stefan Explains a bit the mail function. I try and it doesn't work for me. I get Email sent: 1, but I don't receive the email
- I attached the file: mail1.php:
$did_send = mail('info@mig-marketing.com','Subject','body of the message');
echo "Email sent: " . $did_send;
- I tried something more complex. But I don't receive the email either. mail2.php:
$to = "info@mig-marketing.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "narcis@mig-marketing.com";
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
narcis,
try simplifying the process a bit by using this code all by itself in a php page:
mail('youremail@gmail.com', 'This is My subject', 'This is the message', null,'-finfo@yourdomain.info');
I've always been able to use that on HostGator and most sites without a problem. I do have one host that disables the php mail function though, so it doesn't work with them.
-
Hi guys, i use WordPress to all of my sites because its very powerful for search engine, i think every one use wordpress know that.
now i have a custom php website, very simple code consist of one page index but here is my questions,
is it good to integrate WP blog to the site as a secondary and link the blog folder ?
or to have my main domain as WordPress blog and add my script on secondary folder.?
my site are consisting of one page , [Link Deleted]
any examples or ideas you guys have or suggestion.
I've got my site setup as 2 sections.. wordpress and a lot of standalone php/html in another section. The search engines don't seem to favor either one so there's nothing wrong with integrating the two for sure. Good luck!
CSS for web developers
in CSS
Posted
One of the best things you can do to improve your knowledge is use the 'firebug' add-on for the Firefox browser. Using firebug allows you to hover over any element, on any web page, make "psuedo-changes" and actually see how the page would be affected in real time.
IE and Chrome also both have a firebug addon, but Firefox does it far better than the other browsers.
I would strongly recommend firebug to anyone starting out with css.
Good luck!