I have tried the following code:
FileName: index2.php
---------------------------------
<?
mail( "aa*@yahoo.com" , "A", "B", "From: a...@aol.com" );
echo "Finished Emailing.";
?>
For some reason I don't get an email in my aa*@yahoo.com account, but
the message "Finished Emailing" does display. Seems pretty
simple...but it doesn't work. Can someone help me figure out what is
wrong...or the best way to debug this? thanks... 4 1564 nu***********@g mail.com wrote: I have tried the following code:
FileName: index2.php ---------------------------------
<? mail( "aa*@yahoo.com" , "A", "B", "From: a...@aol.com" ); echo "Finished Emailing."; ?>
For some reason I don't get an email in my aa*@yahoo.com account, but the message "Finished Emailing" does display. Seems pretty simple...but it doesn't work. Can someone help me figure out what is wrong...or the best way to debug this? thanks...
The way you've set the test up, the 'finished emailing' message will
always show up, so it's no real test at all.
Try this instead and look at the result
if( mail( "aa*@yahoo.com" , "A", "B", "From: a...@aol.com" ) ) {
echo 'Finished Emailing.';
}
else {
echo 'Sending mail failed';
}
If the message got send, try checking your Yahoo spam box - the message
might be filtered to it.
If the message sending failed, look at the error messages or warnings.
If none display, put the following line above the test:
error_reporting ( E_ALL );
For more info, start reading: http://www.php.net/manual/en/function.mail.php nu***********@g mail.com wrote:
<snip> For some reason I don't get an email in my aa*@yahoo.com account, but the message "Finished Emailing" does display. Seems pretty simple...but it doesn't work. Can someone help me figure out what is wrong...or the best way to debug this? thanks...
IIRC, there is a bug in PHP and it's yet to be fixed. If the mail
server is too sensitive, it won't accept stating "syntax error" or so.
Yahoo! server seems to be so sensitive; try gmail instead.
--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
Thanks guys...alas, nothing seems to work. I've tried the following
code:
<?
error_reporting ( E_ALL );
if( mail( "nu***********@ gmail.com", "A", "B", "From: ab*@aol.com" ) )
{
echo 'php - Finished Emailing.';
}
else {
echo 'php - Sending mail failed';
}
?>
And I still don't get an email. Not sure what to think...is there any
other "mail" option I have for my HTML / PHP bases Web Site? nu***********@g mail.com wrote: Thanks guys...alas, nothing seems to work. I've tried the following code:
<? error_reporting ( E_ALL );
if( mail( "nu***********@ gmail.com", "A", "B", "From: ab*@aol.com" ) ) { echo 'php - Finished Emailing.'; } else { echo 'php - Sending mail failed'; } ?>
And I still don't get an email. Not sure what to think...is there any other "mail" option I have for my HTML / PHP bases Web Site?
You could have a look at this fully featured open source class: http://phpmailer.sourceforge.net/
They may have figured out ways to get round the bug mentioned by Rajesh. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: jpastora |
last post by:
I'm having a strange problem with our email links on the domain :
http://www.pc350.com/ .
The problem is that when you click on an email link, the email app is
not launched until the browser window is minimized or you switch to a
different application. Please try clicking on any email link to know
what I'm talking about. The code has been thoroughly checked, I found
no errors.
The thing is, this behaviour has something to do with the...
|
by: mike |
last post by:
I have created a side application in VB.NET which reads
rows from a DB and builds an email message.
when i have a long string the the mailmessage.body or the
mailmessage, it puts in an "!<linefeed><space>" at about
every 980th space. I have confirmed that these characters
are not in the string or the message body before the email
is sent. Has anyone seen this or have any thoughts?
Thanks
|
by: Mike |
last post by:
Is there a way to determine what a user's default email client is? I
read a post from 3 years ago that said no. I guess I'm hoping
something has come along since then.
|
by: VP |
last post by:
g'day,
i am posting a problem i have encountered with creating an email using
outlook through some basic c# code. the problem arises when using
different email editors in outlook. At the moment i am using outlook
2000. Outlook can be configured to use the default outlook email editor
or use ms word as the email editor in outlook.
The sample code below simply creates an email with a hyperlink. The
problem I am facing is that when...
|
by: supz |
last post by:
Hi,
I use the standard code given below to send an email from an ASP.NET
web form. The code executes fine but no Email is sent. All emails get
queued in the Inetpub mail queue.
I'm using my local default SMTP Server and my from address is a valid
Yahoo/Hotmail address. I have configures the local SMTP Server to allow
the IP Address 127.0.0.1.
| |
by: libsfan01 |
last post by:
Hi all!
Can anyone show me how to check and email field on a form for the
existence of these two characters.
Kind regards
Marc
|
by: RickVidallon |
last post by:
Missing or Truncated Body Text in Email Application - 2 Strange
Examples...
There is no earthly reason why this is happening!
EXAMPLES HERE:
http://65.36.227.70/actmailer/
We have a scheduled task which runs every 5mins and sends pending
email campaign.
The script has been written in VB.NET and following is the code which
|
by: Steven Allport |
last post by:
I am working on processing eml email message using the email module (python
2.5), on files exported from an Outlook PST file, to extract the composite
parts of the email. In most instances this works fine, the message is read
in using message_from_file, is_multipart returns True and I can process each
component and extract message attachments.
I am however running into problem with email messages that contain emails
forwarded as...
|
by: IGD |
last post by:
I don't know if this is the right place to post this or not. If not,
could someone direct me elsewhere where I would find more information
on how to solve my problem? Thanks!
My problem is this: I am writing an application for work. This
application sends a basic html email via SMTP to a group. In this
group are individual people's emails, but also about 5 other groups.
The problem is that the email is only getting received by (or sent...
|
by: tdw |
last post by:
Hi all,
I am trying to add a feature to our database that automates sending emails.
When entering a new order, I want the option to send an email to the company the order came from, attaching a copy of our work order.
The file that I want to attach is a rich text document created by Access and stored on our server. The creation of this document is not the problem.
The problem is getting the email option to work. It does not seem to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |