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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -