473,406 Members | 2,769 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,406 software developers and data experts.

i damaged a "Roll my own emailer"

This is the header of the email I am trying to send. My 'ReplyTo' is
not working as planed/

I tried googling thsi and did not get a good answer. I examed the code
before, as suggested and tried the example below. No joy

require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "smtp.xxxxxxxx.com"; // SMTP server
$mail->Username = "da*********@xxxxxxxx.com";
$mail->Password = "ironnail";
$mail->FromName = "Dave Lemke <dl****@xxxxxxxx.net>";
$mail->From = "Dave Lemke <dl****@xxxxxxxx.net>";
Line 34 $mail->ReplyTo = "dl****@xxxxxxxx.net hc******@goodloops.com
ag*******@hotmail.com da*********@xxxxxxxx.com";
$mail->Cc = "da*********@xxxxxxxx.com";
$mail->Sender = "ag*******@xxxxxxxx.com";
$mail->ReturnReceiptTo = "da*********@xxxxxxxx.com";
$mail->AddAddress(" {$_SERVER['argv'][1]}");


$mail->ReplyTo = "dl****@xxxxxxxx.net", "cr*****@gosodloops.com", "
ag*******@hotmail.com", " da*********@xxxxxxxx.com";
Gives me this error:
Parse error: parse error, unexpected ',' in /root/tffwebsite/
membershipmailer/mailsender.php on line 34

$mail->ReplyTo = "dl****@xxxxxxxx.net" " hc******@goodloops.com"
"ag*******@hotmail.com" "da*********@xxxxxxxx.com";
Gives me this error:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /
root/tffwebsite/membershipmailer/mailsender.php on line34

$mail->ReplyTo = 'dl****@xxxxxxxx.net' 'hc******@goodloops.com' '
ag*******@hotmail.com' ' da*********@xxxxxxxx.com";
Gives me this error:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /
root/tffwebsite/membershipmailer/mailsender.php on line34

Earlier this morning I tried several 'Cc' but that did not work. Don't
right now remember if it just did not work or if I got an error.

I can get everything to work if I only use one name at a time. But I
have 320 people to send this Message to and I want all replies to go
to 3 different people and myself.

My brain hurts. Can someone hit me on the head again.

TIA
Dave
Sep 11 '08 #1
4 1401
>$mail->ReplyTo = "dl****@xxxxxxxx.net", "cr*****@gosodloops.com", "
>ag*******@hotmail.com", " da*********@xxxxxxxx.com";
Gives me this error:
Parse error: parse error, unexpected ',' in /root/tffwebsite/
membershipmailer/mailsender.php on line 34
The string concatenation operator is period, not comma.
Also, you don't want to concatenate those strings as-is: you need
spaces between them in the assembled string.

I suggest:
$mail->ReplyTo = "dl****@xxxxxxxx.net cr*****@gosodloops.com "
.. "ag*******@hotmail.com da*********@xxxxxxxx.com ";

Note trailing spaces (not really required on the last line).

Either that, or put the whole huge string on one line.

Sep 11 '08 #2
Dave Kelly wrote:
This is the header of the email I am trying to send. My 'ReplyTo' is
not working as planed/

I tried googling thsi and did not get a good answer. I examed the code
before, as suggested and tried the example below. No joy

require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "smtp.xxxxxxxx.com"; // SMTP server
$mail->Username = "da*********@xxxxxxxx.com";
$mail->Password = "ironnail";
$mail->FromName = "Dave Lemke <dl****@xxxxxxxx.net>";
$mail->From = "Dave Lemke <dl****@xxxxxxxx.net>";
Line 34 $mail->ReplyTo = "dl****@xxxxxxxx.net hc******@goodloops.com
ag*******@hotmail.com da*********@xxxxxxxx.com";
$mail->Cc = "da*********@xxxxxxxx.com";
$mail->Sender = "ag*******@xxxxxxxx.com";
$mail->ReturnReceiptTo = "da*********@xxxxxxxx.com";
$mail->AddAddress(" {$_SERVER['argv'][1]}");


$mail->ReplyTo = "dl****@xxxxxxxx.net", "cr*****@gosodloops.com", "
ag*******@hotmail.com", " da*********@xxxxxxxx.com";
Gives me this error:
Parse error: parse error, unexpected ',' in /root/tffwebsite/
membershipmailer/mailsender.php on line 34

$mail->ReplyTo = "dl****@xxxxxxxx.net" " hc******@goodloops.com"
"ag*******@hotmail.com" "da*********@xxxxxxxx.com";
Gives me this error:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /
root/tffwebsite/membershipmailer/mailsender.php on line34

$mail->ReplyTo = 'dl****@xxxxxxxx.net' 'hc******@goodloops.com' '
ag*******@hotmail.com' ' da*********@xxxxxxxx.com";
Gives me this error:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /
root/tffwebsite/membershipmailer/mailsender.php on line34

Earlier this morning I tried several 'Cc' but that did not work. Don't
right now remember if it just did not work or if I got an error.

I can get everything to work if I only use one name at a time. But I
have 320 people to send this Message to and I want all replies to go
to 3 different people and myself.

My brain hurts. Can someone hit me on the head again.

TIA
Dave
The ReplyTo is a comma separated list of email addresses. You need the
commas - but everything needs to be within one string, i.e. (pardon the
line wrap)

$mail->ReplyTo = "dl****@xxxxxxxx.net, cr*****@gosodloops.com,
ag*******@hotmail.com, da*********@xxxxxxxx.com";

And BTW - when using example domains, please use example.net,
example.com, etc. Those are specifically reserved for such usage.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Sep 11 '08 #3
On Sep 11, 8:05 am, Jerry Stuckle <jstuck...@attglobal.netwrote:
The ReplyTo is a comma separated list of email addresses. You need the
commas - but everything needs to be within one string, i.e. (pardon the
line wrap)

$mail->ReplyTo = "dle...@xxxxxxxx.net, crof...@gosodloops.com,
aged_s...@hotmail.com, daveekel...@xxxxxxxx.com";

And BTW - when using example domains, please use example.net,
example.com, etc. Those are specifically reserved for such usage.

The line wrap was due to the constraints of the email format.
I tried both examples and neither works. Thanks fo the feedback. I
will work around this problem.

As for 'example.net' I learn something everyday. Thanks for that also.

Dave
Sep 12 '08 #4
Dave Kelly wrote:
On Sep 11, 8:05 am, Jerry Stuckle <jstuck...@attglobal.netwrote:
>The ReplyTo is a comma separated list of email addresses. You need the
commas - but everything needs to be within one string, i.e. (pardon the
line wrap)

$mail->ReplyTo = "dle...@xxxxxxxx.net, crof...@gosodloops.com,
aged_s...@hotmail.com, daveekel...@xxxxxxxx.com";

And BTW - when using example domains, please use example.net,
example.com, etc. Those are specifically reserved for such usage.


The line wrap was due to the constraints of the email format.
I tried both examples and neither works. Thanks fo the feedback. I
will work around this problem.

As for 'example.net' I learn something everyday. Thanks for that also.

Dave
Dave, the code I gave you puts the ReplyTo string in the correct format.
If that's what you're using, your problem lies somewhere else.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Sep 12 '08 #5

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

Similar topics

114
by: muldoon | last post by:
Americans consider having a "British accent" a sign of sophistication and high intelligence. Many companies hire salespersons from Britain to represent their products,etc. Question: When the...
10
by: Fred | last post by:
There is a setting in INIT.ORA that has the unintended side-effect of making sure the ALTER SYSTEM KILL SESSION command has immediate affect. Without this setting, I've seen some instances where...
0
by: Tom Dacon | last post by:
"Open .Net Command Window Here" context menu for Windows Explorer: The reg file described below adds a new menu item to Windows Explorer's context menu when you right-click over a folder (or the...
3
by: Robert Oschler | last post by:
I have an IFrame on my web pages that displays useful tips. I have a button next to it that hides and shows it by triggering a Javascript call. I know how to make the iframe invisible by changing...
12
by: Vlad de Mille IV | last post by:
Well, as the subject says.... Briefly, when I try to run *any* wizard, I get a simple dialog, stating "Permission Denied", to which I can only click "OK". I suspect this is a windows (XP)...
3
by: Chris Hayes | last post by:
I'm trying to create a nifty Windows Service that will perform tasks at a predetermined interval. To make sure I understand the timing correctly I have set an emailer utility to email me on the...
48
by: mahurshi | last post by:
I am new to c++ classes. I defined this "cDie" class that would return a value between 1 and 6 (inclusive) It runs fine and gives no warnings during compilation. I was wondering if you guys...
1
by: sherifffruitfly | last post by:
Hi all, I've got a datagrid bound to a dataset/table. When the OnRowChanging event fires, the handler attempts to Insert the new record into the database. When there's an error with this Insert...
19
by: maya | last post by:
hi, so what is "modern" javascript?? the same as "DOM-scripting"? i.e., editing content (or changing appearance of content) dynamically by massaging javascript objects, html elements, etc? ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
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
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...
0
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...
0
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...

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.