473,563 Members | 2,735 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how do you force Received: variable in mail()?

With the help from this group, I was able to change my Return-Path parameter
seen in the full headers of email sent with mail().

Now I still see my userID in the parameter as shown here seen in my full
headers of my email sent.

Received: (from userID@localhos t) by mydomain.com
Any ideas?

Thanks again!
Jul 17 '05 #1
10 2628
"NotGiven" <no****@nonegiv en.net> wrote in message
news:XZ******** *********@bigne ws6.bellsouth.n et...
With the help from this group, I was able to change my Return-Path parameter seen in the full headers of email sent with mail().

Now I still see my userID in the parameter as shown here seen in my full
headers of my email sent.

Received: (from userID@localhos t) by mydomain.com
Any ideas?

Thanks again!


I am working on a new piece of mailer script, that will MX mail right into
the destination mail server.
(in between my scuba diving, I will finishit, the code is not hard, but
comming up with a good layout is)
This will address the problem, look for it on my site later.

--
Mike Bradley
http://gzen.myhq.info -- free online php tools
Jul 17 '05 #2
> "NotGiven" <no****@nonegiv en.net> wrote in message
news:XZ******** *********@bigne ws6.bellsouth.n et...
With the help from this group, I was able to change my Return-Path

parameter
seen in the full headers of email sent with mail().

Now I still see my userID in the parameter as shown here seen in my full
headers of my email sent.

Received: (from userID@localhos t) by mydomain.com
Any ideas?

Thanks again!

ok, new MX mailing script is done, you can find it here:
http://www.gzentools.com/snippetview...l&v=mxmail.php

--
Mike Bradley
http://www.gzentools.com -- free online php tools
Jul 17 '05 #3
thanks. I don't know enough about PHP to understand it all but it look
slike I might be able try to understand it.

I need to loop through names in a database and send an email to each
indivdually. I suppose I could send all names to an array and pass that to
the function, and add a loop/foreach.

Thanks again.
"CountScubu la" <me@scantek.hot mail.com> wrote in message
news:Qg******** *******@newssvr 27.news.prodigy .com...
"NotGiven" <no****@nonegiv en.net> wrote in message
news:XZ******** *********@bigne ws6.bellsouth.n et...
With the help from this group, I was able to change my Return-Path

parameter
seen in the full headers of email sent with mail().

Now I still see my userID in the parameter as shown here seen in my full
headers of my email sent.

Received: (from userID@localhos t) by mydomain.com
Any ideas?

Thanks again!


I am working on a new piece of mailer script, that will MX mail right into
the destination mail server.
(in between my scuba diving, I will finishit, the code is not hard, but
comming up with a good layout is)
This will address the problem, look for it on my site later.

--
Mike Bradley
http://gzen.myhq.info -- free online php tools

Jul 17 '05 #4
"NotGiven" <no****@nonegiv en.net> wrote in message
news:tc******** *********@bigne ws3.bellsouth.n et...
thanks. I don't know enough about PHP to understand it all but it look
slike I might be able try to understand it.

I need to loop through names in a database and send an email to each
indivdually. I suppose I could send all names to an array and pass that to the function, and add a loop/foreach.

Thanks again.

let me ask a question,

how many emails do you need to send, and are you doing this from a web page?

Reason I ask, is there is an easier way to do it, if this is a background
proccess.

--
Mike Bradley
http://www.gzentools.com -- free online php tools
Jul 17 '05 #5

Hi Mike,

Great scripts, I have been fooling with the first one all weekend. Neat
thing.
On this new one though I get this error ; See
http://pobox.com/~djb/docs/smtplf.html

It's about 'raw linefeeds' any help here ?

On Mon, 05 Jan 2004 01:29:55 GMT, CountScubula <me@scantek.hot mail.com>
wrote:
"NotGiven" <no****@nonegiv en.net> wrote in message
news:XZ******** *********@bigne ws6.bellsouth.n et...
> With the help from this group, I was able to change my Return-Path

parameter
> seen in the full headers of email sent with mail().
>
> Now I still see my userID in the parameter as shown here seen in my

full
> headers of my email sent.
>
> Received: (from userID@localhos t) by mydomain.com
>
>
> Any ideas?
>
> Thanks again!

ok, new MX mailing script is done, you can find it here:
http://www.gzentools.com/snippetview...l&v=mxmail.php

--
Mike Bradley
http://www.gzentools.com -- free online php tools


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Jul 17 '05 #6
"malcolm" <ma*****@mbrown ell.com> wrote in message
news:op******** ******@news.eas t.cox.net...

Hi Mike,

Great scripts, I have been fooling with the first one all weekend. Neat thing.
Thank you

On this new one though I get this error ; See
http://pobox.com/~djb/docs/smtplf.html

It's about 'raw linefeeds' any help here ?


sorry, I guess, I should go clean up some of my stuff.

on everything in my script that you are using, when you find a \n, replace
it with \r\n

--
Mike Bradley
http://www.gzentools.com -- free online php tools
Jul 17 '05 #7
That was it, thanks Scub, you rock.
I like your site too.

On Mon, 05 Jan 2004 21:40:02 GMT, CountScubula <me@scantek.hot mail.com>
wrote:
"malcolm" <ma*****@mbrown ell.com> wrote in message
news:op******** ******@news.eas t.cox.net...

Hi Mike,

Great scripts, I have been fooling with the first one all weekend.

Neat
thing.


Thank you

On this new one though I get this error ; See
http://pobox.com/~djb/docs/smtplf.html

It's about 'raw linefeeds' any help here ?


sorry, I guess, I should go clean up some of my stuff.

on everything in my script that you are using, when you find a \n,
replace
it with \r\n

--
Mike Bradley
http://www.gzentools.com -- free online php tools


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Jul 17 '05 #8
I downloaded a simple mailing list tool from hotscripts and here's the meat
of the sending engine with your siggestion added to the mail parameters:

$headers = "From: \"".FROMNAME."\ " <".FROMEMAIL."> \r\n";
$email['fromemail'] = "me@mydomain.co m";
while ($row = mysql_fetch_arr ay($res2)) {
$email_addr = $row[0];
$fullmessage = $_POST[message];
mail("$email_ad dr", "$_POST[subject]", $fullmessage, $headers, "-f
{$email[fromemail]}");
}
echo "email sent!";
let me ask a question,

how many emails do you need to send, and are you doing this from a web page?
Reason I ask, is there is an easier way to do it, if this is a background
proccess.

--
Mike Bradley
http://www.gzentools.com -- free online php tools

Jul 17 '05 #9
"NotGiven" <no****@nonegiv en.net> wrote in message
news:zV******** **********@bign ews1.bellsouth. net...
I downloaded a simple mailing list tool from hotscripts and here's the meat of the sending engine with your siggestion added to the mail parameters:

$headers = "From: \"".FROMNAME."\ " <".FROMEMAIL."> \r\n";
$email['fromemail'] = "me@mydomain.co m";
while ($row = mysql_fetch_arr ay($res2)) {
$email_addr = $row[0];
$fullmessage = $_POST[message];
mail("$email_ad dr", "$_POST[subject]", $fullmessage, $headers, "-f
{$email[fromemail]}");
}
echo "email sent!";

by the way, there needs to be quotes around the fromemail item in the -f
line

ok, I take it you are filling out a web page and waiting for it to send to
each user.

I would modify my mx mail script to relay throug local host and loop throug
after the connection is made
--
Mike Bradley
http://www.gzentools.com -- free online php tools
Jul 17 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
12353
by: NotGiven | last post by:
I am sending email using the mail() function on a hosted account. I am trying to override the RETURN-PATH variable but it is not working. The server keeps overriding the variable I put in. Here's what I have: ..... $headers = "From: me <me@mine.com>\r\n" $headers .= "Return-Path: me <me@mine.com>\r\n"; .....
1
3843
by: a c s | last post by:
Hi there, my problem is as follows: When emailing a file using PHP 4.0.6, the attachment received is an empty "attachment.txt" file instead of the actual file I attached. Any suggestions why this might be? (php from a kindly newbie site enclosed) Many thanks, Alan.
0
1853
by: dont bother | last post by:
Hi, I am a new bie experimenting with python. I have this piece of code to parse the received headers from emails. However, when I run with a file as an argument it skips lines like: 1, 3, 5 etc... I see why is this so : Its because of the msg=mbox.next() But I dont know how to fix this: I mean I dont know how I can stay at the current one...
53
7322
by: Bill | last post by:
Hello Programmers, I am looking for either Java Script (OR HTML etc) to DEFEAT Pop-up Stoppers e.g It will bring up a window that will LOOK like a Pop-up FEEL like a Pop-up Allow a name and e-mail entry BUT is not affected by Popup Stopper, PopUp Killer etc
5
1540
by: clintonG | last post by:
I haven't written any mail handlers using .NET at this time. I need to know however if there is a failsafe methodology supported by the classes in the framework if it will be possible to send mail through an ASP.NET form that will force a delivery receipt to be returned and if there is then a method to over-ride any mail client that allows the...
1
3891
by: Mark A | last post by:
DB2 ESE 8.2.3 (FP10) for Linux We are experiencing a connection hang of 10 - 15 minutes in the following HADR and automatic client reroute scenario: 01 server is primary database 02 server is standby database a. applications connected to database on 01 server b. shutdown 01 server
0
1038
by: poobalan | last post by:
Hi, I have developed a application for my compnay.. the process of the application is.. 1) it simply read the mail from Mailbox(Outlook) and stores it to Sql Data base. 2) Using the application i have read the recevied mail from database... then process the mail finaly.. i have reply the mail...(If u do like this means.. the...
2
2702
by: venutaurus539 | last post by:
Hi,, How can we access the time of message received ( UTC time) of an outlook mail in python? As far as I know the time which it displays in the mail is not the exact time... this UTC time will be present in MIME Header of an outlook mail. Any Help is appreciated..and thanks in advance,, Venu.
0
1143
by: asdffdsa | last post by:
HI, i m making a application ,in which i wants to received mail which received in outlook express using our application ,also i need to support that i can also take there attachements while my outlook is not opening, This code shoud be in vb.net. if possible mail me on my mail Id. plz reply me . thankx in advance. amit,
0
7580
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8103
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7634
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7945
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5481
isladogs
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...
0
3618
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2079
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1194
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
916
bsmnconsultancy
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...

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.