Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Adding IP Address Of The Sender When Sending Mail Through MailI()


How can we add the IP address of sender in the Headers of the Email address? if we use the mail() to send an email, the receviing person will get the IP address of the server in the header of the mail. but i want that he should get the IP address of the Sender as well.




View Complete Forum Thread with Replies

Related Forum Messages:
Specify The Sender Email Address In Mail Function.
i can i specify the sender email address in mail function.

View Replies !
Mail Form - Sender's E-mail Address
I am less than a newbie when it comes to PHP. I recently picked up a book and I am trying to get through. So please keep that in mind when you post a reply.

I have a mail form that is working great except that when it sends me the e-mails, it does not want to put the sender's e-mail address in the "From" field of the e-mail. The book that I have simply says that there is not a foolproof way to fix this. I say, that is why I bought the book, but it still doesn't explain it.

If you know a workaround for this little issue I would appreciate your help. I tried searching this site for a similar post, but I am must not be typing the right question, 'cause I ain't finding an answer.

View Replies !
Sending Mail To Multiple Users (which Can Be Selected By The Sender)
I'm looking for a script to email a contact form to multiple emailadresses but that the user can choose to which people the email is being send,

like for example: the user only sees a few names with checkboxes and by selecting a few of those checkboxes (with only the nicknames of the recipient(s) viewable for the user NOT the emailadress) they can select to which people they would like to send that Email.

View Replies !
PHP Mail Not Sending Mail To Itnernal Email Address
Running a PHP mail script on Linux which has Exchange as the mail
server. The script does not send mail to any internal email address but sends
it to any other address outside its domain!

View Replies !
Using The Same Email Address For Both Sender And Receiver
I've seen sites where a user A fills out a form which send an email to user B. User B replies to an address like chatroom@site.com, and user A can reply to that same email address. However, user C,D, etc. also goes through this same process, and they all use the email chatroom@site.com.

All emails end up to the right person, however, presumably because there's an identifier in the subject line (e.g., [ID=34632]) that forwards the email to the right person. How do you set up this kind of system? Where can i go to look up more details on something like this?

View Replies !
Forward Email, Change Sender Address
Is there anyway I can set up a personal 'remailer' type of thing
on my domain ?

I can not email a friend at his workplace because his company
have put a 'block' on emails from my work address (the companies
we work for are considered rivals) - I am after a way to
'bounce' or forward an email, so my originating address isn't
shown.

I have tried email forwarding (in CPanel) using addresses set up
in my domain but when they forward, the original sender is
shown, therefore the block applies.

I have also tried using Bigfoot but again, the original sender
is shown.

Is there any way, using PHP or otherwise, that I could somehow
receive a message sent to an address in my domain, and forward
it on with a different "from" address ? (There would only be 1
specified address that I would want to forward on, to prevent
abuse!)

i.e.

from xxxx@company1.com => xxxx@mydomain.com, this then forwards
the original mail but from xxxx@mydomain.com =>
xxxx@company2.com

Unfortunately webmail isn't an option as we don't have web
access at work, and it has to be sent through the work Email
system, Outlook.

View Replies !
PHP Is Not Properly Passing The Sender's Address To Sendmail.
for some reason it seems PHP is not properly passing the sender's
address to sendmail. It does not matter whether I add "From" as header,
"nobody@new" is always taken as originating addres (be it return-path,
from or sender).

sendmail logs the following line

SMTP error from remote mailer after MAIL FROM:<nobody@new>

Is this due to a wrong sendmail configuration or would I need to change
something within PHP?

View Replies !
Can You Use PHP To Keep Sending Junk Email Back To The Sender
I once had someone send me SEX junk mail each week, using a linux program I
multiplied it about four thousand times then bounce it, it took about half
an hour or so to go out on 52K dial up, but it choked his email box, I think
the joke exposed him self to the country not long later. Just goes to show
my action did work, my (old) ISP was not happy, I told them were to go and
closed down my account.

View Replies !
Mail() & Sender.
I have a script that sends and email contact form back to an e-mail address. I have just changed over servers and have noticed that when i get an e-mail sent to me from the contact form it has a Header named Sender with the address of my server rather than and e-mail address i specify. As i use several other scripts that send e-mail out to the browsers i wanted to know whether there was anyway of changing this Sender: field??
I've tried the ones listed below:
Reply-To:
X-Sender:
Return-Path:

I thought maybe this could be to do with the way php has been setup and something within php.ini.

View Replies !
How To Send E-mail With Different Sender Name?
When I used PHP to send email, the sender will always be the server name.(For example: ipl.cccu.com) Can I do something to send the email as different sender?

View Replies !
Made A Mail Sender
ive made a mail sender and its not working it is saying: Code:

View Replies !
Mail() Has Wrong Sender
Is there something better than using mail()? On both of my web sites that have a mail form, when users send mail the recipient sees it as coming from the site, not from who's in the from: field. Code:

View Replies !
Use A Script That Has A Mail() Function And The Address Is To An Address Of The Same Domain As The Site
I just moved my php site to a new host. The previous host and the new one are both running the PHP 4.3.11. The sendmail path is the same.

If I use a script that has a mail() function and the address is to an address of the same domain as the site, it works ok. If it is to an outside address, it disappears. Though it returns it was a successful send.

View Replies !
The Sender Of This Message Could Not Be Verified By Sender ID.
sendmail_from me@localhost.com me@localhost.com
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost

This is the php set up of the server.

When I used the mail() send an e-mail to my hotmail account, I got this error message. "The sender of this message could not be verified by Sender ID."

1) The set up shows SMTP is using the localhost, so why I got this problem? Does it have to do with the server set this "sendmail_from me@localhost.com me@localhost.com" (that is the exact value the server administrator leaves it.)? Code:

View Replies !
Mail() Bounces To Server Address Instead Of From Address
All email sent from php mail() that bounces is being returned to my servers admin email address instead of the "From" or "reply-to" address.

What needs to be put in my header code to ensure that this does not happen?

View Replies !
Sending Mail: Choice Between Sending Receipt, Or HTML Formatting
I'm using PHP's mail function to send out a message via email.

I would like for this email message to send a receipt when read as well as send an HTML formatted email. Both aspects are important to me.

I know this is a product of the mail header. This is the format I currently have:

mail(to, subject, body, "From: name <email>
Disposition-Notification-To: name<email>
Content-type:text/html;charset=utf-8");

This prompts the email program to send a reciept, but the email message is not in the HTML format, and even contains "Content-type:text/html;charset=utf-8" at the top of the body.

If I switch the order to this format:

mail(to, subject, body, "From: name <email>
Content-type:text/html;charset=utf-8
Disposition-Notification-To: name<email>");

This sends the email with HTML formatting but does not prompt the sending of the receipt. I also get "Disposition-Notification-To: name<email>" at the top of the email message.

This tells me there is a problem in the transition between the headers, which currently is "".

What am I doing wrong?

View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 501 5.5.4 Invalid Address
I receive this error:


PHP Warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in D:clientsebiblecommentary.comconcordia-seminary.caconcordia-seminary.ca\_demo
egister.php on line 464

Both of my mail() uses fail, and I'm not sure why. I've followed the same syntax before on this my server and not had a problem.

My code is below: ....

View Replies !
Ip Address And Adding Style In Php ?
1. how do i get the ip address of the user visiting a page ?

2. echo "<span><pre>  $row[0]      $row[3]    This link worked for $row[1] out of $total people.  DID THIS LINK WORK FOR YOU ? <a href='worked.php'>YES</a>      <a href='notworked.php'>NO</a> </pre> </span>";
echo "<br>";

i want the output above display text with gray background color...how ?

View Replies !
Php Mail() Function Doesn't Send To Pop3 Mail Address
I'm writing a registration script for een webhosting company but the mail() function i used works only for hotmail addresses and not for pop3 email accounts, it also works for other not pop3 email accounts, does any one know what i should do to make this work. I used the same method before on an other server and there it worked perfectly.

View Replies !
Sending Users' IP Address.
I'm currently using a php form that submits information that is declared in the html <form> tags. The PHP also has pre-established variables for the use of the POP3 mail servers, and I was wondering if there was a way to also send the IP address of the user when they click submit. The <form> is as follows: Code:

View Replies !
Email Sending From Address
I am using a script to send an email to me whenever someone registered in my custom make PHP script site. The problem is I need this script to send the mail where from address should be the actual users address (i.e. if email@example.com register a new account I need this system to send the following mail that should look like coming from email@example.com

$FromName = $Email;
$ToEmail = $listmail;
$Message = "
Please subscribe me

User Name : " . $UserName . "
Mailing : " . $Mailing . "
Name : " . $CustomerName . "
Email : " . $Email . "

View Replies !
Email Sending From Address To Be Actual Sender's
I am using a script to send an email to me whenever someone registered in my custom make PHP script site. Following is the extract of the email sending function of my code.

The problem is I need this script to send the mail where from address should be the actual user’s address (i.e. if marcel34@hotmail.com register a new account I need this system to send the following mail that should look like coming from [email]

$FromName = $Email;
$ToEmail = $listmail;
$Message = "
Please subscribe me

User Name : " . $UserName . "
Mailing : " . $Mailing . "
Name : " . $CustomerName . "
Email : " . $Email . "

.....

View Replies !
Sending HTML Mail To Outlook Express With Mail()
I'm sending out an HTML mailer using the mail() function in PHP. I'm appending all of the headers to the message. This message displays correctly in Hotmail, Outlook 2000, and even Mac's OSX mail client. But, for some reason, Outlook Expess (on Win XP & OSX) displays the HTML code and doesn't render it.

If, however, the recipient copies the HTML code and composes a new HTML message in Outlook Express, it gets sent correctly.

This particular user is also getting other HTML mailers that display correctly, so I know that the client is capable of accepting HTML mail.

I'm led to believe that PHP's mail() headers are not being interpreted correctly. In fact, they appear as the first 3 lines in the body of the message when viewed in Outlook Express. OK, here are some samples to tie this all together: First, the mail() code I'm using: PHP Code:

View Replies !
Sending Mail In Omni HTTPd With Mail()
Whenever I try and use the mail function I get a "Failed to Connect" error. I'm running PHP4.0, Omni Httpd 2.06 on Win98. Is there something else I have to do to enable email? I know if worked before on PWS, but I switched because I couldn't get PHP4 to run under PWS. Any help is greatly appreciated.

View Replies !
Sending Mail Without The Mail Client Popping Up
I was wondering how to send a mail without the mail client popping up to the user.

I want to send a mail to myself, when a user pushes a button on my homepage. Any ideas?

View Replies !
Mail Form Not Sending Mail - Server2003
I am trying to test a simple feedback form. I have php 5.0.3.3 on my dev
Windows server 2003. SMTP is working fine, as we all use it to send mail
from. PHP works fine as well, but I just cant get mail sent by php, although
no errors are reported.

Do I understand it correctly that this simple script should send me a mail?
This is just to test that it works.

<?php
mail('me@whatever.com', 'My Subject', 'message');
header( "Location: http://webserver/message_sent.htm" );
?>

Okay, the " Location: http://webserver/message_sent.htm" comes up fine, and
"<?php phpinfo() ?>" also works fine. SMTP allows relay from my subnet and
does not need authentication.

View Replies !
Mail() / Sendmail Sending Mail As Spam
Wondering if anybody knows why when sending mail through my local sendmail program using the PHP mail() function; emails either do not reach the destination, or register as spam? Prime example is: h0tm@il addresses never receive the email, gmail addresses consider the email to be spam, and my workplace receive the email about 1 hour after the program finishes.

Could it be a problem with my ISP? I am using Fedora Core 6, PHP 5 and Apache 2. Or test it yourself.. just fill out the form with some rubbish and it should send an email saying you've registered.. maybe you can figure out where I am going wrong by looking at the headers? http://aaronweb.no-ip.com:6969/?p=2

View Replies !
Sending Mail To Hotmail Using The Mail() Function
I have been doing some research into how to send mail to a Hotmail address using the mail() function provided in PHP, in previous posts I may have been wrong in mentioning that you need to add your mail server to the hotmail PostMaster website using Smart Network Data Services (SNDS), after doing some research I have found that in order to send e-mail to a Hotmail address you need to add/ask your host to add an SPF record to your domain.

What is SPF?

Well, SPF is a protocol used to eliminate forged e-mails, much like SSL certificates help eliminate phising websites. Microsoft use the SPF record against the SenderID Framework that they have in place.

How do I go about obtaining an SPF Record?

Easy! use the Microsoft wizard found at:

http://www.microsoft.com/mscorp/safety/content/technologies/senderid/wizard/

to generate a unique SPF record for your domain, then add it to your DNS server, or ask your web host to do this.

I manage my own DNS server, how do I add an SPF record to a domain?

To begin, open the DNS MMC from the Administrative Tools menu of your Windows Server 2003 system. Next, find the domain that will host the SPF DNS lookup record. 

Highlight the folder for the domain, and select Other New Records from the Action menu. You can also access this menu by right-clicking the domain folder.

The resource Record Type dialog box will be displayed. From the Select a Resource Record Type area of the screen, scroll down the list and select Text (TXT) from the list.

Click Create Record. This will bring up the New Resource Record dialog box to appear. This is where you paste the SPF record generated by the above website

----------------------------------------------------------------------------------------------------------------------------------
I hope this helps, I have tried it myself and e-mails went straight to my inbox (not junk mail). Would also appreciate feedback if this works for other providers such as Yahoo! etc as I have not tried it with them

Give me your feedback on how it works for you, also if it works possibly make this thread sticky as I'm sure it will resolve many problems for people out there who are denying access to people who have public email addresses.

View Replies !
Mail() Function Doesn't Seem To Be Sending MAIL FROM: Properly
I'm trying to send an email using the mail() function. I've carefully made use of the ini_set(SMTP, "mail.my.server") function to set my SMTP server and also to set my From: address. I'm still getting a "Relaying not explicitly allowed: fakeemail@fakedomain.com" response from the server however, when I try and set a recipient who is outside of my own
domain. This makes my think that the From: address is somehow not getting sent to my server properly or that I'm pointing at the wrong server.

The confounding thing is that it was working for a while and I don't think I changed anything and it just stopped.

I'm running these PHP pages for a client off of one of those cheap hosting services, I think it's called 1dollarhost.com or something, although I can't remember at the moment.

Has anyone else had trouble with this or found a solution?

View Replies !
Shopping Cart Adding Up Multible Accesories And Sending Data With Price
I am trying to build a shopping cart with a base product that you can buy at a set price or add accessories to, now each accessory has a price. The customer chooses the product by selecting a form field that has three or four of close to the same type of accesory but each has a different price now I want to be able to send the product name and price to the form processor that will then calculate the price an give the customer to buy the configured product.

View Replies !
Sending Mail Otherthan Mail()
My server admin has blocked the mail() due to some spam problems. I
need to send emails using php. Can anyone guide me to the best method
of sending emails using php without using mail().

If there is any tweak to be done at the server level I will be able to
convince the admin. The server has linux Enterprice edition 3 with php
4.3.11 and cpanel/whm.

View Replies !
Mail Function Not Sending Mail...
I used PHP's mail function to mail a simple contact us type form to an admin person. Well, I have need of doing it with my current job. I created a simple contact us form and all it has to do is email it's contents to me (for testing of course). Code:

View Replies !
Validate E-Mail Address
I was wondering how you can check for a character in a string. For instance, if I have someone fill out their email address, how, using PHP, can I make sure it has an '@' in it?

View Replies !
Validate An E-mail Address
I am trying to validate an e-mail address using this expression

[A-Za-z0-9]@[A-Za-z0-9].[A-Za-z0-9]

View Replies !
From Address Is Not Coming In The Mail.
i am sending a mail using a php mail() function. But reciept is not able to see , who sent the mail , ie the correct from address is not coming in the mail, instead some other address related to IP Address is coming.

View Replies !
Variable E-mail Address
I wish to be able for my users to fill out a form that e-mails to different users depending on the name of the person on a drop down menu, so if they want to e-mail brian, they would choose his name on the list then the value of the name would be his e-mail.

View Replies !
Passing E-mail Address
If I am passing an e-mail address through a URL, what must I be careful for? I obviously cannot pass the e-mail address as is through the URL (i.e: www.website.com/test.php?em=john@doe.com) as is, I need to use str_replace to replace the @ with %40 (i think?).
Something like: Code:

<a href="test.php?em=<?php echo str_replace("@", "%40", $email);?>">TEST ME!</a>

Is this all I need to worry about?

View Replies !
Checking That A String Is An E-mail Address
I've been looking for a simple way of checking that a string is an e-mail
address. I don't need to check if the address exists, just if the format of
the string matches. There seem to be lots of different methods, can someone
suggest which is the best, with justification. I'm not looking for total
accuracy, I'd much rather let a few false positives through than get any
false negatives.

View Replies !
Regular Expression - An E-mail Address
being not very good at php regular expression, could anyone help me giving
the regular expression for:

- an e-mail address,
- a website address (including sub-domain if possible.

View Replies !
PHP Mail Script To Bad Address Not Bouncing
I'm trying to create a PHP script to send mail to a list of addresses.
I'm sending mail okay, because the messages arrive in an account that I
can check, but messages to a known bad address aren't being bounced
back to the sending address.

Here's the line of code I'm using:

$mailok = mail("me@goodaddress.com,me@badaddress.com","this is a test",
"this is a test", "From: me@sendaddress.com");

I receive the message at me@goodaddress.com just fine. If I send a
manual message to me@badaddress.com, the message bounces. If I manually
bounce the message that I received at me@goodaddress.com then it
bounces back to me@sendaddress.com.

I need to figure out why messages to me@badaddress.com sent by the PHP
script aren't bouncing back to me@sendaddress.com.

View Replies !
Show W-mail Address As An Image
I have a guestbook and intend to show the e-mail adress of postes,
but to avoid span the e-mail must be shown as a png image.
The e-mail is called from a database, and must be converted to an image.

View Replies !
Problem: Mail() With Subdomain In TO Address
When using mail() with a TO address that includes a subdomain, as in
foo@sub.domain.com, the intended recipient never receives the mail.

I'm not sure if this is a problem with mail() or a misconfiguration of
the mail program (postfix on dev server, qmail on production server),
but foo@sub.domain.com doesn't receive any mail, while foo@domain.com
gets it every time.

Any thoughts will be greatly appreciated!

echo 'mail() test - WITHOUT SUBDOMAIN<br />'
// this works fine
mail(
'foo@domain.com',
'this is the subject',
'this is the message',
"From: bar@domain.com
"
);

echo 'mail() test - WITH SUBDOMAIN'
// this doesn't work
mail(
'foo@sub.domain.com',
'this is the subject',
'this is the message',
"From: bar@domain.com
"
);

View Replies !
How To Send Mail, That Nobody Sees The Address
i'd like to send an email from a html form,
but i want nobody to see the address, where i send it.
how can i acomplish this with php ?
is a reference to a function in another document enough ?
sending an email may last some time.
can anybody see the address in that time ?

View Replies !
Mail() Problem - Not Working With POP Address?
I've been trying stuff for a while now, and I just can't find a way to way to fix it. I have this function to send email to a list of email contained in a MySQL database. Here it is: PHP Code:

View Replies !
Send Mail To Multiple Address
I have a very big problem.
I must send a single mail to multiple receivers. The number of
receivers are very big: approximately 6000 users, but this number
increase each year.
I find a lot of suggestion: insert all e-mail address (or part of them)
in the field BCC.
But I use a hosting server, for this reason I don't know if this
solutions is possible.
I can use my computer, but I don't know is SMTP of my ISP can support
this kind of feature.

View Replies !
How To Block A Specific E-mail Address?
My website has a mail form run by PHP, and I'm getting a lot of e-mails
sent through it that appear to contain my website's domain after the
'@', though I didn't send them. The e-mails contain no other content,
so I assume it's some kind of spam bot.

There must be a line of PHP that I can add that will basically say, "if
the e-mail address contains '@mydomainname.com', do not send."

I tried looking at php.net, but I can only find scripts that check if
the address is a valid one, which isn't good enough. I need to be able
to block a certain e-mail domain.

View Replies !
PHP Mail() Function (address That Does Not Exist)
I have a website for sending basic emails, it uses the mail() function, when someone sends an email to an address that does not exist, it sends ME an email, how can i make it return it to them?

View Replies !
Find A Valid Mail Address
What ever may be the mail address the mail function sends the mail and returns true.Even if the mail address does not exists? for ex. mail(z@kk.com,"sub","mes") assume that z@kk.com does not exists.How to find out that z@kk is not a valid mail address?

View Replies !
Change The From Address In Th Mail() Function
I have been trying to find a way to change the name of the senders email when using the mail() function. I would like it to change the senders email address to read something like "Company Name Inc".

The problem is when I set the $from = "From: Company Name Inc"

I get the email with the from being: Company@ourserver.comName@ourserver....@ourserver.com

is there anyway I can change this?

I have found that if I change it to CompanyNameInc@theCompany.com

it sends the email with the from being:

CompanyNameInc@theCompany.com

I would really like to have it read: "Company Name Inc" period I want to remove the @whatever.com all together.

View Replies !
E-mail Address Restrictions Code
I'm having a little trouble with a code I'd like to implement into a script. I've looked around and found some answers, but not really a complete answer to what I was looking for. What I'd like to do is only allow people whose e-mail address matches a certain pattern to be able to create an account. Now I know the code is suppose to go something like this: Code:

View Replies !
Execute A Script When An E-mail Is Sent To A Specific Address
Im trying to execute a php script when an e-mail is sent to a specific address. Im using a .forward file in my root directory which consists of the following: PHP Code:

View Replies !
Hiding Email Address From Mail 'To' Column...
i have an application where i need to send an email within the system. i should not display the email address anywhere in the email. as of now, the way it shows up(on the recipients computer) when i send the email is. Code:

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved