473,507 Members | 6,459 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHPMailer On Behalf Of

Does anyone know how I can send an email using PHPMailer (or similar)
and have it send 'on behalf of' someone.

This is for a tell a friend feature on a website (I am trying to mimic
the way that the BBC website does it as I believe this will help with
the more strict spam filters). I know I could just send the email
directly from our sites email address, but that would stop the
recipient being able to reply to the friend sending the email.

I hope that makes sense!

Regards,

Rick

Sep 8 '06 #1
3 5858
NC
thehuby wrote:
>
Does anyone know how I can send an email using
PHPMailer (or similar) and have it send 'on behalf of'
someone.
There are things beyond PHP here. Your outgoing mail server must
permit this. Many hosting companies do not allow sending mail with
"From:" headers containing addresses that do not belong to the domain
being hosted.

If this is not a problem, there are plenty of examples at phpMailer Web
site:

http://phpmailer.sf.net/

Cheers,
NC

Sep 8 '06 #2
*** thehuby escribió/wrote (8 Sep 2006 04:24:10 -0700):
Does anyone know how I can send an email using PHPMailer (or similar)
and have it send 'on behalf of' someone.

This is for a tell a friend feature on a website (I am trying to mimic
the way that the BBC website does it as I believe this will help with
the more strict spam filters). I know I could just send the email
directly from our sites email address, but that would stop the
recipient being able to reply to the friend sending the email.
Since it is your web site the one that's actually sending the message, I'd
put your site's e-mail in the "From" field and the visitor's address in the
"Reply-to" field, along with a brief explanation.
--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
Sep 9 '06 #3
Thanks for the suggestions - I have gone with the Reply To option for
simplicity.

Very simple using PHPMailer - I doubt my host would have changed their
mail system settings for me!

Rick

Alvaro G. Vicario wrote:
*** thehuby escribió/wrote (8 Sep 2006 04:24:10 -0700):
Does anyone know how I can send an email using PHPMailer (or similar)
and have it send 'on behalf of' someone.

This is for a tell a friend feature on a website (I am trying to mimic
the way that the BBC website does it as I believe this will help with
the more strict spam filters). I know I could just send the email
directly from our sites email address, but that would stop the
recipient being able to reply to the friend sending the email.

Since it is your web site the one that's actually sending the message, I'd
put your site's e-mail in the "From" field and the visitor's address in the
"Reply-to" field, along with a brief explanation.
--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
Sep 12 '06 #4

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

Similar topics

1
2431
by: Daniel Loose | last post by:
Hi, a friend was so kind to host my php scripts. but when they use phpmailer (or other PHP mail facilities) to email e.g. to an invalid address, the returning error message appears in *my...
1
12568
by: Leszek | last post by:
Hi. I have problem with phpMailer 1.73 (windows version) After copying both class.phpmailer and class.smtp and also language file phpmailer.lang-pl to my php include directory im getting this...
3
2571
by: Leszek | last post by:
Hi. I have problem with phpMailer 1.73 (windows version) After copying both class.phpmailer and class.smtp and also language file phpmailer.lang-pl to my php include directory im getting this...
0
1406
by: SirShurf | last post by:
Hi, I am using a phpmailer class to send some forms over the email... And the problem is, that some ppl (especially problematic for me is the buyer....) getting the email as rough data (sorce...)...
2
4532
by: prasenjit2007 | last post by:
Hello, can u help me sending Email with attachments using the Class phpMailer. On the website I have a link to an html form in which I input the parameters with the names 1)from(textbox name)...
9
2417
by: Lucanos | last post by:
Hi All, I am currently using PHPMailer to send out a set of emails on the execution of a PHP Script (obviously). My problem is that the PHPMailer action is returning a "true" result each time...
5
2726
by: Gilles Ganault | last post by:
Hello To handle an occasionnal flaky ADSL connection, I updated the database that handles incoming calls to have a column that is set to NULL, and then updated to either Y or N depending on...
4
4910
by: mukeshrasm | last post by:
Hi! I want to use phpmailer class to send mail using smtp.I have downloaded the phpmailer and then i followed it's README file where it is mentioned that "Copy class.phpmailer.php into your php.ini...
0
4277
by: mukeshrasm | last post by:
Hi! I want to use phpmailer class to send mail using smtp.I have downloaded the phpmailer and then i followed it's README file where it is mentioned that "Copy class.phpmailer.php into your php.ini...
0
7223
marktang
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,...
0
7314
Oralloy
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,...
1
7030
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...
1
5041
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...
0
4702
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...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1540
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 ...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
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...

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.