How to send emails in python as other email? -


i've been trying create contact page on website send email using google smtp can manage that. able send message confirming have received message. send message email use has used sent message, can send myself myself, prefer come users email in sender field rather email can click reply send them message back. possible. in advance

#kvemail email , senderemail users email #this email sending user s.sendmail(kvemail, senderemail, confirmmsg.as_string()) #this email sent self s.sendmail(senderemail, kvemail, adminmsg.as_string()) 

gmail isn't going let spoof sender, you're trying do. spammers , scammers that. web host have smtp server? try that.

an alternative approach might put user's address reply-to header. it'll appear come you, when reply it'll @ least go original user. gmail might ok that.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -