close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Emailing with variable from address

Thread began 9/14/2011 8:10 am by mark.hay302689 | Last modified 9/15/2011 7:03 am by mark.hay302689 | 1070 views | 2 replies |

mark.hay302689

Emailing with variable from address

Hi

I have a system where the 'from' address is entered by the user(s) so that it shows to the recipient as 'from' (this is important, as the recipient catalogues incoming emails by this address).

However on numerous occasions the user(s) inputs an incorrect email address in the form and using 'mail' via our organisations smtp servers this then appears as incorrect and non valid email address and bounces it and in turn the postmaster complains to me.

Q. Is there a way using UM to have a fixed "from" e.g. <me@example.com> so that the smtp server sees this and sends the email but the recipient sees <thesender@example.com> as both the 'sender' and 'reply to' address.

I have scanned php mail and think I might be able to use the -f parameter (I think, my php is not up to that level) it seems somehow modifying the envelope may have an way of doing this but it's beyond me. I appreciate this is probably a non starter but any advice or ideas would be well received.

Mark

Sign in to reply to this post

Jason ByrnesWebAssist

No, you wont be able to show the replay to address as the from address to the recipient.

I think the best way around this would be to have a First name and last name form element, and use those as the From display name:

php:
<?php echo((isset($_POST["UserFirstName"]))?$_POST["UserFirstName"]:""?> <?php echo((isset($_POST["UserLastName"]))?$_POST["UserLastName"]:""?>




this way the From display name instead of the address will be shown to the recipient

Sign in to reply to this post

mark.hay302689

Yes that seems very logical - I'll do that many thanks for the input Jason

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...