473,569 Members | 2,991 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 5872
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
2433
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 friend's email inbox* (recipient - or sender? - is "wwwrun" of my friend's machine). I guess you understand which problem I mean. To fix the problem, I...
1
12570
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 error when I'm trying to use phpMailer: Mailer Error: Language string failed to load: recipients_failed Does anyone konw the reason for this...
3
2577
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 error when I'm trying to use phpMailer: Mailer Error: Language string failed to load: recipients_failed Does anyone know the reason for this...
0
1413
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...) here is the emal itself as they get it (the headers are below...) Code: X-Tour4Less.co.il Mailer: MIME-Version: 1.0
2
4543
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) 2)To 3) Subject 4) Message5) File input(name abc) - to be sent as an attachment. This form calls the Class PhpMailer through another form with the...
9
2421
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 it is executed, but not every email generated by this action is actually being sent. My account is hosted on HostMonster, and is pointed at the...
5
2731
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 whether a PHP CLI script was able to send a notification e-mail to support. To send an e-mail through out ISP's SMTP server, I'm using PHPMailer...
4
4921
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 include_path. If you are using the SMTP mailer then place class.smtp.php in your path as well", but I don't know where to paste the class.phpmailer.php...
0
4283
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 include_path. If you are using the SMTP mailer then place class.smtp.php in your path as well", but I don't know where to paste the class.phpmailer.php...
0
7703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7983
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...
0
6287
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5223
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3657
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2117
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
1228
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
946
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.