473,385 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to use mail( ) with out asked for "RECEIVE FIRST BEFORE SEND" Message

nallinattu
When I use mail ( ) function correctly, I am prompted to "RECEIVE FIRST BEFORE SENDING " and hence I authenticate by receiving mail first by a mail client !!. Then mail ( ) works . How to make it work with out giving such prompt to me.I use the mail ( ) function correctly and it works , otherwise.

Example of what I used :-

<?php
mail("he_she_it@yahoo.com",
"How Are You, Pl. Offer Solution to",
"Will It Work with out telling me RECEIVE FIRST BEFORE SENDING", "From: "i_we_you@rediffmail.com"\r\nReturn-Path: "iweyou@rediffmail.com"\r\n");
?>
Jan 8 '07 #1
7 4508
ronverdonk
4,258 Expert 4TB
You misplaced the double quotes areoung the from and reply-to: you don't need thrm. The carriage returns/newlines were tehrefore also not recognized. This works:[php]<?php
mail("he_she_it@yahoo.com",
"How Are You, Pl. Offer Solution to",
"Will It Work with out telling me RECEIVE FIRST BEFORE SENDING",
"From: i_we_you@rediffmail.com\r\nReturn-Path: iweyou@rediffmail.com\r\n");
?>[/php]
Ronald :cool:
Jan 8 '07 #2
You misplaced the double quotes areoung the from and reply-to: you don't need thrm. The carriage returns/newlines were tehrefore also not recognized. This works:[php]<?php
mail("he_she_it@yahoo.com",
"How Are You, Pl. Offer Solution to",
"Will It Work with out telling me RECEIVE FIRST BEFORE SENDING",
"From: i_we_you@rediffmail.com\r\nReturn-Path: iweyou@rediffmail.com\r\n");
?>[/php]
Ronald :cool:
O Lo ! It did not work again. I got message below , but when I started E mail client and made it authenticate outside PHP , the mail ( ) worked ! Strange !!

The error I got was :-
Warning: mail() [function.mail]: SMTP server response: 553 sorry, Authentication failed or timed out. Please do get messages first to authenticate yourself.(#4.4.3) in C:\Documents and Settings\sam\Desktop\LOCAL SERVER\again\nattumail.php on line 5
PHP Warning: mail() [function.mail]: SMTP server response: 553 sorry, Authentication failed or timed out. Please do get messages first to authenticate yourself.(#4.4.3) in C:\Documents and Settings\sam\Desktop\LOCAL SERVER\again\nattumail.php on line 5
Jan 8 '07 #3
ronverdonk
4,258 Expert 4TB
Must be a problem with your definitions here. Please show the relevant php.ini definitions so we can see if anything is wrong there.

Ronald :cool:
Jan 8 '07 #4
Must be a problem with your definitions here. Please show the relevant php.ini definitions so we can see if anything is wrong there.

Ronald :cool:
Here are the lines:-

[mail function]
; For Win32 only.
SMTP = f3smtp.rediffmail.com
smtp_port = 25

But tell me with all suspected errors, how can it work when authenticated by E mail client running outside of PHP !!
Jan 8 '07 #5
ronverdonk
4,258 Expert 4TB
What is your
Expand|Select|Wrap|Line Numbers
  1. ; For Win32 only.
  2. sendmail_from = userid@thatsite.com 
definition?

Ronald :cool:
Jan 8 '07 #6
What is your
Expand|Select|Wrap|Line Numbers
  1. ; For Win32 only.
  2. sendmail_from = userid@thatsite.com 
definition?

Ronald :cool:
Hello ! The answer is very brief , I am unable to make out what U want me to do ? Shd I creatre an extra line , then where to put the authentication password in php.ini ?
Jan 9 '07 #7
ronverdonk
4,258 Expert 4TB
I was referring to another mandatory definition in php.ini. When you have not done that, I suggest that you fill that in with your email address and see if that gets things going. I think it is better to define things in php.ini properly, so you don't run into an unexpected non-documented error because a definition is missing.

Ronald :cool:
Jan 9 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Erik T. Nomad | last post by:
I've created a link that will enable the reader of any page on my website to click it, enter an e-mail address, and have it arrive in that inbox with a hyperlink to the site. However, I'm...
3
by: Jason Steeves | last post by:
I need to replicate the code that is found in Internet Explorer File->send page by e-mail. Can someone tell me how to replicate this code or just call this function. I need to program it to be...
3
by: Greg Arnold | last post by:
I have created a "Send To" application that allows users to rename files. The user selects files in Windows Explorer, right clicks and selects Send To > File Renamer. The problem is when a large...
1
by: stax | last post by:
Hello, I would like to add a Send Feedback feature to my application. Does anybody know or easy way to do this, any applications that do this, articles, samples or anything else that could give me...
2
by: chuckdfoster | last post by:
I am getting a "Could Not Access CDO.Message Object" Error when I try to use the following code to send an email via ASP.NET. When I run this on one machine it works, on another one it doesn't. ...
3
by: HoustonComputerGuy | last post by:
I am working on getting my web applications moved to .Net 2.0 and am having some problems with System.Net.Mail. I get the following error when sending the mail: System.Net.Mail.SmtpException was...
15
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...
6
by: Kurda Yon | last post by:
Hi everybody, I have a problem with the function "mail". It returns "true" but supposed recipients receive nothing. My code is as follows: $to = $form; $subject = "E-mail Verification";...
1
by: =?Utf-8?B?VGFsYWxTYWxlZW0=?= | last post by:
i have facility in my website which sends an e-mail to the cleint's inbox..... i am getting a problem when ever i sends an e-mail.. i tried with Hotmail and Yahoo, e-mail goes to the "Junk Mail"...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
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...
0
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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.