"from email" won't work on Form <<RESOLVED>>

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Lobotaman
Posts: 14
Joined: Sat 9. Feb 2008, 15:10
Location: Georgia, United States

"from email" won't work on Form <<RESOLVED>>

Post by Lobotaman »

Hello,

It works fine when I use the system address, but when I choose "form: email" from the dropdown, no email is received. I really need these emails to come from the visitor who submits, not the site's system address.

Screenshot of settings is attached
Image

Any ideas or suggestions?

It
Last edited by Lobotaman on Sun 2. Mar 2008, 14:14, edited 1 time in total.
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: "from email" won't work on Form

Post by juergen »

Maybe your hoster denies this possibilty by rule in system for not being used as email relay...
Lobotaman
Posts: 14
Joined: Sat 9. Feb 2008, 15:10
Location: Georgia, United States

Re: "from email" won't work on Form

Post by Lobotaman »

I understand your reply. This is so difficult when the problem can't be easily tied to (1) my article set-up, (2) the hosting service, or (3) my smtp configuration during install.

Additionally, my Newsletters won't go AT ALL! But, I am still searching the forum for a solution there before I post a screen shot on a new or existing thread on that topic.

Ugh!

Let me continue my research with my hoster.

Thank you !
Lobotaman
Posts: 14
Joined: Sat 9. Feb 2008, 15:10
Location: Georgia, United States

Re: "from email" won't work on Form

Post by Lobotaman »

Hello,

Exhausting day of research with hoster on this topic, but I am not much closer.

HOWEVER ~ I have a Joomla site right now on the same hosting server as this phpwcms site ~AND~ the "from email" works on the Joomla site but not on the phpwcms site. Keep in mind that I have the "from name" working, but not the "from email"

I will paste the two sections of config code below, in case it helps someone to help me...

A chunk of code from the Joomla Site (which works)...

Code: Select all

$mosConfig_sendmail = '/usr/sbin/sendmail';
$mosConfig_session_life_admin = '1800';
$mosConfig_session_type = '0';
$mosConfig_shownoauth = '0';
$mosConfig_sitename = 'My Joomla Site;
$mosConfig_smtpauth = '1';
$mosConfig_smtphost = 'localhost';
$mosConfig_smtppass = **********';
$mosConfig_smtpuser = 'info@myjoomlasite.com';
$mosConfig_uniquemail = '1';
A chunk of code from the phpwcms site (which doesn't work yet)...

Code: Select all

// smtp values
$phpwcms['SMTP_FROM_EMAIL']   = 'info@myphpwcms-site.com'; 
$phpwcms['SMTP_FROM_NAME']    = 'My phpwcms Site';
$phpwcms['SMTP_HOST']         = 'localhost';
$phpwcms['SMTP_PORT']         = 25;
$phpwcms['SMTP_MAILER']       = 'sendmail';
$phpwcms['SMTP_AUTH']         = 1;
$phpwcms['SMTP_USER']         = 'emailaddr@myphpwcms-site.com';
$phpwcms['SMTP_PASS']         = '**********'; 
Does this help any?

Has anyone seen this before?

Thanks,

John
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: "from email" won't work on Form

Post by flip-flop »

Please have a look:

Code: Select all

// smtp values
$phpwcms['SMTP_FROM_EMAIL']   = 'info@example.com'; // reply/from email address
$phpwcms['SMTP_FROM_NAME']    = 'webmaster';    // reply/from name
$phpwcms['SMTP_HOST']         = 'localhost';    // SMTP server (host/IP) 
$phpwcms['SMTP_PORT']         = 25;             // SMTP-Server port (default 25) 
$phpwcms['SMTP_MAILER']       = 'smtp';         // default phpMailer: smtp, mail (default), sendmail 
$phpwcms['SMTP_AUTH']         = 1;              // sets SMTP_AUTH to ON/OFF
$phpwcms['SMTP_USER']         = 'username';     // default SMTP login (user) name 
$phpwcms['SMTP_PASS']         = '********';     // default SMTP password  
:idea:

I don´t understand the combination of $phpwcms['SMTP_MAILER'] = 'sendmail'; and $phpwcms['SMTP_AUTH'] = 1;. in your config.
I hope you know what you do.
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Lobotaman
Posts: 14
Joined: Sat 9. Feb 2008, 15:10
Location: Georgia, United States

Re: "from email" won't work on Form

Post by Lobotaman »

Hi Flip-Flop!

Thank you for replying. I have read a ton of your posts.

Wow, I wish I could get to the bottom of this issue.

I saw your reply and made the changes both ways so they would match (sendmail and 0, as well as smpt and 1), but it still will not put the [form: email] in the "from email" address.

I know it can work since it's working with my Joomla! website on the same exact client.

I spent all day yesterday working on it and will probably do the same today.

I'm a newbie, but I am going to look at the Joomla! code to see if I can find it there...

So exhausting!

Thank you again!

John
Lobotaman
Posts: 14
Joined: Sat 9. Feb 2008, 15:10
Location: Georgia, United States

Re: "from email" won't work on Form

Post by Lobotaman »

My hosting company captured the following log information:

2008-02-29 17:00:31 H=(http://www.mydomain.com) [127.0.0.1]:48267 I=[127.0.0.1]:25 F=<noreply.test@gmail.com> rejected RCPT <info@mydomain.com>: "PHISHING attempt trying to send email as gmail.com"

So, for whatever reason the same hoster lets Joomla! send mail that shows a different FROM EMAIL ADDRESS, but they don't let phpwcms do it.

Now that I'm getting closer to understanding this, has any else had this issue? I saw evidence of it in another thread, but it was in German.

Please help!

Thx,

John
Lobotaman
Posts: 14
Joined: Sat 9. Feb 2008, 15:10
Location: Georgia, United States

Re: "from email" won't work on Form <<RESOLVED>>

Post by Lobotaman »

Good grief...

This is finally fixed... ...finally the "from name" and "from email" contain whatever was submitted in the form.

Code: Select all

// smtp values
$phpwcms['SMTP_FROM_EMAIL']   = ''; // reply/from email address
$phpwcms['SMTP_FROM_NAME']    = ''; // reply/from name
$phpwcms['SMTP_HOST']         = ''; // SMTP server (host/IP)
$phpwcms['SMTP_PORT']         = 25; // SMTP-Server port (default 25)
$phpwcms['SMTP_MAILER']       = 'mail'; // default phpMailer: smtp, mail (default), sendmail
$phpwcms['SMTP_AUTH']         = 0; // sets SMTP_AUTH to ON/OFF
$phpwcms['SMTP_USER']         = ''; // default SMTP login (user) name
$phpwcms['SMTP_PASS']         = ''; // default SMTP password
Now, on to the newsletter to see why it's not sending.

But I am definitely happy after 3-days of troubleshooting.

My thanks to those of you that replied.

John
Post Reply