I have a send mail script on my site that.
The emails are recieved by gmail, and yahoo, but not to mail clients
like Outlook, Mail, etc...)
Is this a problem with the script, or is it something I must change in
php ini file?
Thanks in advance for any help.
here is the code. (im using it in conjunction with javascript for some
AJAX stuff)
if(!isset($_GET['action']))
{
die("You must not access this page directly!"); //Just to stop people
from visiting contact.php normally
}
/* Now lets trim up the input before sending it */
$name = trim($_GET['name']); //The senders name
$to = trim($_GET['maily']); //The senders email address
$place = trim($_GET['place']); //The senders email address
$subject = "you have recieved mail";
$headers = "From:$name";
$message = "{$name} deemed you worthy of receiving the following
information/exchange from Trumpet.\n\n Follow This Link {$place}";
mail($to, $subject, $message,$headers); //a very simple send
echo 'contactarea|<p class="sent">Article Sent!</p>'; //now lets
update the "contactarea" div on the contact.html page. The
contactarea| tell's the javascript which div to update.
?> 3 2177
shybe wrote:
I have a send mail script on my site that.
The emails are recieved by gmail, and yahoo, but not to mail clients
like Outlook, Mail, etc...)
Is this a problem with the script, or is it something I must change in
php ini file?
Thanks in advance for any help.
here is the code. (im using it in conjunction with javascript for some
AJAX stuff)
if(!isset($_GET['action']))
{
die("You must not access this page directly!"); //Just to stop people
from visiting contact.php normally
}
/* Now lets trim up the input before sending it */
$name = trim($_GET['name']); //The senders name
$to = trim($_GET['maily']); //The senders email address
$place = trim($_GET['place']); //The senders email address
$subject = "you have recieved mail";
$headers = "From:$name";
$message = "{$name} deemed you worthy of receiving the following
information/exchange from Trumpet.\n\n Follow This Link {$place}";
mail($to, $subject, $message,$headers); //a very simple send
echo 'contactarea|<p class="sent">Article Sent!</p>'; //now lets
update the "contactarea" div on the contact.html page. The
contactarea| tell's the javascript which div to update.
?>
It's not a problem with the mail() function if some e-mail clients are
getting it. Maybe something to do with your e-mail formatting:
$headers = "From: $name"; should probably be
$headers = "From: \"$name\" <$email>";
Also the code snippet as you posted would be very vulnerable to script
attacks, I suggest more secure code.
On Nov 29, 9:34 pm, MW <m...@w.invalidwrote:
shybe wrote:
I have a send mail script on my site that.
The emails are recieved by gmail, and yahoo, but not to mail clients
like Outlook, Mail, etc...)
Is this a problem with the script, or is it something I must change in
php ini file?
Thanks in advance for any help.
here is the code. (im using it in conjunction with javascript for some
AJAX stuff)
if(!isset($_GET['action']))
{
die("You must not access this page directly!"); //Just to stop people
from visiting contact.php normally
}
/* Now lets trim up the input before sending it */
$name = trim($_GET['name']); //The senders name
$to = trim($_GET['maily']); //The senders email address
$place = trim($_GET['place']); //The senders email address
$subject = "you have recieved mail";
$headers = "From:$name";
$message = "{$name} deemed you worthy of receiving the following
information/exchange from Trumpet.\n\n Follow This Link {$place}";
mail($to, $subject, $message,$headers); //a very simple send
echo 'contactarea|<p class="sent">Article Sent!</p>'; //now lets
Thanks so much for the response. I tried your suggestion, and Its
still isnt working.
I also tried to remove the header variable,and still no luck.
As for the insecure code. I plan on securing. I'm just trying to get
the overall functionality to work.
Any other suggestions would be greatly appreciated.
best
update the "contactarea" div on the contact.html page. The
contactarea| tell's the javascript which div to update.
?>
It's not a problem with the mail() function if some e-mail clients are
getting it. Maybe something to do with your e-mail formatting:
$headers = "From: $name"; should probably be
$headers = "From: \"$name\" <$email>";
Also the code snippet as you posted would be very vulnerable to script
attacks, I suggest more secure code.
shybe wrote:
On Nov 29, 9:34 pm, MW <m...@w.invalidwrote:
>shybe wrote:
>>I have a send mail script on my site that. The emails are recieved by gmail, and yahoo, but not to mail clients like Outlook, Mail, etc...) Is this a problem with the script, or is it something I must change in php ini file? Thanks in advance for any help. here is the code. (im using it in conjunction with javascript for some AJAX stuff) if(!isset($_GET['action'])) { die("You must not access this page directly!"); //Just to stop people from visiting contact.php normally } /* Now lets trim up the input before sending it */ $name = trim($_GET['name']); //The senders name $to = trim($_GET['maily']); //The senders email address $place = trim($_GET['place']); //The senders email address $subject = "you have recieved mail"; $headers = "From:$name"; $message = "{$name} deemed you worthy of receiving the following information/exchange from Trumpet.\n\n Follow This Link {$place}"; mail($to, $subject, $message,$headers); //a very simple send echo 'contactarea|<p class="sent">Article Sent!</p>'; //now lets
Thanks so much for the response. I tried your suggestion, and Its
still isnt working.
I also tried to remove the header variable,and still no luck.
As for the insecure code. I plan on securing. I'm just trying to get
the overall functionality to work.
Any other suggestions would be greatly appreciated.
best
>>update the "contactarea" div on the contact.html page. The contactarea| tell's the javascript which div to update. ?>
It's not a problem with the mail() function if some e-mail clients are getting it. Maybe something to do with your e-mail formatting:
$headers = "From: $name"; should probably be $headers = "From: \"$name\" <$email>";
Also the code snippet as you posted would be very vulnerable to script attacks, I suggest more secure code.
depends on the receiving MTA. AOL silently drops "suspicious"
emails, for example.
bill This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Google Mike |
last post by:
I've got RH9 Linux with default PHP.
Is there a way to send email on Linux to an Exchange Server from PHP
and/or other tools when there is *NOT* SMTP access?
Has anyone figured out a way to...
|
by: Abhishek |
last post by:
I have a client list in my addressbook
I have to send all of them mails.
Is there a way in which i can read my addressbook entries and send all of
them a mail
I want all this functionality in C#...
|
by: dale zhang |
last post by:
Hi,
I write an asp.net web application. It has a “Contact Us” page, where users
fill in their email, subject and text and hit send. Then the email will go to
my hard coded yahoo email...
|
by: Nick Gilbert |
last post by:
Hi,
I'm writing a Windows Forms application in .NET and I need to send an
e-mail from it. As it's NOT asp.net, I don't have access to an SMTP
server so I will have to send the e-mail using...
|
by: Mike Caputo |
last post by:
I'm setting up an auto e-mailer in VB.NET to send daily reports to clients.
I have the main part of that all set, but there are a couple of things I'm
not quite sure on:
1) I'll be sending about...
|
by: Dennis |
last post by:
I am using the following code that I got from this newsgroup to start a
user's default e-mail editor and it works ok. However, I would like to
attach a file to the editor (like using word as...
|
by: cj |
last post by:
How can I get a button in VB to send the contents of a text box via
email in a manner similar to the "Send To\Mail Recipient" functionality
that you can select via right clicking a file in Windows...
|
by: Ibrahim. |
last post by:
Hello,
Im getting the following error when mail is sent from ASP.NET 2.0 website.
CDO.Messaging componenet is used for sending mail.
"
The message was not able to be transmitted to the SMTP...
|
by: luc.saffre |
last post by:
Hello,
the simplest way to launch the user's standard mail client from a
Python program is by creating a mailto: URL and launching the
webbrowser:
def...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| | |