Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Set 'From' address in submitted email

Avatar

Level 3

I can quite easily set the 'To', 'Body' and 'Subject' values for an outgoing email from a form but is it possible to set the 'From' address too?

Also, can someone confirm that there is no way of removing the 'select your email client' pop-up that appears when submitting the form? I think I've asked this before but I would ideally like to not allow the person completing the form to use their own email client but instead submit any email behind-the-scenes - any ideas?

Thanks,

2 Replies

Avatar

Level 10

Hi,

The mailto protocol is here: http://www.ietf.org/rfc/rfc2368.txt and some useful information here: http://msdn.microsoft.com/en-us/library/aa767737(v=vs.85).aspx.

I don't think there is a "from" header in the protocol, so I don't think you can do what you are looking for. In any case I imagine that the email client would have to use one of its email accounts.

Also in relation to the dialog window, afaik you can't disable it. It is part of the email process and discloses to the user that an email is going to be sent from the form. Sending an email without the user's knowledge or action would be considered a security issue.

Niall